Commit 085a33d5 authored by Peter Hutterer's avatar Peter Hutterer

Revert "udev: copy the trackpoint sensitivity directly from sysfs"

The lenovo compact keyboard with trackpoint has a sensitivity of 5, which
causes the trackpoint range to be 0. This in turn causes inf/NaN during
pointer acceleration as we divide by 0 and makes the cursor go unpredictably
somewhere it probably shouldn't be.

This is part of a wider problem in that the current sensitivity handling
doesn't work well for values well below the default of 128. Any such values
are scaled up to multiples of pixels instead of just working as-is.

Reverting the automatic sensitivity parsing, any systemd udev property set to
change the sensitivity increases it, so we don't run into this bug.

This reverts commit a4036a33.
parent d62118ac
......@@ -1194,7 +1194,7 @@ evdev_get_trackpoint_range(struct evdev_device *device)
prop = udev_device_get_property_value(device->udev_device,
if (prop) {
int sensitivity;
......@@ -1210,7 +1210,7 @@ evdev_get_trackpoint_range(struct evdev_device *device)
"trackpoint sensitivity is %d\n",
"trackpoint udev sensitivity is %d\n",
......@@ -39,8 +39,4 @@ KERNELS=="input*", \
KERNELS=="input*", \
IMPORT{builtin}="hwdb 'libinput:name:$attr{name}:dt:$attr{[devicetree/base]model}'"
ATTRS{sensitivity}=="?*", \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment