r/Kubuntu • u/CJCfilm • 10h ago
26.10 Potential Bug and workaround: input lag on USB devices (mouse cursor and keyboard inputs) - hardware vs software mouse
Hi all,
As this came up in another chat, just wanted to break it out as there does appear to be a reported issue with AMD RDNA4 GPUS and kwin which manifests within things like the SDDM greeter amongst other things.
In both instances, forcing a software mouse cursor instead of using the hardware (GPU enabled) cursor at least allows for normal inputs. There's a few linked bug items in the report here including if you've gotten far enough to see error messages when trying to troubleshoot yourself.
TLDR; for the issue, there's a bit of faff going on with the new versions of tools coming with 26.10 which if you're forcing the update through rather than being prompted to upgrade, you'll possibly see on a AMD system but then hopefully not once some of the fixes are pushed out.
- Input lag at login only
So you create a file:
sudo nano /etc/sddm.conf.d/zz-greeter-gpu.conf
and type in the following:
[Wayland]
CompositorCommand=env KWIN_FORCE_SW_CURSOR=1 kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale1
Write it and reboot your system. This should force the software mouse cursor at the login screen and allow you to have normal inputs to login to the session normally.
If you ever want to get rid of that, as it's a system wide use, you use:
sudo rm /etc/sddm.conf.d/zz-greeter-gpu.conf
- Input lag once logged in
So this can mess things up like mouse performance in games and such but if you're experiencing the input lag once logged in also, you can run a similar set of commands to just enable the software cursor from the console:
mkdir -p ~/.config/plasma-workspace/env
echo 'export KWIN_FORCE_SW_CURSOR=1' > ~/.config/plasma-workspace/env/swcursor.sh
Then reboot. As we're just making the above for the current logged in user, it's a little easier to work with, but if you wish to remove this from a single command (whenever the bug fix lands) then use:
rm ~/.config/plasma-workspace/env/swcursor.sh
Hope that helps folks 😄