Browse Source

Add udev rule description (tested on Arch with Kernel 4.18)

Christoph Haas 4 months ago
parent
commit
774803dfa7
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      README.md

+ 7
- 0
README.md View File

@@ -80,3 +80,10 @@ On Archlinux the module has to be added to `/etc/mkinitcpio.conf`. Otherwise usb
80 80
 
81 81
 Therefor add "perixxkbd" to the MODULES section and rebuild the initramfs with `sudo mkinitcpio -p linux`
82 82
 
83
+## Add a UDEV rule
84
+If none of the above works and usbhid takes control over the keyboard, add a custom udev rule to manually rebind the driver.
85
+
86
+Create a new file `/etc/udev/rules.d/10-perixxkbd.rules`:
87
+```
88
+ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="7603", MODE="0666", PROGRAM="/bin/sh -c 'echo -n $id:1.1 >/sys/bus/usb/drivers/usbhid/unbind;echo -n $id:1.1 >/sys/bus/usb/drivers/perixxkbd/bind'"
89
+```

Loading…
Cancel
Save