[PATCH libinput 00/10] libinput device quirks config files
Pekka Paalanen
ppaalanen at gmail.com
Mon May 28 09:54:57 UTC 2018
On Mon, 28 May 2018 18:08:26 +1000
Peter Hutterer <peter.hutterer at who-t.net> wrote:
> 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.
Hi Peter,
it all sounds fine to me, but it's not really my expertise.
Did you think whether it would be too obnoxious to have a libinput
version tag in local-overrides.quirks and reject the file if it doesn't
match the running libinput version? That would annoy people who carry
local quirks every time libinput updates, hopefully poking them towards
upstreaming their changes rather than only fixing the version tag.
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180528/db9bd27c/attachment.sig>
More information about the wayland-devel
mailing list