]> 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)
commit1e06d09ef6ba1f613b3445746ed2fa1c830bf46b
treecd59772805d19f6b600f693e42eca8e9eb469373
parent5ad4afd21102484db3af578a4d2cd84f3d203f71
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