udev: Add rules for Switch Pro Controller

This commit is contained in:
Simon Bruder 2021-12-19 11:25:51 +01:00
parent bc862642d7
commit ac85009184
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -6,6 +6,12 @@
# Steam emulated controller
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"
# Nintendo Switch Pro Controller over USB hidraw
KERNEL=="hidraw*", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="2009", MODE="0660", GROUP="users", TAG+="uaccess"
# Nintendo Switch Pro Controller over bluetooth hidraw
KERNEL=="hidraw*", KERNELS=="*057E:2009*", MODE="0660", GROUP="users", TAG+="uaccess"
'';
boot.kernelModules = [ "uinput" ];