Skip to content

Instantly share code, notes, and snippets.

@jefferymiller
Created September 1, 2018 23:53
Show Gist options
  • Save jefferymiller/6efb4fc1f109636a43838c66e94d4c43 to your computer and use it in GitHub Desktop.
Save jefferymiller/6efb4fc1f109636a43838c66e94d4c43 to your computer and use it in GitHub Desktop.
# Valve USB devices
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
# Steam Controller udev write access
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess"
# Valve HID devices over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="28de", MODE="0666"
# Valve HID devices over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*28DE:*", MODE="0666"
# DualShock 4 over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0666"
# DualShock 4 wireless adapter over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0666"
# DualShock 4 Slim over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0666"
# DualShock 4 over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0666"
# DualShock 4 Slim over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0666"
# This rule is necessary for gamepad emulation; make sure each user requiring
# it is part of the input group.
KERNEL=="uinput", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment