Bug 270627 - powerdevil-4.6.1 - Wrong battery status in after resume from suspend
Summary: powerdevil-4.6.1 - Wrong battery status in after resume from suspend
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma4
Classification: Plasma
Component: widget-systemmonitor (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL: https://bugs.gentoo.org/show_bug.cgi?...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-10 22:40 UTC by Andreas K. Huettel
Modified: 2011-04-29 09:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas K. Huettel 2011-04-10 22:40:18 UTC
This is a clone of https://bugs.gentoo.org/show_bug.cgi?id=360607

From a user bug report: 
Hi.  I am running Gentoo amd64 on a Thinkpad W510, with KDE 4.6.1 running under
a no-hal, udev only setup.  I have started encountering a peculiar issue where
after resuming from suspend, the powerdevil battery indicator claims I have 11%
charge remaining, even if plugged in.  A reboot fixes everything and brings the
indicator back to normal.  A very similar issue is manifesting itself on
similar hardware, under GNOME in Ubuntu (
https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/606159 ), so
I assume it is a udev/kernel issue of some sorts.  Possibly upstream somewhere?

The acpi commandline utility displays correct battery values.

Any idea what's going wrong?
Comment 1 Lamarque V. Souza 2011-04-11 02:09:53 UTC
Powerdevil requests battery information from upower. What does upower says about your battery? The acpi command does not use upower as far as I know.
Comment 2 Lukas Schneiderbauer 2011-04-22 20:02:38 UTC
I experience the same issues with the same hardware (Thinkpad w510) and KDE 4.6.2.

upower says the following: (comments after # were added by me)

upower -i /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:02/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor:               SANYO
  model:                42T4799
  serial:               14107
  power supply:         yes
  updated:              Fri Apr 22 20:02:14 2011 (21 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged   # wrong
    energy:              88.1451 Wh      # wrong
    energy-empty:        0 Wh
    energy-full:         829.614 Wh
    energy-full-design:  103.496 Wh
    energy-rate:         0 W
    voltage:             12.159 V
    percentage:          10.6248%        # wrong
    capacity:            100%
    technology:          lithium-ion
Comment 3 Lamarque V. Souza 2011-04-22 20:38:46 UTC
This seems an upstream bug (in upower). The correct place to fill a bug for upower is in http://bugs.freedesktop.org. I have found some bugs reports related to your problem:

https://bugs.freedesktop.org/show_bug.cgi?id=27399
https://bugs.freedesktop.org/show_bug.cgi?id=36198
https://bugs.freedesktop.org/show_bug.cgi?id=28213
https://bugs.freedesktop.org/show_bug.cgi?id=23177