summaryrefslogtreecommitdiff
path: root/recipes-qt/qt-demo/qt-demo-init/keyboard.rules
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt-demo/qt-demo-init/keyboard.rules')
-rw-r--r--recipes-qt/qt-demo/qt-demo-init/keyboard.rules48
1 files changed, 48 insertions, 0 deletions
diff --git a/recipes-qt/qt-demo/qt-demo-init/keyboard.rules b/recipes-qt/qt-demo/qt-demo-init/keyboard.rules
new file mode 100644
index 0000000..9ff3fa0
--- /dev/null
+++ b/recipes-qt/qt-demo/qt-demo-init/keyboard.rules
@@ -0,0 +1,48 @@
+# There are a number of modifiers that are allowed to be used in some
+# of the different fields. They provide the following subsitutions:
+#
+# %n the "kernel number" of the device.
+# For example, 'sda3' has a "kernel number" of '3'
+# %e the smallest number for that name which does not matches an existing node
+# %k the kernel name for the device
+# %M the kernel major number for the device
+# %m the kernel minor number for the device
+# %b the bus id for the device
+# %c the string returned by the PROGRAM
+# %s{filename} the content of a sysfs attribute
+# %% the '%' char itself
+#
+
+# make sysmlink for mouse and keyboard input event devicesudevadm info --name /dev/input/event2
+#P: /devices/platform/fsl-ehci.0/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.1/1-1.3.4.1:1.1/input/input2/event2
+#N: input/event2
+#S: input/by-id/usb-Logitech_USB_Receiver-if01-event-mouse
+#S: input/by-path/platform-fsl-ehci.0-usb-0:1.3.4.1:1.1-event-mouse
+#E: DEVLINKS=/dev/input/by-id/usb-Logitech_USB_Receiver-if01-event-mouse /dev/input/by-path/platform-fsl-ehci.0-usb-0:1.3.4.1:1.1-event-mouse
+#E: DEVNAME=/dev/input/event2
+#E: DEVPATH=/devices/platform/fsl-ehci.0/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4.1/1-1.3.4.1:1.1/input/input2/event2
+#E: ID_BUS=usb
+#E: ID_INPUT=1
+#E: ID_INPUT_KEY=1
+#E: ID_INPUT_MOUSE=1
+#E: ID_MODEL=USB_Receiver
+#E: ID_MODEL_ENC=USB\x20Receiver
+#E: ID_MODEL_ID=c52b
+#E: ID_PATH=platform-fsl-ehci.0-usb-0:1.3.4.1:1.1
+#E: ID_PATH_TAG=platform-fsl-ehci_0-usb-0_1_3_4_1_1_1
+#E: ID_REVISION=1201
+#E: ID_SERIAL=Logitech_USB_Receiver
+#E: ID_TYPE=hid
+#E: ID_USB_DRIVER=usbhid
+#E: ID_USB_INTERFACES=:030101:030102:030000:
+#E: ID_USB_INTERFACE_NUM=01
+#E: ID_VENDOR=Logitech
+#E: ID_VENDOR_ENC=Logitech
+#E: ID_VENDOR_ID=046d
+#E: MAJOR=13
+#E: MINOR=66
+#E: SUBSYSTEM=input
+#E: USEC_INITIALIZED=4737491
+
+SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_KEYBOARD}=="1", SYMLINK+="input/event-keyboard"
+