diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-10 10:30:38 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2017-02-13 08:28:37 +1000 |
commit | 019f1851076c267002bf11673af69b5a0d48a301 (patch) | |
tree | e595418dfe27476e684008aaa443cec47e393837 /udev | |
parent | be30b28a1278190197f60c80821ba74602d09dac (diff) |
touchpad: add a hwdb quirk for (external) touchpad/keyboard combos
Specify the layout of the combo so we know when to initialize palm detection.
This allows us to drop palm detection on external touchpads otherwise,
replacing the wacom-specific check with something more generic..
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'udev')
-rw-r--r-- | udev/90-libinput-model-quirks.hwdb | 7 | ||||
-rwxr-xr-x | udev/parse_hwdb.py | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index 412d872..c1d6235 100644 --- a/udev/90-libinput-model-quirks.hwdb +++ b/udev/90-libinput-model-quirks.hwdb @@ -60,6 +60,13 @@ libinput:name:*ETPS/2 Elantech Touchpad*:dmi:*svnASUSTeKCOMPUTERINC.:pnX555LAB:* LIBINPUT_MODEL_TOUCHPAD_VISIBLE_MARKER=1 ########################################## +# Chicony +########################################## +# Acer Hawaii Keyboard, uses Chicony VID +libinput:touchpad:input:b0003v04F2p1558* + LIBINPUT_ATTR_TPKBCOMBO_LAYOUT=below + +########################################## # Cyborg ########################################## # Saitek Cyborg R.A.T.5 Mouse diff --git a/udev/parse_hwdb.py b/udev/parse_hwdb.py index d079be2..2a342bf 100755 --- a/udev/parse_hwdb.py +++ b/udev/parse_hwdb.py @@ -107,7 +107,12 @@ def property_grammar(): Suppress('=') - reliability_tags('VALUE')] - grammar = Or(model_props + size_props + reliability) + tpkbcombo_tags = Or(('below')) + tpkbcombo = [Literal('LIBINPUT_ATTR_TPKBCOMBO_LAYOUT')('NAME') - + Suppress('=') - + tpkbcombo_tags('VALUE')] + + grammar = Or(model_props + size_props + reliability + tpkbcombo) return grammar |