From 374388daf09365f4b20c136fad7072f77038bab8 Mon Sep 17 00:00:00 2001 From: effective-light Date: Tue, 11 Aug 2020 18:31:21 -0400 Subject: [PATCH] udev: add new rules for the wired devices and have the udev rules apply to paired peripherals --- lib/logitech_receiver/base_usb.py | 14 +++++++------- rules.d/42-logitech-unify-permissions.rules | 12 +++++++++--- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/lib/logitech_receiver/base_usb.py b/lib/logitech_receiver/base_usb.py index b7aea263..edfbe0f2 100644 --- a/lib/logitech_receiver/base_usb.py +++ b/lib/logitech_receiver/base_usb.py @@ -133,13 +133,13 @@ LIGHTSPEED_RECEIVER_C545 = _lightspeed_receiver(0xc545) LIGHTSPEED_RECEIVER_C541 = _lightspeed_receiver(0xc541) # Wired devices -WIRED_DEVICE_C081 = _wired_device(0xc081) -WIRED_DEVICE_C082 = _wired_device(0xc082) -WIRED_DEVICE_C086 = _wired_device(0xc086) -WIRED_DEVICE_C087 = _wired_device(0xc087) -WIRED_DEVICE_C088 = _wired_device(0xc088) -WIRED_DEVICE_C090 = _wired_device(0xc090) -WIRED_DEVICE_C091 = _wired_device(0xc091) +WIRED_DEVICE_C081 = _wired_device(0xc081) # G900 +WIRED_DEVICE_C082 = _wired_device(0xc082) # G403 +WIRED_DEVICE_C086 = _wired_device(0xc086) # G903 +WIRED_DEVICE_C087 = _wired_device(0xc087) # G703 +WIRED_DEVICE_C088 = _wired_device(0xc088) # GPro +WIRED_DEVICE_C090 = _wired_device(0xc090) # G703 Hero +WIRED_DEVICE_C091 = _wired_device(0xc091) # G903 Hero del _DRIVER, _unifying_receiver, _nano_receiver, _lenovo_receiver, _lightspeed_receiver, _wired_device diff --git a/rules.d/42-logitech-unify-permissions.rules b/rules.d/42-logitech-unify-permissions.rules index 7f5ebbe4..49013134 100644 --- a/rules.d/42-logitech-unify-permissions.rules +++ b/rules.d/42-logitech-unify-permissions.rules @@ -43,6 +43,15 @@ ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c53f", GOTO="solaar_apply" ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c545", GOTO="solaar_apply" ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c541", GOTO="solaar_apply" +# Logitech wired devices +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c081", GOTO="solaar_apply" +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c082", GOTO="solaar_apply" +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c086", GOTO="solaar_apply" +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c087", GOTO="solaar_apply" +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c088", GOTO="solaar_apply" +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c090", GOTO="solaar_apply" +ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c091", GOTO="solaar_apply" + # Lenovo nano receiver ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply" @@ -51,9 +60,6 @@ GOTO="solaar_end" LABEL="solaar_apply" -# don't apply to the paired peripherals, just the receivers -DRIVERS=="logitech-djdevice|logitech-hidpp-device", GOTO="solaar_end" - # Allow any seated user to access the receiver. # uaccess: modern ACL-enabled udev # udev-acl: for Ubuntu 12.10 and older