mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-22 12:30:04 +01:00
IMPORT really only supports == and != and for a short while udevd warned about
this before that warning was reverted again.
Where anything else is used, it falls back to ==. systemd upstream rules all
use a single = though, so let's stick with that to be consistent, even if it
is technically wrong (udevd will warn about this in debug mode).
See the long discussion in systemd upstream for details:
https://github.com/systemd/systemd/issues/14062
Fixes #461
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 281ecf10d1)
27 lines
1.1 KiB
Text
27 lines
1.1 KiB
Text
# Do not edit this file, it will be overwritten on update
|
|
#
|
|
# This file contains lookup rules for libinput model-specific quirks.
|
|
# IT IS NOT A STABLE API AND SUBJECT TO CHANGE AT ANY TIME
|
|
|
|
ACTION!="add|change", GOTO="libinput_fuzz_override_end"
|
|
KERNEL!="event*", GOTO="libinput_fuzz_override_end"
|
|
|
|
# Two-step process: fuzz-extract sets the LIBINPUT_FUZZ property and
|
|
# fuzz-to-zero sets the kernel fuzz to zero. They must be in IMPORT and RUN,
|
|
# respectively, to correctly interact with the 60-evdev.hwdb
|
|
#
|
|
# Drawback: if this rule is triggered more than once, we'll lose the fuzz
|
|
# information (because the kernel fuzz will then be zero). Nothing we can do
|
|
# about that.
|
|
ATTRS{capabilities/abs}!="0", \
|
|
ENV{ID_INPUT_TOUCHPAD}=="1", \
|
|
IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-extract %S%p", \
|
|
RUN{program}+="@UDEV_TEST_PATH@libinput-fuzz-to-zero %S%p", \
|
|
GOTO="libinput_fuzz_override_end"
|
|
ATTRS{capabilities/abs}!="0", \
|
|
ENV{ID_INPUT_TOUCHSCREEN}=="1", \
|
|
IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-extract %S%p", \
|
|
RUN{program}+="@UDEV_TEST_PATH@libinput-fuzz-to-zero %S%p", \
|
|
GOTO="libinput_fuzz_override_end"
|
|
|
|
LABEL="libinput_fuzz_override_end"
|