]> git.baikalelectronics.ru Git - kernel.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)
commit84b072b1a8bfc37a7652d6f01d673afcb4950f67
treecd59772805d19f6b600f693e42eca8e9eb469373
parent36084cccd6685327c207b29949846873e8b6c29c
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