Comment 0 for bug 1903995

Revision history for this message
Pablo Catalina (xkill) wrote :

The battery percentage reported by upower for Logitech devices connected using Unify receiver are wrong. Below are the results for two devices: Mouse and Keyboard:

* Battery percentages reported by Unify receiver using Solaar:

$ solaar show | grep -iP "^(( \d: )|(.*batt.*))"
  1: Wireless Keyboard K270(unifying)
         4: BATTERY STATUS {1000}
     Battery: 70%, discharging.
  2: Wireless Mouse MX Master
         7: BATTERY STATUS {1000}
     Battery: 20%, discharging.

* Battery percentages reported by upower:
$ upower -i /org/freedesktop/UPower/devices/keyboard_hidpp_battery_0
  native-path: hidpp_battery_0
  model: Wireless Keyboard K270
  serial: 4003-1a-39-5f-c1
  power supply: no
  updated: Thu 12 Nov 2020 13:59:18 CET (119 seconds ago)
  has history: yes
  has statistics: yes
  keyboard
    present: yes
    rechargeable: yes
    state: discharging
    warning-level: none
    battery-level: normal
    percentage: 55% (should be ignored)
    icon-name: 'battery-low-symbolic'

$ upower -i /org/freedesktop/UPower/devices/mouse_hidpp_battery_1
  native-path: hidpp_battery_1
  model: Wireless Mouse MX Master
  serial: 4071-f8-eb-bf-d1
  power supply: no
  updated: Thu 12 Nov 2020 14:03:14 CET (27 seconds ago)
  has history: yes
  has statistics: yes
  mouse
    present: yes
    rechargeable: yes
    state: discharging
    warning-level: low
    battery-level: low
    percentage: 10% (should be ignored)
    icon-name: 'battery-caution-symbolic'

Basically the difference is big so I'm getting a lot of notifications related to low battery even if the battery is OK:
* Mouse, upower: 10% real (Solaar): 20%
* Keyboard: upower: 70% real (Solaar): 55%

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: upower 0.99.11-1build2
ProcVersionSignature: Ubuntu 5.4.0-53.59-generic 5.4.65
Uname: Linux 5.4.0-53-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu27.11
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 12 13:58:35 2020
InstallationDate: Installed on 2020-04-19 (206 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200417)
SourcePackage: upower
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.apport.crashdb.conf: 2020-06-17T11:02:56.934699