FS#75866 - [thinkpad_acpi] X380 Yoga randomly boots in tablet mode, no integrated keyboard input
Attached to Project:
Arch Linux
Opened by xa (xa) - Saturday, 10 September 2022, 11:10 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 26 October 2022, 20:10 GMT
Opened by xa (xa) - Saturday, 10 September 2022, 11:10 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 26 October 2022, 20:10 GMT
|
Details
Description:
On a Thinkpad X380 Yoga with LUKS on a partition I face the issue of, sometimes, not being able to enter the password upon booting. When this happens, I have to connect a USB keyboard to enter the password. After starting up, the integrated keyboard works again, with the keyboard lights turned on that were previously turned off at the encrypt stage. After reading journalctl, I discovered the following line: kernel: thinkpad_acpi: Tablet mode switch found (type: GMMS), currently in tablet mode Whenever I was able to enter the password, this was set to "laptop mode". Whenever I couldn't do that, it was set to "tablet mode". After reading the German ubuntuusers article on Thinkpad ACPI [0] and the docs of thinkpad-acpi [1], I created the following file: $ cat /etc/modprobe.d/thinkpad_acpi.conf options thinkpad_acpi hotkey_tablet_mode=0 However, I still sometimes can't use the integrated keyboard and later find out that it was tablet mode, again. Note that the keyboard never works in the GRUB menu, neither the integrated nor a USB keyboard, in both the laptop and tablet mode. When shutting down, I always put the laptop in laptop mode. From /etc/mkinitcpio.conf: MODULES=(atkbd ext4) [...] HOOKS=(base udev keyboard modconf block encrypt filesystems fsck) I removed the autodetect hook in hope that it improves the situation, but it does not. Additional info: linux: 5.19.7.arch1-1 ThinkPad ACPI Extras v0.26 Steps to reproduce: Happens seemingly random. [0] https://wiki.ubuntuusers.de/Thinkpad_ACPI/#Speichern [1] https://www.kernel.org/doc/Documentation/laptops/thinkpad-acpi.txt |
This task depends upon
Closed by Toolybird (Toolybird)
Wednesday, 26 October 2022, 20:10 GMT
Reason for closing: None
Additional comments about closing: "See latest comment, I'm no longer using Arch."
Wednesday, 26 October 2022, 20:10 GMT
Reason for closing: None
Additional comments about closing: "See latest comment, I'm no longer using Arch."
pr_info("Tablet mode switch found (type: %s), currently in %s mode\n",
https://github.com/torvalds/linux/blob/master/drivers/platform/x86/thinkpad_acpi.c#L3140
Looking there, it seems like the hotkey_gmms_get_tablet_mode() function is responsible for detecting laptop/tablet mode:
https://github.com/torvalds/linux/blob/master/drivers/platform/x86/thinkpad_acpi.c#L1964
thanks for responding! I got this laptop in March, and the pre-installed Windows worked fine, so I was installing Arch on it for the first time and it did not work since the beginning. I.e., it's not a regression. I think my firmware is the latest, because I installed the intel-ucode package and regenerated the GRUB configuration. But that's a good hint, there might be more firmware that I could update. iirc, I wanted to update the BIOS in March but it was already the newest.
I think I'll then report this upstream and keep you updated here. Thanks for your time!