summaryrefslogtreecommitdiff
path: root/recipes-qt/qt-demo/qt-demo-init/mouse.rules
blob: d1d33d70b701561bb5ecae1e820cbf7bb3ecb08a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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_MOUSE}=="1",  SYMLINK+="input/event-mouse"