From 1ea91b212b3fa902c3313a9177ee714fda998a57 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 22 Mar 2018 14:29:37 +1000 Subject: [PATCH] udev: add trackpoint range for Lenovo X280 https://bugs.freedesktop.org/show_bug.cgi?id=105485 Signed-off-by: Peter Hutterer (cherry picked from commit 9d7f48b66aad8f985212ca3f6e31fc6e84caee90) --- udev/90-libinput-model-quirks.hwdb | 4 ++++ udev/parse_hwdb.py | 1 + 2 files changed, 5 insertions(+) diff --git a/udev/90-libinput-model-quirks.hwdb b/udev/90-libinput-model-quirks.hwdb index 7a26e6c8..57b479bf 100644 --- a/udev/90-libinput-model-quirks.hwdb +++ b/udev/90-libinput-model-quirks.hwdb @@ -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 ########################################## diff --git a/udev/parse_hwdb.py b/udev/parse_hwdb.py index 69eb65b0..0afc75b5 100755 --- a/udev/parse_hwdb.py +++ b/udev/parse_hwdb.py @@ -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] -- 2.34.1