Bounty: 50
I have a Dell Inspiron 5379 running the latest firmware and Ubuntu 20.04. After the notebook sleeps, intermittently, the keyboard and the trackpad won’t work. The touchscreen does work so I can reboot using the on screen keyboard. After rebooting the keyboard and the touchpad do work.
After googling, I found this suggestion to edit /etc/default/grub
with this GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.direct i8042.dumbkbd"
from Ubuntu 17.04 keyboard not responding after suspend but it does not have any effects.
I’ve also found Dell Inspiron 15-7568 Touchpad Move Freeze on Xenial 16.04 but it doesn’t seems to be applicable as I don’t have synapse
installed.
Update: after installing synaptics
(and confirming it’s being used by the trackpad through xinput list-props
), the issue now affects only the keyboard. The keyboard is still being managed through libinput
.
I’m somewhat convinced this is related to the "tablet mode" being enabled in certain conditions (https://www.dell.com/support/article/en-uk/sln305434/how-to-enable-or-disable-tablet-mode-on-your-notebook-in-windows-10?lang=en). I’m guessing what I need to find out is how to disable it.
Possibly related: https://bbs.archlinux.org/viewtopic.php?id=237782
Update 2: Tried to run xinput list-props
while the keyboard wasn’t working, no additional info:
vitor@vitor-Inspiron-5379:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ELAN Touchscreen id=12 [slave pointer (2)]
⎜ ↳ DELL0804:00 06CB:7E7E Mouse id=13 [slave pointer (2)]
⎜ ↳ DELL0804:00 06CB:7E7E Touchpad id=14 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Integrated_Webcam_HD: Integrate id=10 [slave keyboard (3)]
↳ Integrated_Webcam_HD: Integrate id=11 [slave keyboard (3)]
↳ Intel Virtual Button driver id=15 [slave keyboard (3)]
↳ Intel HID events id=16 [slave keyboard (3)]
↳ Dell WMI hotkeys id=17 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=18 [slave keyboard (3)]
# Device not working
vitor@vitor-Inspiron-5379:~$ xinput list-props 18
Device 'AT Translated Set 2 keyboard':
Device Enabled (171): 1
Coordinate Transformation Matrix (173): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Send Events Modes Available (293): 1, 0
libinput Send Events Mode Enabled (294): 0, 0
libinput Send Events Mode Enabled Default (295): 0, 0
Device Node (296): "/dev/input/event4"
Device Product ID (297): 1, 1
vitor@vitor-Inspiron-5379:~$
# Device working (after reboot)
vitor@vitor-Inspiron-5379:~$ xinput list-props 18
Device 'AT Translated Set 2 keyboard':
Device Enabled (171): 1
Coordinate Transformation Matrix (173): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Send Events Modes Available (293): 1, 0
libinput Send Events Mode Enabled (294): 0, 0
libinput Send Events Mode Enabled Default (295): 0, 0
Device Node (296): "/dev/input/event4"
Device Product ID (297): 1, 1
vitor@vitor-Inspiron-5379:~$
Update 3: Followed this, found the appropriate event (https://github.com/alesguzik/linux_detect_tablet_mode also useful). Even unbinding the driver doesn’t seem to solve it as well.
I’m wondering if I should just try to write a GNOME Extension to manage tablet mode.