Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect 60-evdev.hwdb entry for T490 trackpad #15694

Closed
ianhi opened this issue May 5, 2020 · 1 comment · Fixed by #15695
Closed

Incorrect 60-evdev.hwdb entry for T490 trackpad #15694

ianhi opened this issue May 5, 2020 · 1 comment · Fixed by #15695
Labels

Comments

@ianhi
Copy link
Contributor

ianhi commented May 5, 2020

systemd version the issue has been seen with

245

Used distribution

PopOS 20.04

The current entry for the T490 trackpad:

# Lenovo Thinkpad T490
evdev:name:SynPS/2 Synaptics TouchPad:dmi:*:svnLENOVO:*pvrThinkPadT490:*
EVDEV_ABS_00=::57
EVDEV_ABS_01=::33
EVDEV_ABS_35=::57
EVDEV_ABS_36=::33

Was introduced on the basis of a touchpad-edge-detector report from https://gitlab.freedesktop.org/libinput/libinput/issues/402. However, the incorrect touchpad dimensions (78x108 mm) were used with touchpad-edge-detect. I measured and found the correct dimensions to be 100x68 mm which is the same as in this article and a later post in the same libinput issue.

This swap of the x and y dimensions results in much faster movement in y than in x. I ran touchpad-edge-detect 100x68 /dev/input/event5 giving:

User-specified touchpad size: 100x68mm
Calculated ranges: 4412/3533

Suggested udev rule:
# <Laptop model description goes here>
evdev:name:SynPS/2 Synaptics TouchPad:dmi:bvnLENOVO:bvrN2IET80W(1.58):bd11/26/2019:svnLENOVO:pn20N2CTO1WW:pvrThinkPadT490:rvnLENOVO:rn20N2CTO1WW:rvrSDK0J40709WIN:cvnLENOVO:ct10:cvrNone:*
 EVDEV_ABS_00=1266:5678:44
 EVDEV_ABS_01=1161:4694:52
 EVDEV_ABS_35=1266:5678:44
 EVDEV_ABS_36=1161:4694:52

Changing these values in /lib/udev/hwdb.d/60-evdev.hwdb fixed the faster movement in y than in x for me.

Per the gitlab issue cc @whot

@JohnPucciarelli
Copy link

JohnPucciarelli commented May 20, 2020

Thanks for fixing this! For anyone interested in applying the changes while waiting for this fix to get upstreamed:

Change values in /lib/udev/hwdb.d/60-evdev.hwdb to match those in the pull-request.

Then to apply the changes (see: http://who-t.blogspot.com/2019/02/adding-entries-to-udev-hwdb.html):

systemd-hwdb update
udevadm control --reload-rules
udevadm trigger

Log out -> log in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

3 participants