From 7e2c89d7094aeb67028db639673d2f6211a2184d Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 7 Jan 2026 12:39:48 -0500 Subject: move solaar rules to udev package --- .../42-logitech-unify-permissions.rules | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/solaar-udev-rules/42-logitech-unify-permissions.rules (limited to 'pkgs/solaar-udev-rules/42-logitech-unify-permissions.rules') diff --git a/pkgs/solaar-udev-rules/42-logitech-unify-permissions.rules b/pkgs/solaar-udev-rules/42-logitech-unify-permissions.rules new file mode 100644 index 0000000..e52c9b0 --- /dev/null +++ b/pkgs/solaar-udev-rules/42-logitech-unify-permissions.rules @@ -0,0 +1,31 @@ +# This rule was added by Solaar. +# +# Allows non-root users to have raw access to Logitech devices. +# Allowing users to write to the device is potentially dangerous +# because they could perform firmware updates. + +ACTION != "add", GOTO="solaar_end" +SUBSYSTEM != "hidraw", GOTO="solaar_end" + +# USB-connected Logitech receivers and devices +ATTRS{idVendor}=="046d", GOTO="solaar_apply" + +# Lenovo nano receiver +ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply" + +# Bluetooth-connected Logitech devices +KERNELS == "0005:046D:*", GOTO="solaar_apply" + +GOTO="solaar_end" + +LABEL="solaar_apply" + +# Allow any seated user to access the receiver. +# uaccess: modern ACL-enabled udev +TAG+="uaccess" + +# Grant members of the "plugdev" group access to receiver (useful for SSH users) +#MODE="0660", GROUP="plugdev" + +LABEL="solaar_end" +# vim: ft=udevrules -- cgit v1.2.3-freya