90-libinput-fuzz-override.rules.in 1.1 KB

123456789101112131415161718192021222324252627
  1. # Do not edit this file, it will be overwritten on update
  2. #
  3. # This file contains lookup rules for libinput model-specific quirks.
  4. # IT IS NOT A STABLE API AND SUBJECT TO CHANGE AT ANY TIME
  5. ACTION=="remove", GOTO="libinput_fuzz_override_end"
  6. KERNEL!="event*", GOTO="libinput_fuzz_override_end"
  7. # Two-step process: fuzz-extract sets the LIBINPUT_FUZZ property and
  8. # fuzz-to-zero sets the kernel fuzz to zero. They must be in IMPORT and RUN,
  9. # respectively, to correctly interact with the 60-evdev.hwdb
  10. #
  11. # Drawback: if this rule is triggered more than once, we'll lose the fuzz
  12. # information (because the kernel fuzz will then be zero). Nothing we can do
  13. # about that.
  14. ATTRS{capabilities/abs}!="0", \
  15. ENV{ID_INPUT_TOUCHPAD}=="1", \
  16. IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-extract %S%p", \
  17. RUN{program}+="@UDEV_TEST_PATH@libinput-fuzz-to-zero %S%p", \
  18. GOTO="libinput_fuzz_override_end"
  19. ATTRS{capabilities/abs}!="0", \
  20. ENV{ID_INPUT_TOUCHSCREEN}=="1", \
  21. IMPORT{program}="@UDEV_TEST_PATH@libinput-fuzz-extract %S%p", \
  22. RUN{program}+="@UDEV_TEST_PATH@libinput-fuzz-to-zero %S%p", \
  23. GOTO="libinput_fuzz_override_end"
  24. LABEL="libinput_fuzz_override_end"