Battery stats not displayed properly

Bug #1420240 reported by Fran Diéguez
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu GNOME
Invalid
Undecided
Unassigned
upower (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Battery stats never go over 66% of charge even when the battery is completely charged.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: gnome-control-center 1:3.14.2-2ubuntu2
ProcVersionSignature: Ubuntu 3.18.0-12.13-generic 3.18.4
Uname: Linux 3.18.0-12-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.16-0ubuntu1
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Feb 9 19:42:54 2015
InstallationDate: Installed on 2014-10-22 (110 days ago)
InstallationMedia: Ubuntu-GNOME 14.10 "Utopic Unicorn" - Alpha amd64 (20140923)
SourcePackage: gnome-control-center
UpgradeStatus: Upgraded to vivid on 2015-01-13 (26 days ago)
usr_lib_gnome-control-center: deja-dup 32.0-0ubuntu2

Revision history for this message
Fran Diéguez (frandieguez) wrote :
Revision history for this message
Fran Diéguez (frandieguez) wrote :
Revision history for this message
Fran Diéguez (frandieguez) wrote :
Revision history for this message
Fran Diéguez (frandieguez) wrote :

I'm using SystemD. I don't know if this could affect.

Revision history for this message
Tim Lunn (darkxst) wrote :

Fran, is the gnome-shell battery indicator displaying it correctly? If that is also broken, can you paste the output from `upower -d`

Changed in ubuntu-gnome:
milestone: none → vivid
Revision history for this message
Fran Diéguez (frandieguez) wrote :

gnome-shell indicator is currently displaying 65% after 5 hours plugged in (so it should be 100%). Testing with previous releases of Ubuntu and it works.

Here is the output
$ LC_ALL=C upower -d
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path: ADP1
  power supply: yes
  updated: Tue Mar 24 18:27:26 2015 (23711 seconds ago)
  has history: no
  has statistics: no
  line-power
    warning-level: none
    online: yes
    icon-name: 'ac-adapter-symbolic'

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: BAT0
  vendor: SMP
  model: bq20z451
  power supply: yes
  updated: Wed Mar 25 01:01:17 2015 (80 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: fully-charged
    warning-level: none
    energy: 49.0779 Wh
    energy-empty: 0 Wh
    energy-full: 50.7751 Wh
    energy-full-design: 75.555 Wh
    energy-rate: 34.7443 W
    voltage: 12.007 V
    percentage: 65%
    temperature: 34.4 degrees C
    capacity: 67.2029%
    technology: lithium-ion
    icon-name: 'battery-full-charged-symbolic'

Device: /org/freedesktop/UPower/devices/DisplayDevice
  power supply: yes
  updated: Wed Mar 25 00:35:17 2015 (1640 seconds ago)
  has history: no
  has statistics: no
  battery
    present: yes
    state: fully-charged
    warning-level: none
    energy: 49.0779 Wh
    energy-full: 50.7751 Wh
    energy-rate: 34.7443 W
    percentage: 65%
    icon-name: 'battery-full-charged-symbolic'

Daemon:
  daemon-version: 0.99.2
  on-battery: no
  lid-is-closed: no
  lid-is-present: yes
  critical-action: HybridSleep

Revision history for this message
Tim Lunn (darkxst) wrote :

From those numbers It looks like upower is calculating the percentage based on engery-full-design which was the original capacity of your battery rather than the current energy-full.

Reassigning to upower since gnome is just doing what its told. Could well be a kernel bug though.

affects: gnome-control-center (Ubuntu) → upower (Ubuntu)
Revision history for this message
Bruce Pieterse (octoquad) wrote :

Fran are still seeing this problem in 15.04 or 15.10 if you have upgraded to 15.10 since you last reported this bug?

Changed in ubuntu-gnome:
milestone: vivid → xenial
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 17.04 (zesty) reached end-of-life on January 13, 2018.
Ubuntu 16.10 (yakkety) reached end-of-life on July 20, 2017.
Ubuntu 15.10 (wily) reached end-of-life on July 28, 2016.
Ubuntu 15.04 (vivid) reached end-of-life on February 4, 2016.
Ubuntu 14.10 (utopic) reached end-of-life on July 23, 2015.
Ubuntu 13.10 (saucy) reached end-of-life on July 17, 2014.
Ubuntu 13.04 (raring) reached end-of-life on January 27, 2014.
Ubuntu 12.10 (quantal) reached end-of-life on May 16, 2014.
Ubuntu 12.04 (precise) reached end-of-life on April 28, 2017.
Ubuntu 11.10 (oneiric) reached end-of-life on May 9, 2013.
Ubuntu 11.04 (natty) reached end-of-life on October 28, 2012.
Ubuntu 10.10 (maverick) reached end-of-life on April 10, 2012.
Ubuntu 10.04 (lucid) reached end-of-life on May 9, 2013.
Ubuntu 9.10 (karmic) reached end-of-life on April 30, 2011.
Ubuntu 9.04 (jaunty) reached end-of-life on October 23, 2010.
Ubuntu 8.10 (intrepid) reached end-of-life on April 30, 2010.
Ubuntu 8.04 (hardy) reached end-of-life on May 12, 2011.
Ubuntu 7.10 (gutsy) reached end-of-life on April 18th, 2009.
Ubuntu 7.04 (feisty) reached end-of-life on October 19, 2008.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in upower (Ubuntu):
status: New → Invalid
Changed in ubuntu-gnome:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.