You are not logged in.

#1 2021-01-07 15:27:04

ac1dg
Member
Registered: 2018-10-25
Posts: 5

Keyboard, mouse, video lags/freezes on wayland after suspend

Hi everyone! I hope I am posting this in the correct category of this forum.

Since quite some time (~October 2020), I am experiencing lags when resuming from suspend. The lags are periodically about every 11 seconds and can be experienced as follows:

  • The mouse is staying at the same position for about a second. During that time, the input is lost - the mouse does not jump forward to catch up with the input but continues to translate the movement of my hand

  • Keyboard input is dropped for about one second or even worse: the last key press is "locked-in" and the key will be pressed for about one second causing the key repeat to kick in.

  • When watching videos, the video stops for that time, but audio continues normally.

Journalctl tells me this, when I am typing or moving the mouse and can feel the lag. Nothing is logged, when the video stutters.

Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5812]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!
Jan 07 15:29:33 nerdbiom gnome-shell[5781]: libinput error: event9  - OLKB Planck Keyboard: client bug: event processing lagging behind by 695ms, your system is too slow
Jan 07 15:29:33 nerdbiom gnome-shell[5781]: Window manager warning: last_user_time (164406623) is greater than comparison timestamp (164406225).  This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW.  Trying to work around...
Jan 07 15:29:33 nerdbiom gnome-shell[5781]: Window manager warning: 0x1800003 appears to be one of the offending windows with a timestamp of 164406623.  Working around...
Jan 07 15:53:30 nerdbiom gnome-shell[5781]: libinput error: event10 - Logitech G500: client bug: event processing lagging behind by 19ms, your system is too slow
Jan 07 15:53:30 nerdbiom gnome-shell[5781]: libinput error: event10 - Logitech G500: client bug: event processing lagging behind by 11ms, your system is too slow
Jan 07 15:53:30 nerdbiom gnome-shell[5781]: libinput error: event10 - Logitech G500: client bug: event processing lagging behind by 13ms, your system is too slow
Jan 07 15:53:34 nerdbiom gnome-shell[5781]: libinput error: client bug: timer event10 debounce: scheduled expiry is in the past (-22ms), your system is too slow
Jan 07 15:54:15 nerdbiom gnome-shell[5781]: libinput error: event10 - Logitech G500: client bug: event processing lagging behind by 32ms, your system is too slow

Rebooting usually fixes the lags.

My system:
- XPS 15 9570
- linux 5.10.3.arch1-1
- nvidia 455.45.01-10
- xf86-video-intel 1:2.99.917+914+ga511f22c-1
- wayland 1.18.0-2
- gnome-shell 1:3.38.2+22+g3a343a8aa-1
- tlp 1.3.1-2

Any ideas what could be going on here?

Offline

#2 2021-01-07 16:16:30

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,011

Re: Keyboard, mouse, video lags/freezes on wayland after suspend

Sounds like a kernel halt, check dmesg or the system journal. Some subsystem might crash.
Also try to disable TLP, reboot and S3/resume and test the behavior.

Since you're using gnome/wayland, nvidia and xf86-video-intel shouldn't matter?

Online

#3 2021-02-13 17:19:16

ac1dg
Member
Registered: 2018-10-25
Posts: 5

Re: Keyboard, mouse, video lags/freezes on wayland after suspend

Thanks for your response! I checked the log and could not find any information about a kernel halt. dmesg also did not show anything unusual. I disabled TLP and could not reproduce the lagging anymore. After some updates I enabled TLP again several days ago and the issue was gone.

Offline

Board footer

Powered by FluxBB