]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
platform/x86: thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode
authorLyude <lyude@redhat.com>
Fri, 11 Nov 2016 20:15:03 +0000 (15:15 -0500)
committerDarren Hart <dvhart@linux.intel.com>
Tue, 13 Dec 2016 17:29:06 +0000 (09:29 -0800)
commitb03f4d49469f3bde9600192af15b8f17f8673679
treecd59772805d19f6b600f693e42eca8e9eb469373
parentb31800283868746fc59686486a11fb24b103955b
platform/x86: thinkpad_acpi: Add support for X1 Yoga (2016) Tablet Mode

For whatever reason, the X1 Yoga doesn't support the normal method of
querying for tablet mode. Instead of providing the MHKG method under the
hotkey handle, we're instead given the CMMD method under the EC handle.
Values on this handle are either 0x1, laptop mode, or 0x6, tablet mode.

Tested-by: Daniel Martin <consume.noise@gmail.com>
Signed-off-by: Lyude <lyude@redhat.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Documentation/laptops/thinkpad-acpi.txt
drivers/platform/x86/thinkpad_acpi.c