pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.48k stars 87 forks source link

Touchpad lagging after resume from suspend on Thinkpad X1 Carbon gen 9 #1832

Open carestad opened 3 years ago

carestad commented 3 years ago

Distribution (run cat /etc/os-release):

NAME="Pop!_OS"
VERSION="21.04"
ID=pop
ID_LIKE="ubuntu debian"
PRETTY_NAME="Pop!_OS 21.04"
VERSION_ID="21.04"
HOME_URL="https://pop.system76.com"
SUPPORT_URL="https://support.system76.com"
BUG_REPORT_URL="https://github.com/pop-os/pop/issues"
PRIVACY_POLICY_URL="https://system76.com/privacy"
VERSION_CODENAME=hirsute
UBUNTU_CODENAME=hirsute
LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Not really sure. Haven't managed to pinpoint where the problem lies.

Issue/Bug Description:

The touchpad on my X1 Carbon gen 9 has been very laggy since I installed 21.04 on it. It works flawlessly right after a reboot, but as soon as I use it the next day (after suspending it and then resuming it), it starts acting up. I can also do a reboot, log in, see that the touchpad works great, then suspend it and resume it asap and it is sluggish even in the login dialogue.

I have tried several things, including:

The trackpoint works perfectly all the time though, so that has been my fallback lately.

Steps to reproduce (if you know):

  1. Reboot machine and log in
  2. Suspend
  3. Resume
  4. Try using touchpad and notice that it is quite laggy compared to right after a clean reboot

Expected behavior:

No lag. Smooth and direct touchpad experience.

Other Notes:

I have disabled the software suspend in BiOS, so I can suspend the system properly to RAM (and actually maintain some battery capacity while it is suspended).

Output from xinput:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SYNA8009:00 06CB:CE57 Mouse               id=11   [slave  pointer  (2)]
⎜   ↳ SYNA8009:00 06CB:CE57 Touchpad            id=12   [slave  pointer  (2)]
⎜   ↳ TPPS/2 Elan TrackPoint                    id=16   [slave  pointer  (2)]

Any suggestions as to what to try out next are welcome.

carestad commented 3 years ago

I tried booting a live USB with Ubuntu 21.04 to try see if this only happens in Pop, but this does indeed also occur in Ubuntu 21.04. I will try and report it upstream to them later today.

Edit: Launchpad bug report.

carestad commented 3 years ago

Update: the kernel team is looking at this. But a positive thing about trying the kernel team's mainline releases (current stable ones at 5.13.x) was that the default sleep state that is set for these machines in BiOS now works, plus the power consumption in general seems to be a lot better.

I don't suppose there are any plans on bumping the kernel version for 21.04?

jacobgkau commented 3 years ago

I don't suppose there are any plans on bumping the kernel version for 21.04?

Not that I'm aware of, but 21.10 will use kernel 5.13.

carestad commented 3 years ago

Not that I'm aware of, but 21.10 will use kernel 5.13.

Okay. I guess the same goes for Ubuntu 21.04 too. For now it seems to work pretty well with kernels from https://kernel.ubuntu.com/~kernel-ppa/mainline/ at least.

Could this be a problem on non-System76 hardware though?