Mouse and keyboard lag

Oct 16, 2023 Last reply: 2 years ago 6 Replies

Hi *.*, I've got a Compute Modul 4 (2GB RAM) on a Waveshare CM4-IO-BASE-A board

formatting link
installed a fresh Raspberry OS (bookworm) on it.



Keyboard and mouse are wireless Logitech MK-250 connected with a dongle to USB.



When the GUI is started OS reacts very slowly with a huge lag (usually >3s) to mouse and keyboard. This happens only in the GUI. On a console or via ssh reaction to mouse and keyboard is as expected, IOW: fast. This happens even if CPU is idleing.



Does anyone have an idea what could be the reason for that slow reaction? Or how I can find out?



One more thing: I use a 4K LCD display connected via HDMI. The graphics driver is wayland. But the same issue occurs using X11.



TIA, Stefan


I fixed the mouse issue following

formatting link
usbhid.mousepoll=0 to /boot/cmdline.txt). But the keyboard issue still needs a solution.

Bye, Stefan

FWIW I've noticed this on my *86 laptop as well. Trying to log in a freshly booted Mint 20 the password cannot immediately be entered.

Since its a boot issue I naturally blame Poettering and systemd.

I'm tempted to blame Poettering, too ;-)

But this cannot be the reason. Slow keyboard reaction happens only on GUI, not on console or ssh. But it would happen on both if systemd was the reason. Furthermore it happens *all the time*, even after login.

Bye, Stefan

Try usbhib.kbpoll=0 (or some other low number) from

formatting link
snipped-for-privacy@gmail.com/

(It's long been a problem with erratic keyboard behaviour on some keyboards due to the Pi's dwc2 USB 2 controller. I guess on the CM4 you don't have a USB 3 controller which should be better)

Theo

That worked. Now the keyboard is usable. Thanks a lot.

But I watched another strange effect. When the mouse pointer is moved over the screen's background it sometimes stops. When moved over a black window (e.g. a shell window) it moves smoothly.

I guess this issue is related to saving and restoring the background. Do you have any advice to fix this issue?

Bye, Stefan

Ah no, in my case it is totally unresponsive GUI for a few seconds.

It may be part of the wifi/network/trying to NFS mount out of order issue.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required