* 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.
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
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