From: Peter Hutterer Date: Tue, 13 Jun 2023 23:16:27 +0000 (+1000) Subject: doc/user: update the udev rule to handle bind/unbind events X-Git-Tag: accepted/tizen/unified/20240105.013022~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a19ae0adbfd6779e40871294fd2e47787c52ee85;p=platform%2Fupstream%2Flibinput.git doc/user: update the udev rule 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.ht See cd37dcfa66d59ecbdf787ee1aa34bb65f2a38b6d where we did this already for the udev rules we use ourselves. Signed-off-by: Peter Hutterer --- diff --git a/doc/user/ignoring-devices.rst b/doc/user/ignoring-devices.rst index b6d27de2..ec8aed7a 100644 --- a/doc/user/ignoring-devices.rst +++ b/doc/user/ignoring-devices.rst @@ -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"