summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2013-06-16 10:38:00 +0200
committerPeter Wu <lekensteyn@gmail.com>2013-06-16 10:38:00 +0200
commit1e9b8779f21bf5718526179abb24182709b5b1fe (patch)
tree08ba58573dc70f3404150551779c66918510e144 /udev
parent8a8d93620a7a09cb2217d38c316bb19e74c0a287 (diff)
downloadltunify-1e9b8779f21bf5718526179abb24182709b5b1fe.tar.gz
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.
Diffstat (limited to 'udev')
-rw-r--r--udev/42-logitech-unify-permissions.rules18
1 files 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