From 166834e46cd0c4d8160b494c8c8c8cf06f6ee991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Mon, 8 Oct 2018 00:22:14 +0200 Subject: [PATCH] Update udev rules based on the instructions of https://github.com/node-hid/node-hid/releases/tag/v0.7.2 --- .../privilege-checker/privilege-checker.component.ts | 4 +++- rules/50-uhk60.rules | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/uhk-web/src/app/components/privilege-checker/privilege-checker.component.ts b/packages/uhk-web/src/app/components/privilege-checker/privilege-checker.component.ts index 21cb4c21..c674dd2a 100644 --- a/packages/uhk-web/src/app/components/privilege-checker/privilege-checker.component.ts +++ b/packages/uhk-web/src/app/components/privilege-checker/privilege-checker.component.ts @@ -22,7 +22,9 @@ export class PrivilegeCheckerComponent implements OnInit, OnDestroy { # Ultimate Hacking Keyboard rules # These are the udev rules for accessing the USB interfaces of the UHK as non-root users. # Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards. -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666" +SUBSYSTEM=="input", GROUP="input", MODE="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666", GROUP="plugdev" +KERNEL=="hidraw*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE="0666", GROUP="plugdev" EOF udevadm trigger udevadm settle`; diff --git a/rules/50-uhk60.rules b/rules/50-uhk60.rules index 5672524d..5f80aad0 100644 --- a/rules/50-uhk60.rules +++ b/rules/50-uhk60.rules @@ -1,4 +1,6 @@ # Ultimate Hacking Keyboard rules # These are the udev rules for accessing the USB interfaces of the UHK as non-root users. # Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards. -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666" +SUBSYSTEM=="input", GROUP="input", MODE="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666", GROUP="plugdev" +KERNEL=="hidraw*", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE="0666", GROUP="plugdev"