From 774803dfa738bdd45ea305da718bde4cfc5d17f8 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 6 Oct 2018 23:48:30 +0200 Subject: [PATCH] Add udev rule description (tested on Arch with Kernel 4.18) --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index edff114..a8f10bd 100644 --- a/README.md +++ b/README.md @@ -80,3 +80,10 @@ On Archlinux the module has to be added to `/etc/mkinitcpio.conf`. Otherwise usb Therefor add "perixxkbd" to the MODULES section and rebuild the initramfs with `sudo mkinitcpio -p linux` +## Add a UDEV rule +If none of the above works and usbhid takes control over the keyboard, add a custom udev rule to manually rebind the driver. + +Create a new file `/etc/udev/rules.d/10-perixxkbd.rules`: +``` +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'" +```