diff --git a/60-steam-input.rules b/60-steam-input.rules index 1cbf258..342f02b 100644 --- a/60-steam-input.rules +++ b/60-steam-input.rules @@ -34,6 +34,13 @@ KERNEL=="hidraw*", KERNELS=="*057E:2009*", MODE="0660", TAG+="uaccess" # PowerA Wired Controller for Nintendo Switch KERNEL=="hidraw*", ATTRS{idVendor}=="20d6", ATTRS{idProduct}=="a711", MODE="0660", TAG+="uaccess" +# PowerA Wireless Controller for Nintendo Switch we have to use +# ATTRS{name} since VID/PID are reported as zeros. We use /bin/sh +# instead of udevadm directly becuase we need to use '*' glob at the +# end of "hidraw" name since we don't know the index it'd have. +# +KERNEL=="input*", ATTRS{name}=="Lic Pro Controller", RUN{program}+="/bin/sh -c \"udevadm test-builtin uaccess /sys/%p/../../hidraw/hidraw*\"" + # Nacon PS4 Revolution Pro Controller KERNEL=="hidraw*", ATTRS{idVendor}=="146b", ATTRS{idProduct}=="0d01", MODE="0660", TAG+="uaccess"