platform/x86: asus-wmi: Add support for SW_TABLET_MODE
On Asus 2-in-1s with a detachable keyboard the Asus WMI interface reports if the tablet is attached to the keyboard or not. Report if the 2-in-1 is in tablet or clamshell mode to userspace by reporting SW_TABLET_MODE events to userspace. This has been tested on a T100TA, T100CHI, T100HA and T200TA. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
fed5003d80
commit
b0dbd97de1
2 changed files with 25 additions and 2 deletions
|
|
@ -85,6 +85,9 @@
|
|||
/* Maximum charging percentage */
|
||||
#define ASUS_WMI_DEVID_RSOC 0x00120057
|
||||
|
||||
/* Keyboard dock */
|
||||
#define ASUS_WMI_DEVID_KBD_DOCK 0x00120063
|
||||
|
||||
/* DSTS masks */
|
||||
#define ASUS_WMI_DSTS_STATUS_BIT 0x00000001
|
||||
#define ASUS_WMI_DSTS_UNKNOWN_BIT 0x00000002
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue