Merge pull request #521 from kacpi2442/master
Added basic support for Lenovo dongle, https://download.lenovo.com/consumer/options/lenovo_n50_wireless_optical_mouse.pdf
This commit is contained in:
commit
127a8053d8
|
@ -30,6 +30,7 @@ _GENERIC_DRIVER = ('hid-generic', 'generic-usb')
|
||||||
# each tuple contains (vendor_id, product_id, usb interface number, hid driver)
|
# each tuple contains (vendor_id, product_id, usb interface number, hid driver)
|
||||||
_unifying_receiver = lambda product_id: (0x046d, product_id, 2, _UNIFYING_DRIVER)
|
_unifying_receiver = lambda product_id: (0x046d, product_id, 2, _UNIFYING_DRIVER)
|
||||||
_nano_receiver = lambda product_id: (0x046d, product_id, 1, _GENERIC_DRIVER)
|
_nano_receiver = lambda product_id: (0x046d, product_id, 1, _GENERIC_DRIVER)
|
||||||
|
_lenovo_receiver = lambda product_id: (0x17ef, product_id, 1, _GENERIC_DRIVER)
|
||||||
|
|
||||||
|
|
||||||
# standard Unifying receivers (marked with the orange Unifying logo)
|
# standard Unifying receivers (marked with the orange Unifying logo)
|
||||||
|
@ -50,6 +51,7 @@ NANO_RECEIVER_C526 = _nano_receiver(0xc526)
|
||||||
NANO_RECEIVER_C52e = _nano_receiver(0xc52e)
|
NANO_RECEIVER_C52e = _nano_receiver(0xc52e)
|
||||||
NANO_RECEIVER_C531 = _nano_receiver(0xc531)
|
NANO_RECEIVER_C531 = _nano_receiver(0xc531)
|
||||||
NANO_RECEIVER_C534 = _nano_receiver(0xc534)
|
NANO_RECEIVER_C534 = _nano_receiver(0xc534)
|
||||||
|
NANO_RECEIVER_6042 = _lenovo_receiver(0x6042)
|
||||||
|
|
||||||
del _unifying_receiver, _nano_receiver
|
del _unifying_receiver, _nano_receiver
|
||||||
|
|
||||||
|
@ -68,4 +70,5 @@ ALL = (
|
||||||
NANO_RECEIVER_C52e,
|
NANO_RECEIVER_C52e,
|
||||||
NANO_RECEIVER_C531,
|
NANO_RECEIVER_C531,
|
||||||
NANO_RECEIVER_C534,
|
NANO_RECEIVER_C534,
|
||||||
|
NANO_RECEIVER_6042,
|
||||||
)
|
)
|
||||||
|
|
|
@ -34,6 +34,9 @@ ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c521", GOTO="solaar_apply"
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c525", GOTO="solaar_apply"
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c525", GOTO="solaar_apply"
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c534", GOTO="solaar_apply"
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c534", GOTO="solaar_apply"
|
||||||
|
|
||||||
|
# Lenovo nano receiver
|
||||||
|
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply"
|
||||||
|
|
||||||
GOTO="solaar_end"
|
GOTO="solaar_end"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -34,6 +34,10 @@ ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c521", GOTO="solaar_apply"
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c525", GOTO="solaar_apply"
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c525", GOTO="solaar_apply"
|
||||||
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c534", GOTO="solaar_apply"
|
ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c534", GOTO="solaar_apply"
|
||||||
|
|
||||||
|
# Lenovo nano receiver
|
||||||
|
ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6042", GOTO="solaar_apply"
|
||||||
|
|
||||||
|
|
||||||
GOTO="solaar_end"
|
GOTO="solaar_end"
|
||||||
|
|
||||||
LABEL="solaar_apply"
|
LABEL="solaar_apply"
|
||||||
|
|
Loading…
Reference in New Issue