Repository: pwr-Solaar/Solaar

Issue:
M190 mouse
**Information**
<!-- Please update to Solaar from this repository before asking for a new feature. -->
- Solaar version (`solaar --version` and `git describe --tags`):solaar 1.0.6
- Distribution: linux mint 19.3
- Kernel version (ex. `uname -srmo`): uname -srmo Linux 5.4.0-104-generic x86_64 GNU/Linux
- Output of `solaar show` for the target device (if applicable):

<details>

```
Unifying Receiver
  Device path  : /dev/hidraw2
  USB id       : 046d:C52B
  Serial       : 008D91BC
    Firmware   : 12.11.B0032
    Bootloader : 04.16
    Other      : AA.AA
  Has 1 paired device(s) out of a maximum of 6.
  Notifications: wireless, software present (0x000900)
  Device activity counters: 2=82

  2: Wireless Illuminated Keyboard K800 new
     Device path  : /dev/hidraw3
     WPID         : 406E
     Codename     : K800 new
     Kind         : keyboard
     Protocol     : HID++ 4.5
     Polling rate : 20 ms (50Hz)
     Serial number: 3C57645E
     Model ID:      406E00000000
     Unit ID:       B138F816
        Bootloader: BOT 60.00.B0002
          Firmware: RQK 68.01.B0009
     The power switch is located on the top right corner.
     Supports 25 HID++ 2.0 features:
         0: ROOT                   {0000}   
         1: FEATURE SET            {0001}   
         2: DEVICE FW VERSION      {0003}   
            Firmware: Bootloader BOT 60.00.B0002 406ED4E7454501
            Firmware: Firmware RQK 68.01.B0009 406ED4E7454501
            Unit ID: B138F816  Model ID: 406E00000000  Transport IDs: {'wpid': '406E'}
         3: DEVICE NAME            {0005}   
            Name: Wireless Illuminated Keyboard K800
            Kind: keyboard
         4: WIRELESS DEVICE STATUS {1D4B}   
         5: RESET                  {0020}   
         6: BATTERY STATUS         {1000}   
            Battery: 50%, discharging, next level 20%.
         7: BACKLIGHT3             {1983}   
         8: REPROG CONTROLS V4     {1B04}   
         9: FN INVERSION           {40A0}   
            Fonction Swap Fx (saved): False
            Fonction Swap Fx        : False
        10: ENCRYPTION             {4100}   
        11: KEYBOARD DISABLE KEYS  {4521}   
            Desactivez les touches (saved): {'1': False, '16': False, '2': False, '4': False, '8': False}
            Desactivez les touches        : {'1': False, '2': False, '4': False, '8': False, '16': False}
        12: DFUCONTROL SIGNED      {00C2}   
        13: unknown:1803           {1803}   internal, hidden
        14: CONFIG DEVICE PROPS    {1806}   internal, hidden
        15: unknown:1811           {1811}   internal, hidden
        16: unknown:1830           {1830}   internal, hidden
        17: unknown:1890           {1890}   internal, hidden
        18: unknown:18A1           {18A1}   internal, hidden
        19: unknown:1DF3           {1DF3}   internal, hidden
        20: unknown:1E00           {1E00}   hidden
        21: unknown:1EB0           {1EB0}   internal, hidden
        22: unknown:1861           {1861}   internal, hidden
        23: unknown:1A20           {1A20}   internal, hidden
        24: unknown:18B0           {18B0}   internal, hidden
     Has 15 reprogrammable keys:
         0: My Home                   , default: HomePage                    => HomePage                  
             is FN, FN sensitive, reprogrammable, divertable, pos:1, group:0, group mask:empty
             reporting: default
         1: Mail                      , default: Email                       => Email                     
             is FN, FN sensitive, reprogrammable, divertable, pos:2, group:0, group mask:empty
             reporting: default
         2: Search                    , default: Search Files                => Search Files              
             is FN, FN sensitive, reprogrammable, divertable, pos:3, group:0, group mask:empty
             reporting: default
         3: Application Switcher      , default: Application Switcher        => Application Switcher      
             is FN, FN sensitive, reprogrammable, divertable, pos:4, group:0, group mask:empty
             reporting: default
         4: Backlight Down            , default: Backlight Down              => Backlight Down            
             is FN, FN sensitive, divertable, pos:5, group:0, group mask:empty
             reporting: default
         5: Backlight Up              , default: Backlight Up                => Backlight Up              
             is FN, FN sensitive, divertable, pos:6, group:0, group mask:empty
             reporting: default
         6: Sleep                     , default: Sleep                       => Sleep                     
             is FN, FN sensitive, reprogrammable, divertable, pos:8, group:0, group mask:empty
             reporting: default
         7: Media Player              , default: Music                       => Music                     
             is FN, FN sensitive, reprogrammable, divertable, pos:9, group:0, group mask:empty
             reporting: default
         8: Previous                  , default: Previous                    => Previous                  
             is FN, FN sensitive, divertable, pos:10, group:0, group mask:empty
             reporting: default
         9: Play/Pause                , default: Play/Pause                  => Play/Pause                
             is FN, FN sensitive, divertable, pos:11, group:0, group mask:empty
             reporting: default
        10: Next                      , default: Next                        => Next                      
             is FN, FN sensitive, divertable, pos:12, group:0, group mask:empty
             reporting: default
        11: Volume Up                 , default: Volume Up                   => Volume Up                 
             nonstandard, divertable, pos:0, group:0, group mask:empty
             reporting: default
        12: Volume Down               , default: Volume Down                 => Volume Down               
             nonstandard, divertable, pos:0, group:0, group mask:empty
             reporting: default
        13: Mute                      , default: Mute                        => Mute                      
             nonstandard, divertable, pos:0, group:0, group mask:empty
             reporting: default
        14: Calculator                , default: Calculator                  => Calculator                
             nonstandard, reprogrammable, divertable, pos:0, group:0, group mask:empty
             reporting: default
     Battery: 50%, discharging, next level 20%
```
</details>



**Is your feature request related to a problem? Please describe.**
Mouse not detected by solaar, logitech m190.

**Describe the solution you'd like**
Hello,

I have a logitech m190 mouse (non unifying receiver). Is it possible to pair it with the unifying receiver of my k800 keyboard?
Solaar does not see the mouse.


Thank you.

**Describe alternatives you've considered**
turn off the mouse, remove the dedicated receiver, start the solaar pairing search on the unifying receiver of the k800, turn on the mouse.

**Additional context**
lsusb, the 2 logitech receivers connected:
Bus 001 Device 007: ID 046d:c52b Logitech, Inc. Unifying Receiver ## K800 keyboard
Bus 001 Device 010: ID 046d:c542 Logitech, Inc. ## M190 mouse




Discussion:

Resolving patch:
diff --git a/lib/logitech_receiver/base_usb.py b/lib/logitech_receiver/base_usb.py
--- a/lib/logitech_receiver/base_usb.py
+++ b/lib/logitech_receiver/base_usb.py
@@ -158,6 +158,7 @@
 NANO_RECEIVER_C531 = _nano_receiver(0xc531)
 NANO_RECEIVER_C534 = _nano_receiver_max2(0xc534)
 NANO_RECEIVER_C537 = _nano_receiver(0xc537)
+NANO_RECEIVER_C542 = _nano_receiver(0xc542)
 NANO_RECEIVER_6042 = _lenovo_receiver(0x6042)
 
 # Lightspeed receivers (usually sold with gaming devices)
@@ -187,6 +188,7 @@
     NANO_RECEIVER_C531,
     NANO_RECEIVER_C534,
     NANO_RECEIVER_C537,
+    NANO_RECEIVER_C542,
     NANO_RECEIVER_6042,
     LIGHTSPEED_RECEIVER_C539,
     LIGHTSPEED_RECEIVER_C53A,


Test patch: