diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2020-11-18 11:07:02 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2020-11-27 08:12:32 +1000 |
commit | d625520be1fed599f03ebe4ef2c31875d274aa62 (patch) | |
tree | 2937a2c8ad503f312dba8dcf98a2e1e00dda02d6 | |
parent | 602820f8201dc9f888a6fb3f654e7cd505e385a1 (diff) | |
download | libinput-d625520be1fed599f03ebe4ef2c31875d274aa62.tar.gz |
udev: update rules to handle bind/unbind events
Summary: we expect add, change or remove but kernel 4.12 added bind and
unbind. These events were previously discarded by udevd. Our rules should
handle any event *but* remove, so update as suggested in the announce email
linked below.
For a longer explanation, see the system 247rc2 announcement
https://lists.freedesktop.org/archives/systemd-devel/2020-November/045570.html
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit cd37dcfa66d59ecbdf787ee1aa34bb65f2a38b6d)
-rw-r--r-- | udev/80-libinput-device-groups.rules.in | 2 | ||||
-rw-r--r-- | udev/90-libinput-fuzz-override.rules.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/udev/80-libinput-device-groups.rules.in b/udev/80-libinput-device-groups.rules.in index 1c40143d..8653b555 100644 --- a/udev/80-libinput-device-groups.rules.in +++ b/udev/80-libinput-device-groups.rules.in @@ -1,4 +1,4 @@ -ACTION!="add|change", GOTO="libinput_device_group_end" +ACTION=="remove", GOTO="libinput_device_group_end" KERNEL!="event[0-9]*", GOTO="libinput_device_group_end" ATTRS{phys}=="?*", IMPORT{program}="@UDEV_TEST_PATH@libinput-device-group %S%p" diff --git a/udev/90-libinput-fuzz-override.rules.in b/udev/90-libinput-fuzz-override.rules.in index 81f76cd1..aa9011d4 100644 --- a/udev/90-libinput-fuzz-override.rules.in +++ b/udev/90-libinput-fuzz-override.rules.in @@ -3,7 +3,7 @@ # 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" +ACTION=="remove", GOTO="libinput_fuzz_override_end" KERNEL!="event*", GOTO="libinput_fuzz_override_end" # Two-step process: fuzz-extract sets the LIBINPUT_FUZZ property and |