Bug 432917

Summary: KInfocenter detects keyboard battery as mouse battery
Product: [Applications] kinfocenter Reporter: Dan Dascalescu <ddascalescu+kde>
Component: generalAssignee: Kai Uwe Broulik <kde>
Status: RESOLVED UPSTREAM    
Severity: minor CC: gstengel, kde, nate, plasma-bugs-null, sitter
Priority: NOR    
Version First Reported In: 5.18.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
URL: https://gitlab.freedesktop.org/upower/upower/-/issues/128
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description Dan Dascalescu 2021-02-14 07:34:58 UTC
Created attachment 135670 [details]
Screenshot

I have two Logitech peripherals connected to my laptop via the unifying receiver:
* MX Keys keyboard
* MX Master 3 mouse

KInfocenter shows two "Mouse battery" tabs.
Comment 1 Kai Uwe Broulik 2021-02-16 22:30:07 UTC
Please provide the output of upower -d

If it reports it as mouse there this is a bug in upower, or a kernel driver, so please report a bug over there.
Comment 2 Dan Dascalescu 2021-02-16 22:37:32 UTC
Below is the trimmed output of `upower -d`. The keyboard and mouse are reported separately:

Device: /org/freedesktop/UPower/devices/line_power_AC
  native-path:          AC
  power supply:         yes

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               LGC
  model:                02DL004
  power supply:         yes

Device: /org/freedesktop/UPower/devices/mouse_hidpp_battery_0
  native-path:          hidpp_battery_0
  model:                MX Keys Wireless Keyboard
  power supply:         no
  mouse
    present:             yes
    rechargeable:        yes
    state:               fully-charged

Device: /org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o001
  native-path:          ucsi-source-psy-USBC000:001
  power supply:         yes
  line-power
    icon-name:          'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o002
  native-path:          ucsi-source-psy-USBC000:002
  power supply:         yes
  line-power
    online:              yes

Device: /org/freedesktop/UPower/devices/mouse_hidpp_battery_1
  native-path:          hidpp_battery_1
  model:                Wireless Mouse MX Master 3
  power supply:         no
  mouse
    present:             yes
    rechargeable:        yes
    state:               fully-charged

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply:         yes
  battery
    present:             yes
    state:               fully-charged
    energy:              51,99 Wh

Daemon:
  daemon-version:  0.99.11
  on-battery:      no
Comment 3 Kai Uwe Broulik 2021-02-16 22:39:21 UTC
Hmm does upower -d no longer output the device type? :D they are both under mouse_hidpp_battery so i suggest you file a bug against upower.freedesktop.org
Comment 4 Dan Dascalescu 2021-02-16 23:16:04 UTC
Maybe I trimmed too much.

Anyway, https://gitlab.freedesktop.org/upower/upower/-/issues/139