Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mouse and keyboard lag

64 views
Skip to first unread message

Stefan Kaintoch

unread,
Oct 16, 2023, 2:08:23 AM10/16/23
to
Hi *.*,
I've got a Compute Modul 4 (2GB RAM) on a Waveshare CM4-IO-BASE-A board
(https://www.waveshare.com/wiki/CM4-IO-BASE-A).
I 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

Stefan Kaintoch

unread,
Oct 16, 2023, 3:08:15 AM10/16/23
to
Stefan Kaintoch <ste...@ratri.rincewind.kaintoch.de> wrote:
> 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.

I fixed the mouse issue following https://peppe8o.com/fixing-slow-mouse-with-raspberry-pi-os/
(append usbhid.mousepoll=0 to /boot/cmdline.txt).
But the keyboard issue still needs a solution.

Bye, Stefan

The Natural Philosopher

unread,
Oct 16, 2023, 4:41:53 AM10/16/23
to
On 16/10/2023 07:00, Stefan Kaintoch wrote:
> Hi *.*,
> I've got a Compute Modul 4 (2GB RAM) on a Waveshare CM4-IO-BASE-A board
> (https://www.waveshare.com/wiki/CM4-IO-BASE-A).
> I 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.
>
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.



> 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

--
All political activity makes complete sense once the proposition that
all government is basically a self-legalising protection racket, is
fully understood.


Theo

unread,
Oct 16, 2023, 7:02:43 AM10/16/23
to
Try usbhib.kbpoll=0 (or some other low number)
from
https://patchwork.kernel.org/project/linux-input/patch/20180321162825....@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

Stefan Kaintoch

unread,
Oct 16, 2023, 7:08:13 AM10/16/23
to
The Natural Philosopher <t...@invalid.invalid> wrote:
> On 16/10/2023 07:00, Stefan Kaintoch wrote:
>> 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.
>>
> 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

The Natural Philosopher

unread,
Oct 16, 2023, 8:25:11 AM10/16/23
to
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.

> Bye, Stefan

--
"Nature does not give up the winter because people dislike the cold."

― Confucius

Stefan Kaintoch

unread,
Oct 16, 2023, 9:08:12 AM10/16/23
to
Theo <theom...@chiark.greenend.org.uk> wrote:
> Try usbhib.kbpoll=0 (or some other low number)
> from
> https://patchwork.kernel.org/project/linux-input/patch/20180321162825....@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)

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
0 new messages