KB/Mouse use causing short system freezes in Xorg sessions. Happens after resume

Bug #1989744 reported by Erik Meitner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mutter (Ubuntu)
New
Undecided
Unassigned
xorg-server (Ubuntu)
New
Undecided
Unassigned

Bug Description

Summary:
My laptop gets into a an odd state after resuming from sleep where, depending on user activity,
the entire system freezes every 20 seconds for about 1/2 second.

This does not happen after every resume. After upgrading to 22.04 was much less
frequent than it was with 21.10. It seems that after some recent update it is happening
more frequently again. Maybe one every 4 suspend/resume cycles.

Normal operation can be restored by rebooting or sometimes suspending and waking.

The triggering event is complex:
* The pointer or pointer and keyboard must be actively used
* Just typing with no mouse use will not cause it to happen.
* Just moving the mouse pointer around but keeping it inside the same GUI element(a
  textarea for example) will not cause it
* Typing for more than 20 seconds and then moving the mouse one pixel will cause it.
* Moving the mouse around constantly for over 20 seconds will cause it to happen only
  if: a key on the keyboard was hit OR the pointer moved over a new GUI element(window
  border, button, even frames in a web page)
* It is not application specific.

The following is usually logged(not always though) when the freeze happens:
==> ~/.local/share/xorg/Xorg.1.log <==
[1214998.964] (II) event5 - TPPS/2 Elan TrackPoint: SYN_DROPPED event - some input events have been lost.

==> /var/log/syslog <==
Sep 15 08:23:51 krug /usr/libexec/gdm-x-session[3264]: (II) event5 - TPPS/2 Elan TrackPoint: SYN_DROPPED event - some input events have been lost.

Sep 15 08:50:34 krug /usr/libexec/gdm-x-session[3264]: (II) event5 - TPPS/2 Elan TrackPoint: SYN_DROPPED event - some input events have been lost.
Sep 15 08:50:07 krug /usr/libexec/gdm-x-session[3264]: (EE) client bug: timer event4 trackpoint: scheduled expiry is in the past (-317ms), your system is too slow
Sep 15 08:50:07 krug /usr/libexec/gdm-x-session[3264]: (EE) client bug: timer event4 trackpoint: scheduled expiry is in the past (-301ms), your system is too slow
Sep 15 08:50:07 krug /usr/libexec/gdm-x-session[3264]: (EE) client bug: timer event4 trackpoint: scheduled expiry is in the past (-288ms), your system is too slow
Sep 15 08:50:07 krug /usr/libexec/gdm-x-session[3264]: (EE) client bug: timer event4 trackpoint: scheduled expiry is in the past (-278ms), your system is too slow
Sep 15 08:50:07 krug /usr/libexec/gdm-x-session[3264]: (EE) WARNING: log rate limit exceeded (5 msgs per 3600000ms). Discarding future messages.

System Information:

Lenovo Thinkpad P15
Model: 20YQ-003WUS
OS: Ubuntu 22.04.1 LTS
Kernel: 5.15.0-46-generic

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xserver-xorg-core 2:21.1.3-2ubuntu2.1
ProcVersionSignature: Ubuntu 5.15.0-46.49-generic 5.15.39
Uname: Linux 5.15.0-46-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.01.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 515.65.01 Wed Jul 20 14:00:58 UTC 2022
 GCC version:
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: unknown
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Thu Sep 15 10:13:26 2022
DistUpgraded: 2022-06-30 16:37:37,968 DEBUG icon theme changed, re-reading
DistroCodename: jammy
DistroVariant: ubuntu
DkmsStatus:
 virtualbox/6.1.34, 5.15.0-43-generic, x86_64: installed
 virtualbox/6.1.34, 5.15.0-46-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a60] (rev 01) (prog-if 00 [VGA controller])
   Subsystem: Lenovo TigerLake-H GT1 [UHD Graphics] [17aa:22d8]
 NVIDIA Corporation GA107GLM [RTX A2000 Mobile] [10de:25b8] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Lenovo GA107GLM [RTX A2000 Mobile] [17aa:22d8]
InstallationDate: Installed on 2022-03-03 (195 days ago)
InstallationMedia: Ubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223)
MachineType: LENOVO 20YQ003WUS
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.15.0-46-generic root=/dev/mapper/vgubuntuRAID-rootRAID ro quiet splash vt.handoff=7
SourcePackage: xorg-server
UpgradeStatus: Upgraded to jammy on 2022-06-30 (77 days ago)
dmi.bios.date: 12/24/2021
dmi.bios.release: 1.18
dmi.bios.vendor: LENOVO
dmi.bios.version: N37ET37W (1.18 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20YQ003WUS
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.ec.firmware.release: 1.9
dmi.modalias: dmi:bvnLENOVO:bvrN37ET37W(1.18):bd12/24/2021:br1.18:efr1.9:svnLENOVO:pn20YQ003WUS:pvrThinkPadP15Gen2i:rvnLENOVO:rn20YQ003WUS:rvrSDK0J40697WIN:cvnLENOVO:ct10:cvrNone:skuLENOVO_MT_20YQ_BU_Think_FM_ThinkPadP15Gen2i:
dmi.product.family: ThinkPad P15 Gen 2i
dmi.product.name: 20YQ003WUS
dmi.product.sku: LENOVO_MT_20YQ_BU_Think_FM_ThinkPad P15 Gen 2i
dmi.product.version: ThinkPad P15 Gen 2i
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.5-0ubuntu0.1
version.libgl1-mesa-glx: libgl1-mesa-glx 22.0.5-0ubuntu0.1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2.1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2ubuntu1
version.xserver-xorg-video-intel: xserver-xorg-video-intel N/A
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Erik Meitner (eamuwmath) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

Please try removing any custom extensions that might be installed:

  cd ~/.local/share/gnome-shell/
  rm -rf extensions

and then log in again.

If the problem still happens, then while it is happening please run:

  ps auxw | grep gnome-shell > psoutput.txt

and attach the resulting text file here.

tags: added: hybrid i915 multigpu nvidia
tags: added: resume suspend-resume
Changed in xorg-server (Ubuntu):
status: New → Incomplete
Revision history for this message
Erik Meitner (eamuwmath) wrote :

~/.local/share/gnome-shell/extensions does not exist.

ps output attached.

Revision history for this message
Erik Meitner (eamuwmath) wrote :

I can provide a Gnome System Profiler capture if that would help.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like the problem might be GNOME garbage collection, in which case I need to get back to https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2377

The problem might also be specific to the Nvidia driver. Are you able to try disabling the discrete GPU in the BIOS?

Revision history for this message
Erik Meitner (eamuwmath) wrote :

My laptop can only run in discrete and hybrid mode(auto-switch on demand).

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

OK, stay in hybrid mode.

The next thing to try is to select 'Ubuntu on Wayland' on the login screen. And then check the Settings app to ensure Wayland is in use. Does that exhibit the same bug?

Revision history for this message
Erik Meitner (eamuwmath) wrote :

Daniel, when running on Wayland the problem is gone.
I was running xorg because of laptop suspend issues(which are gone now.) I can continue to assist with this bug, just let me know what you you need me to try.

summary: - KB/Mouse use causing short system freezes. Happens after resume
+ KB/Mouse use causing short system freezes in Xorg sessions. Happens
+ after resume
Changed in xorg-server (Ubuntu):
status: Incomplete → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.