base-usb: add new Lightspeed receiver

used in the G305

Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
Filipe Laíns 2019-07-26 15:22:40 +01:00
parent 966c55e69d
commit 1bb08d011d
No known key found for this signature in database
GPG Key ID: F893C674816AA95D
4 changed files with 6 additions and 2 deletions

View File

@ -55,6 +55,7 @@ NANO_RECEIVER_6042 = _lenovo_receiver(0x6042)
# 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
@ -76,4 +77,5 @@ ALL = (
NANO_RECEIVER_6042,
LIGHTSPEED_RECEIVER_C539,
LIGHTSPEED_RECEIVER_C53a,
LIGHTSPEED_RECEIVER_C53f,
)

View File

@ -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):

View File

@ -345,7 +345,7 @@ class Receiver(object):
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'

View File

@ -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"