]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
hwdb: fix size lenovo x240 touchpad (#16871)
authorJérémy Nouhaud <jeremy9856@gmail.com>
Thu, 27 Aug 2020 19:59:23 +0000 (21:59 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Aug 2020 19:59:23 +0000 (21:59 +0200)
As discussed in https://gitlab.freedesktop.org/libinput/libinput/-/issues/521, it adds a narrower
match that only applies to X240. Other laptops that match `pvrThinkPad??40` are not affected:

$ systemd-hwdb query 'evdev:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO*:pvrThinkPadX240:*'
EVDEV_ABS_00=1232:5711:51
EVDEV_ABS_01=1159:4700:53
EVDEV_ABS_35=1232:5711:51
EVDEV_ABS_36=1159:4700:53
$ systemd-hwdb query 'evdev:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO*:pvrThinkPadX140:*'
EVDEV_ABS_00=::41
EVDEV_ABS_01=::37
EVDEV_ABS_35=::41
EVDEV_ABS_36=::37

hwdb.d/60-evdev.hwdb

index 6d760b2be0720c5f8fd839461661c9c434036a88..bf9f68a858f80c94342820d8b79e9dd180a93414 100644 (file)
@@ -399,6 +399,14 @@ evdev:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO*:pvrThinkPad??40?:*
  EVDEV_ABS_35=::41
  EVDEV_ABS_36=::37
 
+# Lenovo X240 series
+evdev:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO*:pvrThinkPadX240:*
+evdev:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO*:pvrThinkPadX240?:*
+ EVDEV_ABS_00=1232:5711:51
+ EVDEV_ABS_01=1159:4700:53
+ EVDEV_ABS_35=1232:5711:51
+ EVDEV_ABS_36=1159:4700:53
+
 # Lenovo ThinkPad X140e
 evdev:name:SynPS/2 Synaptics TouchPad:dmi:*svnLENOVO*:pvrThinkPadX140e*
  EVDEV_ABS_00=1176:5767:62