Created
January 14, 2017 14:00
-
-
Save baracudaz/9c823ce5d136c63114a7eeca87a0e09a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osmc@osmc:~$ udevadm info -a /dev/input/event1 | |
Udevadm info starts with the device specified by the devpath and then | |
walks up the chain of parent devices. It prints for every device | |
found, all possible attributes in the udev rules key format. | |
A rule to match, can be composed by the attributes of the device | |
and the attributes from one single parent device. | |
looking at device '/devices/virtual/input/input3/event1': | |
KERNEL=="event1" | |
SUBSYSTEM=="input" | |
DRIVER=="" | |
looking at parent device '/devices/virtual/input/input3': | |
KERNELS=="input3" | |
SUBSYSTEMS=="input" | |
DRIVERS=="" | |
ATTRS{name}=="python-uinput" | |
ATTRS{phys}=="" | |
ATTRS{uniq}=="" | |
ATTRS{properties}=="0" | |
osmc@osmc:~$ evtest /dev/input/event1 | |
Input driver version is 1.0.1 | |
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0 | |
Input device name: "python-uinput" | |
Supported events: | |
Event type 0 (EV_SYN) | |
Event type 1 (EV_KEY) | |
Event code 16 (KEY_Q) | |
Event code 17 (KEY_W) | |
Event code 28 (KEY_ENTER) | |
Event code 30 (KEY_A) | |
Event code 31 (KEY_S) | |
Event code 44 (KEY_Z) | |
Event code 45 (KEY_X) | |
Event code 54 (KEY_RIGHTSHIFT) | |
Event code 103 (KEY_UP) | |
Event code 105 (KEY_LEFT) | |
Event code 106 (KEY_RIGHT) | |
Event code 108 (KEY_DOWN) | |
Properties: | |
Testing ... (interrupt to exit) | |
*********************************************** | |
This device is grabbed by another process. | |
No events are available to evtest while the | |
other grab is active. | |
In most cases, this is caused by an X driver, | |
try VT-switching and re-run evtest again. | |
Run the following command to see processes with | |
an open fd on this device | |
"fuser -v /dev/input/event1" | |
*********************************************** | |
^C | |
osmc@osmc:~$ fuser -v /dev/input/event1 | |
osmc@osmc:~$ sudo fuser -v /dev/input/event1 | |
USER PID ACCESS COMMAND | |
/dev/input/event1: osmc 504 F.... kodi.bin | |
osmc@osmc:~$ cat /etc/udev/rules.d/40-uinput.rules | |
SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment