doc/user: update the udev rule to handle bind/unbind events
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 13 Jun 2023 23:16:27 +0000 (09:16 +1000)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Dec 2023 10:23:27 +0000 (19:23 +0900)
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.ht

See cd37dcfa66d59ecbdf787ee1aa34bb65f2a38b6d where we did this already
for the udev rules we use ourselves.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/user/ignoring-devices.rst

index b6d27de2d7f06e43a95e81b645c61ab3d88440d5..ec8aed7acef3a103a0613bba6b76bbcf7f49b698 100644 (file)
@@ -28,7 +28,7 @@ Below is an example udev rule  to assign **LIBINPUT_IGNORE_DEVICE** to the
 device with the vendor/model ID of ``012a``/``034b``. ::
 
   $ cat /etc/udev/rules.d/99-ignore-my-device.rules
-  ACTION=="add|change", KERNEL=="event[0-9]*", \
+  ACTION!="remove", KERNEL=="event[0-9]*", \
      ENV{ID_VENDOR_ID}=="012a", \
      ENV{ID_MODEL_ID}=="034b", \
      ENV{LIBINPUT_IGNORE_DEVICE}="1"