Bug 22108 - [regression from hal] DK-P only knows 3 battery charge levels
Summary: [regression from hal] DK-P only knows 3 battery charge levels
Status: RESOLVED FIXED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium major
Assignee: Richard Hughes
QA Contact:
URL: https://launchpad.net//bugs/383358
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-05 03:54 UTC by Martin Pitt
Modified: 2009-06-05 07:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Martin Pitt 2009-06-05 03:54:47 UTC
After switching g-p-m from using hal to using DK-P, g-p-m only displays 3 charge levels: 79%, 49%, or 19%. This is not actually g-p-m's fault, it gets the values from DK-P (see below for dump).

I'm not yet familiar with debugging DK-P, and battery issues in particular. What further information is helpful here?

Thanks in advance!

Martin

Linux 2.6.30rc7
DK-P 007

Device: /org/freedesktop/DeviceKit/Power/devices/line_power_AC
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/ACPI0003:00/power_supply/AC
  vendor:               
  model:                
  serial:               
  power supply:         yes
  updated:              Wed Jun  3 13:16:16 2009 (2125 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             no

Device: /org/freedesktop/DeviceKit/Power/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor:               Panasonic
  model:                92P1133
  serial:               87
  power supply:         yes
  updated:              Wed Jun  3 13:16:16 2009 (2125 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              64.26 Wh
    energy-empty:        0 Wh
    energy-full:         81.35 Wh
    energy-full-design:  0 Wh
    energy-rate:         0 W
    voltage:             12.195 V
    time to full:        0 seconds
    time to empty:       0 seconds
    percentage:          78.992%
    capacity:            96.5693%
    technology:          lithium-ion
  History (charge):
    1244060176	78.992	discharging
  History (rate):
    1243994465	18.590	unknown
    1243994515	18.222	charging
    1243994565	17.868	charging
    1243994575	0.000	charging

Daemon:
  daemon-version:  007
  can-suspend:     yes
  can-hibernate    yes
  on-battery:      yes
  on-low-battery:  no
Comment 1 Martin Pitt 2009-06-05 03:57:39 UTC
I asked the original reporter to test with 008 as well, will report back here. (Question about debugging procedures still stands, though).
Comment 2 Richard Hughes 2009-06-05 04:28:57 UTC
You can follow whats happening with (as root):

killall devkit-power-daemon
/usr/libexec/devkit-power-daemon -v

And then watch the output scroll. You really want >=008 as earlier versions had pretty bad bugs.
Comment 3 Martin Pitt 2009-06-05 07:51:46 UTC
Confirmed fixed in 008, sorry for the noise.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.