udev: add new rules for the wired devices and have the udev rules apply to paired peripherals

This commit is contained in:
effective-light 2020-08-11 18:31:21 -04:00 committed by Peter F. Patel-Schneider
parent fe55e39560
commit 374388daf0
2 changed files with 16 additions and 10 deletions

View File

@ -133,13 +133,13 @@ LIGHTSPEED_RECEIVER_C545 = _lightspeed_receiver(0xc545)
LIGHTSPEED_RECEIVER_C541 = _lightspeed_receiver(0xc541) LIGHTSPEED_RECEIVER_C541 = _lightspeed_receiver(0xc541)
# Wired devices # Wired devices
WIRED_DEVICE_C081 = _wired_device(0xc081) WIRED_DEVICE_C081 = _wired_device(0xc081) # G900
WIRED_DEVICE_C082 = _wired_device(0xc082) WIRED_DEVICE_C082 = _wired_device(0xc082) # G403
WIRED_DEVICE_C086 = _wired_device(0xc086) WIRED_DEVICE_C086 = _wired_device(0xc086) # G903
WIRED_DEVICE_C087 = _wired_device(0xc087) WIRED_DEVICE_C087 = _wired_device(0xc087) # G703
WIRED_DEVICE_C088 = _wired_device(0xc088) WIRED_DEVICE_C088 = _wired_device(0xc088) # GPro
WIRED_DEVICE_C090 = _wired_device(0xc090) WIRED_DEVICE_C090 = _wired_device(0xc090) # G703 Hero
WIRED_DEVICE_C091 = _wired_device(0xc091) WIRED_DEVICE_C091 = _wired_device(0xc091) # G903 Hero
del _DRIVER, _unifying_receiver, _nano_receiver, _lenovo_receiver, _lightspeed_receiver, _wired_device del _DRIVER, _unifying_receiver, _nano_receiver, _lenovo_receiver, _lightspeed_receiver, _wired_device

View File

@ -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}=="c545", GOTO="solaar_apply"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c541", 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 # Lenovo nano receiver
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply" ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply"
@ -51,9 +60,6 @@ GOTO="solaar_end"
LABEL="solaar_apply" 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. # Allow any seated user to access the receiver.
# uaccess: modern ACL-enabled udev # uaccess: modern ACL-enabled udev
# udev-acl: for Ubuntu 12.10 and older # udev-acl: for Ubuntu 12.10 and older