Linux kernel module for Lenovo Yoga tablet mode support
MIT License
ACPI driver Linux kernel module for Lenovo Yoga usage mode sensor to detect whether the device is in tablet or laptop mode. Creates an input device reporting SW_TABLET_MODE
which libinput uses to disable keyboard and touchpad when tablet mode is entered; can also be used with https://github.com/alesguzik/linux_detect_tablet_mode.
This module has been reported to work at least with the following models:
Arch Linux users can install this using the AUR package yoga-usage-mode-dkms-git
.
Usage:
make
to buildmake load
as root to load the module for testingmake unload
as root to unload the modulemake install
as root to installAdd yoga-usage-mode
to e.g. /etc/modules-load.d/modules.conf
to load automatically.
Reconstructing the WMI interface (see c940.mof
) was done using https://github.com/pali/bmfdec.