doc/user: add an example udev rule for LIBINPUT_IGNORE_DEVICE
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 15 Nov 2021 01:14:10 +0000 (11:14 +1000)
committerJosé Expósito <jose.exposito89@gmail.com>
Tue, 16 Nov 2021 06:47:48 +0000 (06:47 +0000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/user/device-configuration-via-udev.rst

index 80f536b..ee3345c 100644 (file)
@@ -134,6 +134,15 @@ devices at all unset the **ID_INPUT** and related properties instead. The
 ignore this property but other parts of the stack (if any) should continue
 treating this device normally.
 
+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]*", \
+     ENV{ID_VENDOR_ID}=="012a", \
+     ENV{ID_MODEL_ID}=="034b", \
+     ENV{LIBINPUT_IGNORE_DEVICE}="1"
+
 
 .. _model_specific_configuration: