From 1e9b8779f21bf5718526179abb24182709b5b1fe Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 16 Jun 2013 10:38:00 +0200 Subject: udev: add more IDs - Add second official Unifying receiver (mentioned in from hid-logitech-dj.c) and "Unifying Ready" Nano receiver (mentioned in Solaar). - Introduce an extra label for easier extension. - Remove world-writable suggestion, no reason to do so with uaccess. --- udev/42-logitech-unify-permissions.rules | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/udev/42-logitech-unify-permissions.rules b/udev/42-logitech-unify-permissions.rules index fe9e3e5..e315fb3 100644 --- a/udev/42-logitech-unify-permissions.rules +++ b/udev/42-logitech-unify-permissions.rules @@ -5,15 +5,23 @@ # skip actual unified devices, only consider the receiver DRIVERS=="logitech-djdevice", GOTO="not_unify_recv" +# official Unifying receivers +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", GOTO="unify_dev" +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c532", GOTO="unify_dev" + +# "Unifying Ready" Nano receiver +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52f", GOTO="unify_dev" + +GOTO="not_unify_recv" + +LABEL="unify_dev" # Allow any seated user to access the receiver. # uaccess: modern ACL-enabled udev # udev-acl: for Ubuntu 12.10 and older -SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", TAG+="uaccess", TAG+="udev-acl" +TAG+="uaccess", TAG+="udev-acl" # Grant members of the "plugdev" group access to receiver (useful for SSH users) -#SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", MODE="0660", GROUP="plugdev" - -# Alternative: Allow every user on the system to access the receiver -#SUBSYSTEM=="hidraw", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c52b", MODE="0666" +#MODE="0660", GROUP="plugdev" LABEL="not_unify_recv" +# vim: ft=udevrules -- cgit v1.2.1