pwr-Solaar / Solaar

Linux device manager for Logitech devices
https://pwr-solaar.github.io/Solaar
GNU General Public License v2.0
5.54k stars 410 forks source link

solaar reports that 2 devices are paired to lightspeed receiver #2069

Closed ryanmusante closed 1 year ago

ryanmusante commented 1 year ago
 ~  sudo dmesg | grep logitech                                                                  ✔ 
[sudo] password for ryan: 
[    4.589680] logitech-djreceiver 0003:046D:C53A.0002: hidraw1: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:14.0-1/input0
[    4.641366] logitech-djreceiver 0003:046D:C53A.0003: hidraw2: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:14.0-1/input1
[    4.693059] logitech-djreceiver 0003:046D:C53A.0004: hiddev96,hidraw3: USB HID v1.11 Device [Logitech USB Receiver] on usb-0000:00:14.0-1/input2
[    4.746547] logitech-djreceiver 0003:046D:C53A.0004: device of type eQUAD Lightspeed 1.2 (0x11) connected on slot 1
[    4.747546] logitech-djreceiver 0003:046D:C53A.0004: device of type eQUAD Lightspeed 1 (0x0c) connected on slot 7
[   20.279210] logitech-hidpp-device 0003:046D:4093.000C: input,hidraw11: USB HID v1.11 Keyboard [Logitech PRO X] on usb-0000:00:14.0-1/input2:1
[   20.289851] logitech-hidpp-device 0003:046D:405F.000D: HID++ 4.2 device connected.
[   20.306565] logitech-hidpp-device 0003:046D:4093.000C: HID++ 4.2 device connected.
[   20.343972] logitech-hidpp-device 0003:046D:405F.000D: input,hidraw12: USB HID v1.11 Keyboard [Logitech Candy] on usb-0000:00:14.0-1/input2:7
[ 2827.088562] logitech-djreceiver 0003:046D:C53A.0004: logi_dj_hidpp_event: invalid device index:0
[ 2828.042581] logitech-hidpp-device 0003:046D:4093.000C: hidpp20_map_battery_capacity: possibly using the wrong voltage curve
solaar --version                                                                        ✔   
solaar 1.1.9
neofetch                                                                                ✔   
                                            ryan@xmg 
       .---.`               `.---.          -------- 
    `/syhhhyso-           -osyhhhys/`       OS: Manjaro Linux x86_64 
   .syNMdhNNhss/``.---.``/sshNNhdMNys.      Host: NB01 PC5x_7xHP_HR_HS 
   +sdMh.`+MNsssssssssssssssNM+`.hMds+      Kernel: 6.3.2-273-tkg-cfs 
   :syNNdhNNhssssssssssssssshNNhdNNys:      Uptime: 57 mins 
    /ssyhhhysssssssssssssssssyhhhyss/       Packages: 1508 (pacman) 
    .ossssssssssssssssssssssssssssso.       Shell: zsh 5.9 
   :sssssssssssssssssssssssssssssssss:      Resolution: 3840x2160 
  /sssssssssssssssssssssssssssssssssss/     DE: GNOME 44.1 
 :sssssssssssssoosssssssoosssssssssssss:    WM: Mutter 
 osssssssssssssoosssssssoossssssssssssso    WM Theme: Adwaita 
 osssssssssssyyyyhhhhhhhyyyyssssssssssso    Theme: adw-gtk3-dark [GTK2/3] 
 /yyyyyyhhdmmmmNNNNNNNNNNNmmmmdhhyyyyyy/    Icons: ePapirus-Dark [GTK2/3] 
  smmmNNNNNNNNNNNNNNNNNNNNNNNNNNNNNmmms     Terminal: kitty 
   /dNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNd/      Terminal Font: monospace 12.0 
    `:sdNNNNNNNNNNNNNNNNNNNNNNNNNds:`       CPU: 11th Gen Intel i7-11800H (16) @ 4.600GHz 
       `-+shdNNNNNNNNNNNNNNNdhs+-`          GPU: NVIDIA GeForce RTX 3080 Mobile / Max-Q 8GB/16GB 
             `.-:///////:-.`                GPU: Intel TigerLake-H GT1 [UHD Graphics] 
                                            Memory: 2865MiB / 64085MiB 

Lightspeed Receiver
  Device path  : /dev/hidraw3
  USB id       : 046d:C53A
  Serial       : F60A99E1
    Firmware   : 40.03.B0014
    Bootloader : 02.09
    Other      : AA.CA
  Has 2 paired device(s) out of a maximum of 1.
  Notifications: wireless, software present (0x000900)
  Device activity counters: (empty)

  1: PRO X Wireless
     Device path  : /dev/hidraw11
     WPID         : 4093
     Codename     : PRO X
     Kind         : mouse
     Protocol     : HID++ 4.2
     Polling rate : 1 ms (1000Hz)
     Serial number: D75608D9
     Model ID:      4093C0940000
     Unit ID:       D75608D9
        Bootloader: BL1 25.01.B0018
             Other: 
          Firmware: MPM 25.01.B0018
     Supports 28 HID++ 2.0 features:
         0: ROOT                   {0000} V0     
         1: FEATURE SET            {0001} V0     
         2: DEVICE FW VERSION      {0003} V3     
            Firmware: Bootloader BL1 25.01.B0018 AB00FE92436C
            Firmware: Other   
            Firmware: Firmware MPM 25.01.B0018 4093FE92436C
            Unit ID: D75608D9  Model ID: 4093C0940000  Transport IDs: {'wpid': '4093', 'usbid': 'C094'}
         3: DEVICE NAME            {0005} V0     
            Name: PRO X Wireless
            Kind: mouse
         4: WIRELESS DEVICE STATUS {1D4B} V0     
         5: CONFIG CHANGE          {0020} V0     
         6: UNIFIED BATTERY        {1004} V1     
            Battery: 78%, discharging.
         7: COLOR LED EFFECTS      {8070} V4    internal, hidden 
         8: ONBOARD PROFILES       {8100} V0     
            Device Mode: Host
            Onboard Profiles (saved): Disable
            Onboard Profiles        : Disable
         9: MOUSE BUTTON SPY       {8110} V0     
        10: REPORT RATE            {8060} V0     
            Polling Rate (ms): 1
            Polling Rate (ms) (saved): 1
            Polling Rate (ms)        : 1
        11: ADJUSTABLE DPI         {2201} V2     
            Sensitivity (DPI) (saved): 1000
            Sensitivity (DPI)        : 1000
        12: unknown:1500           {1500} V0     
        13: DEVICE RESET           {1802} V0    internal, hidden 
        14: unknown:1803           {1803} V0    internal, hidden 
        15: CONFIG DEVICE PROPS    {1806} V4    internal, hidden 
        16: unknown:1811           {1811} V0    internal, hidden 
        17: OOBSTATE               {1805} V0    internal, hidden 
        18: unknown:1830           {1830} V0    internal, hidden 
        19: unknown:1890           {1890} V5    internal, hidden 
        20: unknown:1891           {1891} V5    internal, hidden 
        21: unknown:18A1           {18A1} V0    internal, hidden 
        22: unknown:1801           {1801} V0    internal, hidden 
        23: unknown:18B1           {18B1} V0    internal, hidden 
        24: unknown:1E00           {1E00} V0    hidden 
        25: unknown:1EB0           {1EB0} V0    internal, hidden 
        26: unknown:1863           {1863} V0    internal, hidden 
        27: unknown:1E22           {1E22} V0    internal, hidden 
     Battery: 78%, discharging.

  7: Candy companion chip
     Device path  : /dev/hidraw12
     Codename     : Candy
     Kind         : touchpad
     Protocol     : HID++ 4.2
     Serial number: F60A99E1
     Model ID:      405F00000000
     Unit ID:       32314710
          Firmware: CC  07.00.B0010
        Bootloader: BOT 32.00.B0010
     Supports 12 HID++ 2.0 features:
         0: ROOT                   {0000} V0     
         1: FEATURE SET            {0001} V0     
         2: DEVICE FW VERSION      {0003} V2     
            Firmware: Firmware CC  07.00.B0010 405F
            Firmware: Bootloader BOT 32.00.B0010 405F
            Unit ID: 32314710  Model ID: 405F00000000  Transport IDs: {'wpid': '405F'}
         3: DEVICE NAME            {0005} V0     
            Name: Candy companion chip
            Kind: touchpad
         4: unknown:18A1           {18A1} V0    internal, hidden 
         5: unknown:1E00           {1E00} V0    hidden 
         6: unknown:1EB0           {1EB0} V0    internal, hidden 
         7: DFUCONTROL SIGNED      {00C2} V0     
         8: unknown:1801           {1801} V0    internal, hidden 
         9: DEVICE RESET           {1802} V0    internal, hidden 
        10: unknown:1803           {1803} V0    internal, hidden 
        11: COLOR LED EFFECTS      {8070} V4     
     Battery status unavailable.

Lightspeed Receiver
  Device path  : /dev/hidraw6
  USB id       : 046d:C545
  Serial       : E4BCA7E7
    Firmware   : 02.01.B0006
    Bootloader : 00.01
    Other      : 52.B9
  Has 1 paired device(s) out of a maximum of 2.
  Notifications: wireless, software present (0x000900)
  Device activity counters: 1=238

  1: G915 TKL LIGHTSPEED Wireless RGB Mechanical Gaming Keyboard
     Device path  : None
     WPID         : 408E
     Codename     : G915 TKL
     Kind         : keyboard
     Protocol     : HID++ 4.2
     Polling rate : 1 ms (1000Hz)
     Serial number: 2E8C1B4F
     Model ID:      B35F408EC343
     Unit ID:       2E8C1B4F
        Bootloader: BL1 12.00.B0017
             Other: 
          Firmware: MPK 14.01.B0021
             Other: 
             Other: 
     The power switch is located on the top left corner.
     Supports 38 HID++ 2.0 features:
         0: ROOT                   {0000} V0     
         1: FEATURE SET            {0001} V0     
         2: DEVICE FW VERSION      {0003} V4     
            Firmware: Bootloader BL1 12.00.B0017 00008B79E978
            Firmware: Other   
            Firmware: Firmware MPK 14.01.B0021 408E5E599E54
            Firmware: Other   
            Firmware: Other   
            Unit ID: 2E8C1B4F  Model ID: B35F408EC343  Transport IDs: {'btleid': 'B35F', 'wpid': '408E', 'usbid': 'C343'}
         3: DEVICE NAME            {0005} V0     
            Name: G915 TKL LIGHTSPEED Wireless RGB Mechanical Gaming Keyboard
            Kind: keyboard
         4: WIRELESS DEVICE STATUS {1D4B} V0     
         5: CONFIG CHANGE          {0020} V0     
         6: DEVICE FRIENDLY NAME   {0007} V0     
            Friendly Name: G915 TKL
         7: BATTERY VOLTAGE        {1001} V3     
            Battery: 90% 4130mV , discharging.
         8: CHANGE HOST            {1814} V1     
            Change Host        : 1:xmg
         9: HOSTS INFO             {1815} V1     
            Host 0 (paired): xmg
            Host 1 (paired): 
        10: RGB EFFECTS            {8071} V0     
        11: PER KEY LIGHTING V2    {8081} V2     
        12: REPROG CONTROLS V4     {1B04} V4     
            Key/Button Diversion (saved): {Host Switch Channel 1:Regular, Host Switch Channel 2:Regular}
            Key/Button Diversion        : {Host Switch Channel 1:Regular, Host Switch Channel 2:Regular}
        13: REPORT HID USAGE       {1BC0} V1     
        14: ENCRYPTION             {4100} V0     
        15: KEYBOARD DISABLE BY USAGE {4522} V0     
        16: KEYBOARD LAYOUT 2      {4540} V0     
        17: GKEY                   {8010} V0     
            Divert G Keys (saved): False
            Divert G Keys        : False
        18: MKEYS                  {8020} V0     
            M-Key LEDs (saved): {M1:False, M2:False, M3:False}
            M-Key LEDs        : {M1:False, M2:False, M3:False}
        19: MR                     {8030} V0     
            MR-Key LED (saved): False
            MR-Key LED        : False
        20: BRIGHTNESS CONTROL     {8040} V0     
        21: ONBOARD PROFILES       {8100} V0     
            Device Mode: Host
            Onboard Profiles (saved): Disable
            Onboard Profiles        : Disable
        22: REPORT RATE            {8060} V0     
            Polling Rate (ms): 1
            Polling Rate (ms) (saved): 1
            Polling Rate (ms)        : 1
        23: DFUCONTROL SIGNED      {00C2} V0     
        24: DFU                    {00D0} V3     
        25: DEVICE RESET           {1802} V0    internal, hidden 
        26: unknown:1803           {1803} V0    internal, hidden 
        27: CONFIG DEVICE PROPS    {1806} V8    internal, hidden 
        28: unknown:1813           {1813} V0    internal, hidden 
        29: OOBSTATE               {1805} V0    internal, hidden 
        30: unknown:1830           {1830} V0    internal, hidden 
        31: unknown:1890           {1890} V5    internal, hidden 
        32: unknown:1891           {1891} V5    internal, hidden 
        33: unknown:18A1           {18A1} V0    internal, hidden 
        34: unknown:1E00           {1E00} V0    hidden 
        35: unknown:1EB0           {1EB0} V0    internal, hidden 
        36: unknown:1861           {1861} V0    internal, hidden 
        37: unknown:18B0           {18B0} V0    internal, hidden 
     Has 2 reprogrammable keys:
         0: Host Switch Channel 1     , default: HostSwitch Channel 1        => HostSwitch Channel 1      
             divertable, persistently divertable, pos:1, group:0, group mask:empty
             reporting: default
         1: Host Switch Channel 2     , default: HostSwitch Channel 2        => HostSwitch Channel 2      
             divertable, persistently divertable, pos:2, group:0, group mask:empty
             reporting: default
     Battery: 90% 4130mV , discharging.

Lightspeed Receiver
  Device path  : /dev/hidraw9
  USB id       : 046d:C547
  Serial       : 6E305A3E
    Firmware   : 04.02.B0009
    Bootloader : 02.09
    Other      : ED.30
  Has 0 paired device(s) out of a maximum of 2.
  Notifications: wireless, software present (0x000900)
  Device activity counters: (empty)
~  cat ~/.config/solaar/config.yaml                                                        ✔   
- 1.1.9
- _NAME: G915 TKL LIGHTSPEED Wireless RGB Mechanical Gaming Keyboard
  _absent: [hi-res-scroll, lowres-scroll-mode, hires-smooth-invert, hires-smooth-resolution, hires-scroll-mode, scroll-ratchet, smart-shift, thumb-scroll-invert,
    thumb-scroll-mode, pointer_speed, dpi, speed-change, backlight, backlight-timed, fn-swap, reprogrammable-keys, persistent-remappable-keys, disable-keyboard-keys,
    crown-smooth, divert-crown, multiplatform, gesture2-gestures, gesture2-divert, gesture2-params, sidetone, equalizer, adc_power_management]
  _battery: 4097
  _modelId: B35F408EC343
  _sensitive: {change-host: false, divert-gkeys: false, divert-keys: false, m-key-leds: false, mr-key-led: false, onboard_profiles: false, report_rate: false}
  _serial: 2E8C1B4F
  _unitId: 2E8C1B4F
  _wpid: 408E
  change-host: null
  divert-gkeys: false
  divert-keys: {209: 0, 210: 0}
  m-key-leds: {1: false, 2: false, 4: false}
  mr-key-led: false
  onboard_profiles: 2
  report_rate: 1
- _NAME: PRO X Wireless
  _absent: [hi-res-scroll, lowres-scroll-mode, hires-smooth-invert, hires-smooth-resolution, hires-scroll-mode, scroll-ratchet, smart-shift, thumb-scroll-invert,
    thumb-scroll-mode, pointer_speed, speed-change, backlight, backlight-timed, fn-swap, reprogrammable-keys, persistent-remappable-keys, divert-keys, disable-keyboard-keys,
    crown-smooth, divert-crown, divert-gkeys, m-key-leds, mr-key-led, multiplatform, change-host, gesture2-gestures, gesture2-divert, gesture2-params, sidetone,
    equalizer, adc_power_management]
  _battery: 4100
  _modelId: 4093C0940000
  _sensitive: {dpi: false, onboard_profiles: false, report_rate: false}
  _serial: D75608D9
  _unitId: D75608D9
  _wpid: '4093'
  dpi: 1000
  onboard_profiles: 2
  report_rate: 1
- _NAME: Candy companion chip
  _absent: [hi-res-scroll, lowres-scroll-mode, hires-smooth-invert, hires-smooth-resolution, hires-scroll-mode, scroll-ratchet, smart-shift, thumb-scroll-invert,
    thumb-scroll-mode, onboard_profiles, report_rate, pointer_speed, dpi, speed-change, backlight, backlight-timed, fn-swap, reprogrammable-keys, persistent-remappable-keys,
    divert-keys, disable-keyboard-keys, crown-smooth, divert-crown, divert-gkeys, m-key-leds, mr-key-led, multiplatform, change-host, gesture2-gestures,
    gesture2-divert, gesture2-params, sidetone, equalizer, adc_power_management]
  _battery: 0
  _modelId: 405F00000000
  _sensitive: {hires-scroll-mode: ignore, hires-smooth-invert: ignore, hires-smooth-resolution: ignore}
  _serial: F60A99E1
  _unitId: '32314710'
  _wpid: 405F

2 paired devices up to 1 device can be paired to this receiver

on normal boot issues arises conflict reports in journalctl battery error messages

Screenshot from 2023-05-16 22-12-16

pfps commented 1 year ago

It is unclear what Solaar should do in this situation. Although what Solaar is saying seems wrong, it is actually the case that two devices are connected to this receiver that is supposed to only allow one. Solaar is just reporting what the receiver is reporting.

I'm not sure what actual hardware you have. I think that the chip may be the controller for a charging device. The chip is paired with the receiver in slot 7, which is normally not allowed.

So, not a bug. Just a strange feature of Logitech devices.

ryanmusante commented 1 year ago

Fair enough, this is a Logitech issue, not solaar. Perhaps will be addressed in a future kernel. I'll notify Logitech about it.

pfps commented 1 year ago

I don't think that there is any involvement of a kernel here.

I doubt very much that Logitech will care.

ryanmusante commented 1 year ago

It appears that this is a known bug since kernel 6.3.1. My mistake for not searching enough before posting.

https://bugs.archlinux.org/task/78427

Test patch for kernel. There is a regression in 6.3 which affects logitech unifying receiver https://lore.kernel.org/all/CAHk-%3DwhvhkSk6m8_AidhofgR9nq0Md%2BHbNad5r1RE69tZgbv6Q@mail.gmail.com/