From: Atri Bhattacharya Date: Tue, 21 Aug 2018 00:45:26 +0000 (+0200) Subject: Add quirks for Lenovo MIIX 720. X-Git-Tag: 1.11.903~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d62c8fbba7d3d077cde1726dd15b9030bfc9f60;p=platform%2Fupstream%2Flibinput.git Add quirks for Lenovo MIIX 720. * 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. --- diff --git a/quirks/50-system-chicony.quirks b/quirks/50-system-chicony.quirks index 8f71e92..fce512e 100644 --- a/quirks/50-system-chicony.quirks +++ b/quirks/50-system-chicony.quirks @@ -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 diff --git a/quirks/50-system-lenovo.quirks b/quirks/50-system-lenovo.quirks index 7a99b85..958cfbd 100644 --- a/quirks/50-system-lenovo.quirks +++ b/quirks/50-system-lenovo.quirks @@ -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