10

I was using Kubuntu 19.10, then switched to Ubuntu 20.04, and everything was fine. Then a situation appeared, and I had to reinstall Ubuntu in UEFI mode instead of BIOS mode. Now both mouse pointer and keyboard lag, and it's not just graphical: moving and resizing windows also lags, some letters written on the keyboard are lost. The issue is not present in the Live CD, which is super weird.

I have tried multiple things: made sure that zoom and slow keys are disabled, checked and updated drivers, nothing of it works. The only thing is that mouse and keyboard lag when they are plugged into back panel (which is I guess directly to the motherboard), when I plug those into the front panel they work perfectly.

The issue is also present in both Xorg and Wayland sessions and in the login screen, but is not present in UEFI settings menu.

Is there anything else to solve my problem?

alt3r3d
  • 101

6 Answers6

10

I was having the same problem on Ubuntu 20.04 with both mouse and keyboard connected to the same wireless USB dongle. During each session, the lag would appear after a little while, barely noticable at first, but could extend to several seconds over time. I would describe that experience as "soul crushing" :)

I tried several solutions found here and there: nothing worked.

Turns out the solution was simply to use a USB 2.0 port instead of a USB 3.0 port.

tcharlss
  • 101
1

There's a vast array of problems that can cause these symptoms, and it's a pickle to understand. A good first step is checking /var/log/syslog for any unusual activity.

For me the problem were aggressive wifi-scans, about once every 1/10 sec, despite the computer being connected to a wired network. This caused the whole system to slow down, causing keyboard, mouse, audio and video lags. Deactivating wifi solved the problem.

I saw a post about QT triggering this sort of behaviour - maybe an app incorrectly polling to check for a network connection or trying to detect location. These days I'm using many Linux 'betas', for Zoom, Slack, Teams etc.

Jan Groth
  • 403
1

My workaround was to comment this line:

modifier_map Mod3 {Scroll_Lock};

like this:

#modifier_map Mod3 {Scroll_Lock};

in this file:

sudo nano /usr/share/X11/xkb/symbols/br

also, install xserver-xorg-input-evdev and remove xserver-xorg-input-libinput:

sudo apt install xserver-xorg-input-evdev
sudo apt remove xserver-xorg-input-libinput

Then reboot the machine.

1

I was able to resolve the lagging issue by changing the USB Dongle to a different USB Port and also, in Ubuntu 21.04, I navigated to

Settings -> Power-> Performance Mode (Selected)

and it worked for me.

check the settings from this picture

zx485
  • 2,865
1

For me disabling the touchpad sped the mouse back up a bit. I will have to figure out the keyboard next.

enter image description here

Jerinaw
  • 291
0

I have had the same issue (internet search brought me here) - and I just noticed that when I closed the laptop lid, it automatically switched the refresh rate to 24 Hz. When I changed Settings -> Displays -> Refresh Rate to 60Hz, the mouse lag disappeared.