udev: add trackpoint range for Lenovo X280
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 22 Mar 2018 04:29:37 +0000 (14:29 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 18 Apr 2018 05:09:41 +0000 (15:09 +1000)
https://bugs.freedesktop.org/show_bug.cgi?id=105485

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 9d7f48b66aad8f985212ca3f6e31fc6e84caee90)

udev/90-libinput-model-quirks.hwdb
udev/parse_hwdb.py

index 7a26e6c8af8826d8273b4d99fb5ae23e37571316..57b479bf58192024c330dd21bc80f04a50b44535 100644 (file)
@@ -214,6 +214,10 @@ libinput:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO:*:pvrThinkPadX1Carbon3rd
 libinput:keyboard:input:b0003v17EFp6047*
  LIBINPUT_ATTR_KEYBOARD_INTEGRATION=external
 
+# Lenovo X280
+libinput:name:*ALPS TrackPoint*:svnLENOVO:*:pvrThinkPadX280:*
+ LIBINPUT_ATTR_TRACKPOINT_RANGE=70
+
 ##########################################
 # Logitech
 ##########################################
index 69eb65b06dd084159205b53a2809d5c838d93b7f..0afc75b55a3569dcb932f76b1b61cb52c53e9397 100755 (executable)
@@ -113,6 +113,7 @@ def property_grammar():
         ('LIBINPUT_ATTR_LID_SWITCH_RELIABILITY',
          Or(('reliable', 'write_open'))),
         ('LIBINPUT_ATTR_KEYBOARD_INTEGRATION', Or(('internal', 'external'))),
+        ('LIBINPUT_ATTR_TRACKPOINT_RANGE', INTEGER('Y')),
     )
     value_props = [Literal(name)('NAME') - Suppress('=') - val('VALUE') for
                    name, val in vprops]