[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190731120728.656eb771@numan>
Date: Wed, 31 Jul 2019 12:07:28 +0300
From: Numan Demirdöğen <if.gnu.linux@...il.com>
To: linux-kernel@...r.kernel.org
Subject: [regression, bisected] Keyboard not responding after resuming from
suspend/hibernate
If laptop is put to suspend or hibernate by closing lid, via power
manager or by using any other method and then it is resumed/waked up,
keyboard is not responding but mouse or trackball can be used. Although
I can wake laptop up by keyboard, after that I am stuck at the password
prompt. This bug is present ever since using 4.10-rc1 kernel and mostly
on Sony laptops. The last working kernel version is 4.9.0-rc2.
git bisect points 9d659ae14b545c4296e812c70493bfdc999b5c1c
as the first bad commit[1].
I tried some kernel parameters related to i8042 driver:
i8042.debug=1 i8042.reset=1 keyboard not working
i8042.debug=1 i8042.kbdreset=1 keyboard not working
i8042.debug=1 i8042.nomux=1 keyboard not working
i8042.debug=1 i8042.noaux=1 keyboard working, but touchpad not
working
A user reported that on some rare occasions, keyboard responded to key
press but it remained pressed forever even if stopped pressing it. And
another user reported that passing the options i8042.reset=1
i8042.dumbkbd=1 i8042.direct=1 resulted in the keyboard functioning
after resume. However, there was a long delay before the keyboard or
mouse responded to input on the lock screen.
This one line patch, which can be a hint, from Takashi Iwai essentially
reverts the commit 9d659ae14b545 mentioned in the above and keyboard is
working as expected after resuming from suspend/hibernate, if this
patch is applied.
--- a/kernel/locking/mutex.c
+++ b/kernel/locking/mutex.c
@@ -59,7 +59,7 @@ EXPORT_SYMBOL(__mutex_init);
* Bit2 indicates handoff has been done and we're waiting for pickup.
*/
#define MUTEX_FLAG_WAITERS 0x01
-#define MUTEX_FLAG_HANDOFF 0x02
+#define MUTEX_FLAG_HANDOFF 0x00
#define MUTEX_FLAG_PICKUP 0x04
#define MUTEX_FLAGS 0x07
- The first bug report on bugzilla.kernel.org[2].
- LKML thread[3]
- Another report on OpenSUSE bugzilla[4]
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=9d659ae14b545c4296e812c70493bfdc999b5c1c
[2] https://bugzilla.kernel.org/show_bug.cgi?id=195471
[3] https://lkml.org/lkml/2018/8/31/707
[4] https://bugzilla.opensuse.org/show_bug.cgi?id=1114588
Powered by blists - more mailing lists