Add quirks for Lenovo MIIX 720.
authorAtri Bhattacharya <badshah400@gmail.com>
Tue, 21 Aug 2018 00:45:26 +0000 (02:45 +0200)
committerAtri Bhattacharya <badshah400@gmail.com>
Tue, 21 Aug 2018 00:45:26 +0000 (02:45 +0200)
* Lenovo MIIX 720 is a tablet with a detachable keyboard. To keep
  the volume rockers on the tablet enabled even when the keyboard
  is detached, add `ModelTabletModeNoSuspend=1` to the internal
  keyboard.
* The external keyboard is a keyboard-touchpad combo. Assign
  `AttrTPKComboLayout=below` to the touchpad to allow features
  like disable-while-typing and palm-detection.

quirks/50-system-chicony.quirks
quirks/50-system-lenovo.quirks

index 8f71e92..fce512e 100644 (file)
@@ -7,3 +7,11 @@ MatchBus=usb
 MatchVendor=0x4F2
 MatchProduct=0x1558
 AttrTPKComboLayout=below
+
+# Lenovo MIIX 720 comes with a detachable touchpad-keyboard combo
+[Chicony Lenovo MIIX 720 Touchpad]
+MatchUdevType=touchpad
+MatchBus=0x03
+MatchVendor=0x17ef
+MatchProduct=0x60a6
+AttrTPKComboLayout=below
index 7a99b85..958cfbd 100644 (file)
@@ -80,3 +80,12 @@ ModelLenovoCarbonX16th=1
 MatchName=AT Translated Set 2 keyboard
 MatchDMIModalias=dmi:*svnIBM:*pvrThinkPadX41Tablet:*
 ModelTabletModeNoSuspend=1
+
+# Lenovo MIIX 720 comes with a detachable keyboard. We must not disable
+# the keyboard because some keys are still accessible on the screen and
+# volume rocker. See
+# https://gitlab.freedesktop.org/libinput/libinput/issues/115
+[Lenovo MIIX 720]
+MatchName=AT Raw Set 2 keyboard
+MatchDMIModalias=dmi:*svnLENOVO:*pvrLenovoMIIX720-12IKB:*
+ModelTabletModeNoSuspend=1