libinput/udev
Peter Hutterer 1523d8bb2e Extract and reset the abs fuzz value for the x/y axes
The kernel fuzz handling is buggy, especially when we want to rely on the fuzz
value for our hysteresis. But since this is a hw property and (at least
sometimes) set by the driver, we can't make this a pure libinput hwdb set
either.

So our workaround is:
* extract the (non-zero) fuzz into a udev property so we don't lose it
* set the fuzz to 0 to disable the in-kernel hysteresis
* overwrite our internal absinfo with the property fuzz

This way we get to use the hw-specified fuzz without having the kernel muck
around with it. We also get to use the EVDEV_ABS_ values in 60-evdev.hwdb to
override a driver-set fuzz.

Two drawbacks:
- we're resetting the kernel fuzz to 0, this affects any other users of the
  device node. That's probably a minor impact only.
- we can only save this in a udev property there's a risk of this information
  getting lost when playing around with udev rules. That too should be a minor
  issue.

https://bugs.freedesktop.org/show_bug.cgi?id=105303

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-03-09 09:49:54 +10:00
..
80-libinput-device-groups.rules.in udev: don't overwrite a previously set device group 2016-08-01 07:13:05 +10:00
80-libinput-test-device.rules Ignore test devices for libinput contexts not run from the test suite 2015-07-28 17:42:32 +08:00
90-libinput-model-quirks.hwdb Fix Apple Magic Trackpad sensitivity 2018-03-02 14:24:59 +10:00
90-libinput-model-quirks.rules.in Extract and reset the abs fuzz value for the x/y axes 2018-03-09 09:49:54 +10:00
libinput-device-group.c Silence coverity warning about uninitialized entry 2018-02-16 16:57:30 +10:00
libinput-model-quirks.c Extract and reset the abs fuzz value for the x/y axes 2018-03-09 09:49:54 +10:00
parse_hwdb.py udev: fix flake8-3 complaint in parse_hwdb.py 2018-02-27 14:36:08 +10:00