mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 21:40:40 +01:00
doc/user: update the udev rule to handle bind/unbind events (part 2)
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 Seecd37dcfa66where we did this already for the udev rules we use ourselves anda88d107c0dfor the patch where we already updated parts of the docs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
769cb992cc
commit
4b03374d50
1 changed files with 2 additions and 2 deletions
|
|
@ -71,7 +71,7 @@ Below is an example udev rule to assign "seat1" to a device from vendor
|
|||
``0x012a`` with the model ID of ``0x034b``. ::
|
||||
|
||||
$ cat /etc/udev/rules.d/99-my-device-is-on-seat1.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{ID_SEAT}="seat1"
|
||||
|
|
@ -102,7 +102,7 @@ and change it into an **ID_INPUT_TABLET** setting. This rule would apply
|
|||
for a device with the vendor/model ID of ``012a``/``034b``. ::
|
||||
|
||||
$ cat /etc/udev/rules.d/99-my-device-is-a-tablet.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{ID_INPUT_TOUCHPAD}="", ENV{ID_INPUT_TABLET}="1"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue