Keyboard and Touchpad do not work after suspend/resume

Bug #1769792 reported by liberal-animation
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

My laptop is a Toshiba Satellite C850D with updated 18.04 installed.
When resuming from suspend, I have no keyboard and touchpad.
dmesg shows "i8042: Can't reactivate KBD port"

This looks like a recurring problem, and is just like these:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1014240
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1142118

Here's the dmesg output from before and after suspending.
https://paste.ubuntu.com/p/rsFX9Yw7Xh/

This post also talks about this bit failing for a lot of people!
http://lightrush.ndoytchev.com/random-1/i8042quirkoptions

Some of the function keys work, such as changing the screen brightness, but the key (fn+F5) does not turn the touchpad back on. I have not yet tried any of the suggested options, as results have been mixed, but I will.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-4.15.0-20-generic 4.15.0-20.21
ProcVersionSignature: Ubuntu 4.15.0-20.21-generic 4.15.17
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon May 7 22:01:26 2018
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: linux-signed
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
liberal-animation (liberal-animation) wrote :
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.17 kernel[0].

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17-rc4

affects: linux-signed (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1769792

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
William Linna (william-linna) wrote :

I have this bug, at least partially. My keyboard keeps working, but touchpad doesn't work after reboot. I originally commented in this report:

https://bugs.launchpad.net/ubuntu/artful/+source/linux/+bug/1723799

but they asked to create a new report.

This is what I said there:

========================
I too am affected now. After suspend+resume, my touchpad isn't found. Rebooting doesn't help: I really have to turn the machine off and on again.

I can attach mouse, and then if I try to open touchpad settings in Input Devices settings (I use Kubuntu), it says that Touchpad isn't found, and xinput doesn't show it either.

- Fujitsu E556 laptop
- 4.15.0-20-generic #21-Ubuntu

I still have Ubuntu 16.04 on one SSD with the kernel 4.4.0-119-generic, and the issue doesn't appear there. I think the issue didn't appear on Kubuntu 17.04 either. I didn't try 17.10.

The workaround mentioned in the original post didn't work for me. When I ran
sudo modprobe i2c-hid, I got this message:

rmmod: ERROR: Module i2c_hid is not currently loaded

The command
sudo modprobe i2c-hid

completed, but the touchpad didn't start working.
======================

As was asked by jsalisphury, I tested this with the latest mainline kernel (generic) too:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.17/

The problem wasn't affected – the touchpad doesn't resume.

I hope this helps. I'm not sure if *I* should add the 'kernel-bug-exists-upstream' tag though, because I'm not OP, and my problem is slightly different.

I hope this helps

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-bug-exists-upstream
Revision history for this message
quique (quique-costa) wrote :

My Laptop is a Sony Vaio SVE1512E1EW
Ubuntu 18.04.1 LTS x86_64
Kernel: 4.15.0-29-generic
Xfce
After resume, Keyboard doesn't work. Never. Using On screen keyboard I write the first character of my password and usually I can use the keyboard to put the rest of characters. Thereafter keyboard works.
Sometimes I have to write the entire password 'on screen' and then keyboard works, but sometimes it never works and I have to boot.

Revision history for this message
ioggstream (rpolli) wrote :
Revision history for this message
William Linna (william-linna) wrote :

I read the bug report and tested the same on my machine. It appears that linux-image-4.9.114 works fine for me while 4.10.5 gives me the problems I mentioned earlier.

Revision history for this message
William Linna (william-linna) wrote :

I did more tests, and learned that linux 4.9.125 is the last working version for me and 4.10.0 is the first version that doesn't work.

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Would it be possible for you to do a kernel bisection?

First, find the last good -rc kernel and the first bad -rc kernel from http://kernel.ubuntu.com/~kernel-ppa/mainline/

Then,
$ sudo apt build-dep linux
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
$ cd linux
$ git bisect start
$ git bisect good $(the good version you found)
$ git bisect bad $(the bad version found)
$ make localmodconfig
$ make -j`nproc` deb-pkg
Install the newly built kernel, then reboot with it.
If the issue still happens,
$ git bisect bad
Otherwise,
$ git bisect good
Repeat to "make -j`nproc` deb-pkg" until you find the commit that causes the regression.

Revision history for this message
quique (quique-costa) wrote :

If I'm not wrong bisection has been done by Guido Aulisi on https://bugzilla.redhat.com/show_bug.cgi?id=1436636, Comment 4.
In any case, right now I can't try the bisection.

Revision history for this message
Sami Sieranoja (sjs-a) wrote :

I have the same or very similar problem, with Fujitsu Lifebook E557, Ubuntu 16.04,18.04 and 18.10.

After resume from suspend, touchpad doesn't work at all. Keyboard works somewhat, but some keys are randomly "repeeeeetedddd". Reboot doesn't help, but need to to turn the machine off and on again.

Revision history for this message
William Linna (william-linna) wrote :

It appears that the problematic commit has been found:

https://lkml.org/lkml/2018/10/25/281

and there's even a patch:

https://lkml.org/lkml/2018/11/30/865

I haven't tested it myself

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

The patch isn't in upstream Linux though...

Revision history for this message
quique (quique-costa) wrote :

Right now it seems the problem is still alive.
I’m using xubuntu 18.04:
Linux Kernel 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 GNU/Linux
on a Sony VAIO Laptop:
SVE1512E1EW (54512264)
Sony Corporation
version: C10FMXTT
serie: 54512264-0010407

Revision history for this message
Alessio Boccialoni (alessioboccialoni) wrote :

I have the same problem, with Fujitsu Lifebook E557, Ubuntu 18.10, kernel 4.18.0-17-generic.

After resume from suspend, touchpad doesn't work at all. Keyboard works somewhat, but some keys are randomly "repeeeeetedddd". Reboot doesn't help, but need to to turn the machine off and on again.

Revision history for this message
Cliff Stockton (stockton-cliff) wrote :

Similar here folk. Random keyboard disabled on resume from suspend/hibernation.
4.19.0-parrot1-20t-amd64
HP x360 13 AC113
I tried the
GRUB_CMDLINE_LINUX_DEFAULT="atkdb.reset i8042.nomux quiet splash"
as suggested on other boards.
Seems better, but has persisted, occasionally still occurs
BTW, I have touchpad disabled and use mouse, So, not aware if my touchpad is affected.

Brad Figg (brad-figg)
tags: added: cscc
Revision history for this message
Milja Hahto (milja-hahto) wrote :

Similar here. Touchpad freezes totally after suspend. I'm not sure about the keyboard, as I stay in the graphic environment - I suspect it doesn't quite work either. As for others, only a complete turn off - turn on helps, reboot does not.

I have Fujitsu Lifebook E744, this happens with both openSuse Leap 15 and now Kubuntu 19.10, so this isn't distro specific.

I have seen recommendation for
sudo apt-get install --reinstall xserver-xorg-input-all
but it did not solve this issue.

Operating System: Kubuntu 19.10
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4
Kernel Version: 5.3.0-19-generic
OS Type: 64-bit

Revision history for this message
Vladimir Knobel (vladox) wrote :

Same here with a Sony VAIO running Ubuntu 19.10

Revision history for this message
voku (voku1987) wrote :

Saaaamme here. FUJITSU Notebook LIFEBOOK E Serie running Ubuntu 18.04.5 LTS

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.