2018-09-10 15:16:49 +10:00
|
|
|
# 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
|
|
|
|
|
|
2019-06-26 11:29:31 +10:00
|
|
|
ACTION!="add|change", GOTO="libinput_fuzz_override_end"
|
|
|
|
|
KERNEL!="event*", GOTO="libinput_fuzz_override_end"
|
2018-09-10 15:16:49 +10:00
|
|
|
|
2019-09-04 15:09:13 +10:00
|
|
|
# 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.
|
2019-06-26 11:31:56 +10:00
|
|
|
ATTRS{capabilities/abs}!="0", \
|
|
|
|
|
ENV{ID_INPUT_TOUCHPAD}=="1", \
|
2019-09-04 15:09:13 +10:00
|
|
|
IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-extract %S%p", \
|
|
|
|
|
RUN{program}="@UDEV_TEST_PATH@libinput-fuzz-to-zero %S%p", \
|
2019-06-26 11:31:56 +10:00
|
|
|
GOTO="libinput_fuzz_override_end"
|
|
|
|
|
ATTRS{capabilities/abs}!="0", \
|
|
|
|
|
ENV{ID_INPUT_TOUCHSCREEN}=="1", \
|
2019-09-04 15:09:13 +10:00
|
|
|
IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-extract %S%p", \
|
|
|
|
|
RUN{program}="@UDEV_TEST_PATH@libinput-fuzz-to-zero %S%p", \
|
2019-06-26 11:31:56 +10:00
|
|
|
GOTO="libinput_fuzz_override_end"
|
2018-09-10 15:16:49 +10:00
|
|
|
|
2019-06-26 11:31:56 +10:00
|
|
|
LABEL="libinput_fuzz_override_end"
|