Skip to content

Commit

Permalink
Add udev rules for various controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Dec 17, 2024
1 parent a2ffddf commit e0f22f0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions clearpath_bt_joy/debian/udev
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
KERNEL=="uinput", MODE="0666"
KERNEL=="event*", MODE="0666"


# Sony PlayStation DualShock 4
# USB
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666"
# Bluetooth
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="*:054C:05C4.*", MODE="0666"

# Sony PlayStation DualShock 4 Slim
# USB
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666"
# Bluetooth
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", KERNELS=="*:054C:09CC.*", MODE="0666"
KERNEL=="js*", SUBSYSTEM=="input", ATTRS{name}=="Wireless Controller", MODE="0666", SYMLINK+="input/ps4"


# Logitech game controllers
KERNEL=="js*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21f", SYMLINK+="input/f710"
KERNEL=="js*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c219", SYMLINK+="input/f710"
KERNEL=="js*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21d", SYMLINK+="input/f310"


# Xbox One controller
KERNEL=="usb*", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002", MODE="0666", SYMLINK="input/xbox"

0 comments on commit e0f22f0

Please sign in to comment.