All of lore.kernel.org
 help / color / mirror / Atom feed
* ideapad_laptop tablet mode toggle detection
@ 2023-03-01  4:45 Andrew Kallmeyer
  2023-03-04  5:46 ` Andrew Kallmeyer
  0 siblings, 1 reply; 15+ messages in thread
From: Andrew Kallmeyer @ 2023-03-01  4:45 UTC (permalink / raw)
  To: platform-driver-x86

Hello, I'm interested in detecting tablet mode switching for my Lenovo
Yoga laptop properly in the kernel. Ultimately I'd like to provide the
SW_TABLET_MODE input event.

I have found that there are ACPI events fired when the tablet mode is
toggled (both directions send the same event). Here are the logs:

kernel: ACPI BIOS Error (bug): Could not resolve symbol
[\_SB.PC00.LPCB.EC0._Q44.WM00], AE_NOT_FOUND (20221020/psargs-330)
kernel: ACPI Error: Aborting method \_SB.PC00.LPCB.EC0._Q44 due to
previous error (AE_NOT_FOUND) (20221020/psparse-529)
root[10258]: ACPI group/action undefined: 06129D99-6083- / 000000d0

When I looked at the code I found TP_HKEY_EV_TABLET_CHANGED in the
thinkpad_acpi.c driver which seems to have exactly the behavior I'm
looking for but with a different ACPI event number. Would it be
possible to do something like this in the ideapad_laptop driver?

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-03-08 10:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01  4:45 ideapad_laptop tablet mode toggle detection Andrew Kallmeyer
2023-03-04  5:46 ` Andrew Kallmeyer
2023-03-04 20:14   ` Maximilian Luz
2023-03-04 21:37     ` Armin Wolf
2023-03-05  5:42       ` Andrew Kallmeyer
2023-03-05 21:40         ` Armin Wolf
2023-03-05 22:59           ` Andrew Kallmeyer
2023-03-06  1:26             ` Armin Wolf
2023-03-06  1:41               ` Andrew Kallmeyer
2023-03-06  1:58                 ` Armin Wolf
2023-03-06  1:41               ` Armin Wolf
2023-03-06  8:38                 ` Hans de Goede
2023-03-08  5:14                   ` Andrew Kallmeyer
2023-03-08  5:21                     ` Andrew Kallmeyer
2023-03-08 10:13                     ` Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.