Difference between revisions of "Xinput"
From Vague Hope Wiki
Line 14: | Line 14: | ||
$ cat 10-joystick.rules | $ cat 10-joystick.rules | ||
KERNEL=="js*", ATTRS{name}=="Joytech NEO S V2.0b Joytech NEO S V2.0b ", RUN+="/usr/bin/logger gamepad %E{DEVNAME}" | KERNEL=="js*", ATTRS{name}=="Joytech NEO S V2.0b Joytech NEO S V2.0b ", RUN+="/usr/bin/logger gamepad %E{DEVNAME}" | ||
+ | </pre> | ||
+ | |||
+ | xorg MatchProduct | ||
+ | <pre> | ||
+ | udevadm info --query=all --path=$(udevadm info --query=path --name=/dev/input/event9) | ||
</pre> | </pre> |
Revision as of 12:02, 25 February 2012
xinput list xinput list-props <id> xinput setprop <id> <prop-id> <value>
sudo lsinput cat /proc/bus/input/devices
"Name=" from `cat /proc/bus/input/devices` can be used in udev rules:
$ cat 10-joystick.rules KERNEL=="js*", ATTRS{name}=="Joytech NEO S V2.0b Joytech NEO S V2.0b ", RUN+="/usr/bin/logger gamepad %E{DEVNAME}"
xorg MatchProduct
udevadm info --query=all --path=$(udevadm info --query=path --name=/dev/input/event9)