Difference between revisions of "Xinput"
From Vague Hope Wiki
(Created page with "<pre> xinput list xinput list-props <id> xinput setprop <id> <prop-id> <value> </pre>") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
xinput list-props <id> | xinput list-props <id> | ||
xinput setprop <id> <prop-id> <value> | xinput setprop <id> <prop-id> <value> | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | sudo lsinput | ||
+ | cat /proc/bus/input/devices | ||
+ | </pre> | ||
+ | |||
+ | "Name=" from `cat /proc/bus/input/devices` can be used in udev rules: | ||
+ | <pre> | ||
+ | $ 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}" | ||
+ | </pre> | ||
+ | |||
+ | xorg MatchProduct, MatchVendor | ||
+ | <pre> | ||
+ | udevadm info --query=all --path=$(udevadm info --query=path --name=/dev/input/event9) | ||
</pre> | </pre> |
Latest revision as of 12:05, 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, MatchVendor
udevadm info --query=all --path=$(udevadm info --query=path --name=/dev/input/event9)