• Mouse and keyboard lag

    From Stefan Kaintoch@3:770/3 to All on Mon Oct 16 08:00:30 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Stefan Kaintoch@3:770/3 to Stefan Kaintoch on Mon Oct 16 09:05:58 2023
    Stefan Kaintoch <stefan@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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Stefan Kaintoch on Mon Oct 16 09:41:48 2023
    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.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Stefan Kaintoch@3:770/3 to Theo on Mon Oct 16 14:21:36 2023
    Theo <theom+news@chiark.greenend.org.uk> wrote:
    Try usbhib.kbpoll=0 (or some other low number)
    from https://patchwork.kernel.org/project/linux-input/patch/20180321162825.2709-1-filipalac@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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From The Natural Philosopher@3:770/3 to Stefan Kaintoch on Mon Oct 16 13:25:04 2023
    On 16/10/2023 11:18, Stefan Kaintoch wrote:
    The Natural Philosopher <tnp@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.

    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

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)