[PATCH libinput 00/10] libinput device quirks config files
Peter Hutterer
peter.hutterer at who-t.net
Mon May 28 08:08:26 UTC 2018
This is the first implementation of the .ini style config files for
libinput's device quirks. I first described this here:
https://lists.freedesktop.org/archives/wayland-devel/2018-May/038233.html
This is NOT a configuration API. This is a replacement for the hwdb entries
we currently ship. It sets quirks that devices need like "this tablet
has a known broken event stream" that we then handle in custom code paths.
It doesn't do any configuration items exposed through the
libinput_device_config_* API.
It's not libinput API and it's not really user-visible in
that you shouldn't need those files except if you're the first one to spot
an issue that needs a quirk.
The basic approach is simple - a bunch of files in
/usr/share/libinput/*.quirks with entries like this:
[Aiptek No Tilt Tablet]
MatchUdevType=tablet
MatchBus=usb
MatchVendor=0x08CA
ModelTabletNoTilt=1
For comparsion, the hwdb entry for this one is currently:
libinput:tablet:input:b0003v08CAp*
LIBINPUT_MODEL_TABLET_NO_TILT=1
There is some accommodation for custom local overrides, a
single file defaulting to /etc/libinput/local-overrides.quirks
Since this isn't public API and any changes should be upstreamed, a single
file for local overrides is enough.
The patch set still has a few fixmes in it but we can sort those out in
follow-ups. They only affect device-tree and firmware version handling
anyway and both should just be a string comparison.
Cheers,
Peter
More information about the wayland-devel
mailing list