Bug 432917 - KInfocenter detects keyboard battery as mouse battery
Summary: KInfocenter detects keyboard battery as mouse battery
Status: RESOLVED UPSTREAM
Alias: None
Product: kinfocenter
Classification: Applications
Component: general (show other bugs)
Version: 5.18.5
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL: https://gitlab.freedesktop.org/upower...
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-14 07:34 UTC by Dan Dascalescu
Modified: 2022-09-27 20:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (71.01 KB, image/png)
2021-02-14 07:34 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
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