summarylogtreecommitdiffstats
path: root/98-kiibohd.rules
blob: 1b48b90d788d178fbdbbbebf6c038c0b83b42076 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Half-Kay, Kiibohd
SUBSYSTEM=="usb" ATTR{idVendor}=="16c0" ATTR{idProduct}=="04[789]?" ENV{ID_MM_DEVICE_IGNORE}="1" ENV{MTP_NO_PROBE}="1" MODE:="0666"

# Kiibohd Serial Interface
SUBSYSTEM=="tty" ATTRS{idVendor}=="16c0" ATTRS{idProduct}=="04[789]?" SYMLINK+="kiibohd" MODE:="0666"
SUBSYSTEM=="tty" ATTRS{idVendor}=="1c11" ATTRS{idProduct}=="b04d" SYMLINK+="kiibohd" MODE:="0666"
SUBSYSTEM=="tty" ATTRS{idVendor}=="308f" SYMLINK+="kiibohd" MODE:="0666"

# Kiibohd Device
SUBSYSTEM=="usb" ATTR{idVendor}=="1c11" ATTR{idProduct}=="b04d" MODE:="0666"

# DFU Bootloader (MCHCK)
SUBSYSTEM=="usb" ATTR{idVendor}=="2323" ATTR{idProduct}=="0001" ENV{ID_MM_DEVICE_IGNORE}="1" ENV{MTP_NO_PROBE}="1" MODE:="0666"

# Kiibohd DFU Bootloader
SUBSYSTEM=="usb" ATTR{idVendor}=="1c11" ATTR{idProduct}=="b007" ENV{ID_MM_DEVICE_IGNORE}="1" ENV{MTP_NO_PROBE}="1" MODE:="0666"

# Kiibohd DFU Bootloaders (Official VID)
SUBSYSTEM=="usb" ATTR{idVendor}=="308f" ATTR{idProduct}=="0000|0003|0005|000c|0010|0012|0014|0016|0019|0020|0022|0024|0026|0028|002a|002c|002e|0032|0034" ENV{MTP_NO_PROBE}="1" ENV{ID_MM_DEVICE_IGNORE}="1" MODE:="0666"

# Kiibohd Force Gauge
# e.g. udevadm info -a -p /sys/bus/usb/devices/3-5
# sudo udevadm test /sys/bus/usb/devices/3-5:1.0/tty/ttyACM0
# Use ATTR on root, ATTRS on leaves
SUBSYSTEM=="tty"  ATTRS{idVendor}=="1c11" ATTRS{idProduct}=="f05c" MODE:="0666" SYMLINK+="force"
SUBSYSTEM=="usb" ATTR{idVendor}=="1c11" ATTR{idProduct}=="f05c" MODE:="0666"