Skip to content

Instantly share code, notes, and snippets.

@simons-public
Last active March 22, 2022 20:32
Show Gist options
  • Save simons-public/4e161761b6d47a0517c1dd4d5e1526bb to your computer and use it in GitHub Desktop.
Save simons-public/4e161761b6d47a0517c1dd4d5e1526bb to your computer and use it in GitHub Desktop.
# This rule is needed for basic functionality of the controller in Steam and keyboard/mouse emulation
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE:="0666"
# This rule is necessary for gamepad emulation; make sure you replace 'pgriffais' with a group that the user that runs Steam belongs to
#KERNEL=="uinput", MODE:="0660", GROUP="steamcontroller", OPTIONS+="static_node=uinput"
KERNEL=="uinput", MODE="0660", GROUP="steamcontroller", OPTIONS+="static_node=uinput"
# DualShock 4 wired
SUBSYSTEM=="usb", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE:="0666"
# DualShock 4 wireless adapter
SUBSYSTEM=="usb", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE:="0666"
# DualShock 4 slim wired
SUBSYSTEM=="usb", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE:="0666"
# 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 bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE:="0666"
# DualShock 4 Slim over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE:="0666"
#
# Create /dev/adalight symlink for SparkFun Pro Micro adalight
#
#[ 221.574673] usb 1-3: USB disconnect, device number 5
#[ 224.295865] usb 1-3: new full-speed USB device number 6 using xhci_hcd
#[ 224.438463] usb 1-3: New USB device found, idVendor=1b4f, idProduct=9206, bcdDevice= 1.00
#[ 224.438470] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
#[ 224.438474] usb 1-3: Product: SparkFun Pro Micro
#[ 224.438478] usb 1-3: Manufacturer: SparkFun
#
SUBSYSTEM=="tty", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9206", NAME="adalight"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9206", SYMLINK+="adalight0"
SUBSYSTEM=="tty", ATTRS{idVendor}=="1b4f", ATTRS{idProduct}=="9206", SYMLINK+="ttyadalight0"
#
# Symlink rules for SONOFF ZigBee
#
# Bus 001 Device 004: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", NAME="zigbee"
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="zigbee0"
SUBSYSTEM=="tty", ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", SYMLINK+="ttyzigbee0"
#
# Create /dev/pulse8cec0 symlink for Pulse-Eight CEC Adapter
#
SUBSYSTEM=="tty", ATTRS{idVendor}=="2548", ATTRS{idProduct}=="1002", SYMLINK+="pulse8cec0"
SUBSYSTEM=="tty", ATTRS{idVendor}=="2548", ATTRS{idProduct}=="1002", SYMLINK+="ttypulse8cec0"
#
# Create /dev/mirabox0 symlink for MiraBox USB Video Capture
#
ATTRS{idVendor}=="534d", ATTRS{idProduct}=="2109", SYMLINK+="mirabox0"
@simons-public
Copy link
Author

udevadm control --reload-rules && udevadm trigger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment