Skip to content

Commit

Permalink
base-usb: add new Lightspeed receiver
Browse files Browse the repository at this point in the history
used in the G305

Signed-off-by: Filipe Laíns <lains@archlinux.org>
  • Loading branch information
FFY00 committed Jul 26, 2019
1 parent 966c55e commit 1bb08d0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/logitech_receiver/base_usb.py
Expand Up @@ -55,6 +55,7 @@
# Lightspeed receivers
LIGHTSPEED_RECEIVER_C539 = _lightspeed_receiver(0xc539)
LIGHTSPEED_RECEIVER_C53a = _lightspeed_receiver(0xc53a)
LIGHTSPEED_RECEIVER_C53f = _lightspeed_receiver(0xc53f)

del _DRIVER, _unifying_receiver, _nano_receiver, _lenovo_receiver, _lightspeed_receiver

Expand All @@ -76,4 +77,5 @@
NANO_RECEIVER_6042,
LIGHTSPEED_RECEIVER_C539,
LIGHTSPEED_RECEIVER_C53a,
LIGHTSPEED_RECEIVER_C53f,
)
3 changes: 2 additions & 1 deletion lib/logitech_receiver/notifications.py
Expand Up @@ -157,7 +157,8 @@ def _process_hidpp10_notification(device, status, n):
protocol_name = ('unifying (eQuad DJ)' if n.address == 0x04
else 'eQuad' if n.address == 0x03
else 'M185' if n.address == 0x0A
else 'Lightspeed' if n.address == 0x0C
else 'Lightspeed 1' if n.address == 0x0C
else 'Lightspeed 1_1' if n.address == 0x0D
else None)
if protocol_name:
if _log.isEnabledFor(_DEBUG):
Expand Down
2 changes: 1 addition & 1 deletion lib/logitech_receiver/receiver.py
Expand Up @@ -345,7 +345,7 @@ def __init__(self, handle, device_info):
self.serial = 0
self.max_devices = 6

if self.product_id == 'c539' or self.product_id == 'c53a':
if self.product_id == 'c539' or self.product_id == 'c53a' or self.product_id == 'c53f':
self.name = 'Lightspeed Receiver'
elif self.max_devices == 6:
self.name = 'Unifying Receiver'
Expand Down
1 change: 1 addition & 0 deletions rules.d/42-logitech-unify-permissions.rules
Expand Up @@ -37,6 +37,7 @@ ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c534", GOTO="solaar_apply"
# Lightspeed receivers
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c539", GOTO="solaar_apply"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c53a", GOTO="solaar_apply"
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c53f", GOTO="solaar_apply"

# Lenovo nano receiver
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply"
Expand Down

0 comments on commit 1bb08d0

Please sign in to comment.