udev: update rules to handle bind/unbind events
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 18 Nov 2020 01:07:02 +0000 (11:07 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 24 Nov 2020 23:47:31 +0000 (23:47 +0000)
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>
udev/80-libinput-device-groups.rules.in
udev/90-libinput-fuzz-override.rules.in

index 1c40143..8653b55 100644 (file)
@@ -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"
index 81f76cd..aa9011d 100644 (file)
@@ -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