udev: Add rules for Switch Pro Controller

neomutt
Simon Bruder 2021-12-19 11:25:51 +01:00
parent bc862642d7
commit ac85009184
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 6 additions and 0 deletions

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" ];