The value of "Energy when full" is much higher than the value of "Energy (design)" so the percentage calculation is wrong

Bug #583271 reported by Daniel Lehrner
122
This bug affects 27 people
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: indicator-applet

Indicator Applet 0.3.7
Description: Ubuntu 10.04 LTS
Release: 10.04

I have installed Ubuntu 10.04 on a Macbook 2,1 and sometimes the value of "Energy when full" gets way too high (currently 983.5 Wh). This leads to a wrong computation of the percentage value of the battery. Despite this the value of "Time to empty" is computed correctly (currently 2.1 h). The values of "Energy (design)" (currently 50.2 Wh) and "Energy" (currently 43.4 Wh) seem to be correct. If this happens only a restart can solve the problem and the value of "Energy when full" seems correct.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: indicator-applet 0.3.7-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
Architecture: i386
Date: Thu May 20 12:52:21 2010
ExecutablePath: /usr/lib/indicator-applet/indicator-applet
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=en_US.utf8
 LANGUAGE=en
 LC_CTYPE=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: indicator-applet

Revision history for this message
Daniel Lehrner (lehrner-daniel) wrote :
Omer Akram (om26er)
affects: indicator-applet (Ubuntu) → gnome-power-manager (Ubuntu)
Revision history for this message
Matthew Stephenson (bobstay) wrote :

I am also seeing this on my Thinkpad T510.

See attached screenshot.

Revision history for this message
Matthew Stephenson (bobstay) wrote :

I'm pretty certain this is a bug in upower, rather than g-p-m, because the upower command-line tool also shows the huge "energy when full" figure.

Revision history for this message
Omer Akram (om26er) wrote :

you might be facing bug 467825 ?

Revision history for this message
Lars Falk-Petersen (julenissen) wrote :

This is not the same as bug 467825. I'm also experiencing it on my thinkpad x201.

Energy 49.8 Wh
Energy when full 601.9 Wh
Energy (design) 60.7 Wh

As you can see it knows how much power you've got. But the result is that i have 10% on my battery, giving me 2h35 of uptime. Which is all wrong. In reality i have about 70-80%, giving me 2h35 uptime.

This is fixed by a reboot. Happens a lot after suspend. Tell me if you need anything else.

Ubuntu 10.04 amd64.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. A new version of Gnome Power Manager is available on Maverick and we are wondering if this bug is still an issue for you with that version? Could you please test and comment back? Thanks in advance.

Changed in gnome-power-manager (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel Lehrner (lehrner-daniel) wrote :

Is this update already available for Maverick?

Because I still have this bug. But I would say it does appear not so often than with 10.04.

Revision history for this message
soro2005 (soro) wrote :

This issue occurs here as of today with gnome-power-manager 2.32.0-0ubuntu1 on Maverick 64bit.

Revision history for this message
mabawsa (mabawsa) wrote :

Been having this issue ever since Maverick

Energy when full is 10 x what it should be.

Revision history for this message
soro2005 (soro) wrote :

Since I believe that Pedro's question has been answered and the bug still persists, I'm changing it back to new. It may not be about gnome power management, but about upower.

Changed in gnome-power-manager (Ubuntu):
status: Incomplete → New
Revision history for this message
soro2005 (soro) wrote :

If I kill the process of upowerd, then upowerd restarts with accurate information in "Energy when full" and the battery of the indicator applet jumps back to where it should be. So this should really be a bug in upower. Sorry for double posting.

Revision history for this message
soro2005 (soro) wrote :

Killing upowerd resets the wrong battery information, so I guess the problem resides in upower

affects: gnome-power-manager (Ubuntu) → upower (Ubuntu)
Revision history for this message
Matthew Stephenson (bobstay) wrote :

I am seeing the same behaviour as soro2005 - if I kill and restart upowerd, normality is restored.

Revision history for this message
soro2005 (soro) wrote :

This should be the same as these two Fedora bugs: https://bugzilla.redhat.com/show_bug.cgi?id=608341 and https://bugzilla.redhat.com/show_bug.cgi?id=656738
They seem to be fixing it in the kernel.

Revision history for this message
Ditty Zhou (zhou-ditty) wrote :

I'm also experiencing it on my thinkpad x201, on the Ubuntu 11.04

When I resumed from suspend, the "Energy when full" value became about ten times as the "Energy(design)“, making the estimated percentage of the battery only 10%, while actually there is still much energy left.

The value of "Energy when full" and estimated percentage back to normal after I end and restart the upower.

My battery information: Vendor: Panasonic , Model : 42T4696

Revision history for this message
Brian Mastenbrook (bmastenbrook) wrote :

I'm experiencing this bug on a Thinkpad T420 under Natty, with the same symptoms as others. Upower gives my battery as a Panasonic 42T4793.

Revision history for this message
Rafael P. (rafael-p) wrote :

A script can be written to kill upowerd at each resume from sleep (in /etc/pm/sleep.d/ )
An upstream fix is strongly desired though.

Revision history for this message
Eric Seppanen (eds-reric) wrote :

Same symptom on a Thinkpad T420s with a Sanyo 42T4845 battery: the indicator always shows 10% on a full battery and energy-full is 10x what it should be. Killing upowerd temporarily sometimes restores the right value.

However, I have also seen upower report all values as 10x (energy, energy-full, energy-full-design are all ~480 Wh instead of ~48 Wh and rate is showing 180 Watts of energy consumption) which results in a sane battery indicator, but is still obviously wrong.

Revision history for this message
Eric Seppanen (eds-reric) wrote :

Duplicate of bug #626025?

Revision history for this message
Roland Warmerdam (rowno) wrote :

I have a Thinkpad T510 running Ubuntu 11.04 64-bit and whenever I bring it out of standby, the battery indicator always reports 100% battery no matter how empty the battery actually is. The hours remaining is still accurate however. Restarting fixes the problem.

Revision history for this message
mabawsa (mabawsa) wrote :

This bug is driving me crazy. Just spent 2 weeks on the road and the laptop kept shutting down thinking it only had 10% power left. (It actually had 80% charge).

Changed in upower (Ubuntu):
status: New → Confirmed
Revision history for this message
mabawsa (mabawsa) wrote :

Oh on an Thinkpad X201.

Revision history for this message
Lars Falk-Petersen (julenissen) wrote :

This bug is gone for me in Ubuntu 11.04.

Revision history for this message
JR (jp3) wrote :

This bug still appears constantly for me in Oneiric on my MacBook1.1. In contrast to 'upower -d', using 'acpi -V' always reports correct percentage though.

Revision history for this message
pc.maint (pc-maint) wrote :

Just done a clean install of 12.04.1 on a TravelMate 6410. Done all updates. This same problem is there at first switch on. Reboot has no effect.

Revision history for this message
Jan Lillelund (jan-lillelund) wrote :

I have the problem on my Thinkpad T410. However the problem only started for me when I added a second battery "slice" to the bottom of the laptop.

It disturbs proper power management as it thinks power is low (measuring percentage power left instead of remaining time given current consumption). Very annoying and not only "suspend" but also "hibernate" seems to trigger this error in my case.

Revision history for this message
jidping (jidping-h) wrote :

I got the same problem on my thinkpad x300 with Ubuntu 12.04.1 LTS. kill upowerd fixed the issue.

my battery was replaced recently with a new one (oem).

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor: SANYO
  model: 42T4522
  serial: 37

Revision history for this message
Benjamin Daines (benjamindaines) wrote :

Present in 12.10

Revision history for this message
martron (imartron) wrote :

I have this problem in Xubuntu 12.10 on a macbook pro 9,2. Killing upowerd works for now but it'd be nice to have a real fix.

bug https://bugs.launchpad.net/ubuntu/+source/devicekit-power/+bug/626025 seems to indicate that it's fixed with kernel 2.6.38.5 but I'm running 3.5.0-23 so this must be another similar issue.

Revision history for this message
qammm (qammm) wrote :

I can confirm this bug still exists in 12.10. Can we get a fix, please? It's been almost 3 years since it was reported. Using a laptop without knowing how much battery you have is about as fun as driving a car without knowing the amount of gasoline you have remaining...

Revision history for this message
Bartek (bartek-zdanowski) wrote :

Hi.
Ubuntu 16.04. Usus B451J
The problem still exists

(upowerd:3571): UPower-Linux-WARNING **: energy 31,794000 bigger than full 31,201000

Revision history for this message
eea (eakb) wrote (last edit ):

Ubuntu 21.10
ThinkPad X1 Carbon 7

Still exists. The Indicator is stuck at "Estimating...". The logs show this:

Feb 23 15:17:46 upowerd[3233]: energy 42.660000 bigger than full 0.000000
Feb 23 15:18:56 upowerd[3233]: energy 43.540000 bigger than full 0.000000
Feb 23 15:18:56 upowerd[3233]: energy 43.540000 bigger than full 0.000000
Feb 23 15:20:56 upowerd[3233]: energy 43.700000 bigger than full 0.000000
Feb 23 15:23:17 upowerd[3233]: energy 44.470000 bigger than full 0.000000
Feb 23 15:23:18 upowerd[3233]: energy 44.470000 bigger than full 0.000000

My device shuts down unexpectedly mid work, although the indicator shows enough energy. The reverse has also happened, where my device ran for hours with only 5% battery left.

I also observed that after plugging in a phone or tablet to charge, the power level drops from 100% to 50% instantly after a while and stays there while the devices charge and while "tracker-miner-fs" goes wild... .

I had apcupsd installed on this machine, which I purged together with "power-profiles-daemon". After installing "tlp" (plus "acpi-call-dkms"), I still get the messages above.

Seems related:

https://bugs.launchpad.net/ubuntu/+source/upower/+bug/1530014
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/1590244
https://bugs.launchpad.net/ubuntu/+source/upower/+bug/1903995

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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