Comment 26 for bug 393008

Revision history for this message
AppleBonker (bonk-adam) wrote :

Scott,

Additionally, your recommendation gives the following:

$ devkit-power --dump
Device: /org/freedesktop/DeviceKit/Power/devices/line_power_AC
  native-path: /sys/devices/LNXSYSTM:00/device:00/ACPI0003:00/power_supply/AC
  power supply: yes
  updated: Thu Nov 19 22:12:44 2009 (315 seconds ago)
  has history: no
  has statistics: no
  line-power
    online: yes

Device: /org/freedesktop/DeviceKit/Power/devices/battery_BAT0
  native-path: /sys/devices/LNXSYSTM:00/device:00/PNP0C0A:00/power_supply/BAT0
  vendor: Hewlett-Packard
  model: Primary
  serial: 00617 10/16/2008
  power supply: yes
  updated: Thu Nov 19 22:17:44 2009 (15 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: charging
    energy: 51.2265 Wh
    energy-empty: 0 Wh
    energy-full: 55.0449 Wh
    energy-full-design: 55.0449 Wh
    energy-rate: 0 W
    voltage: 12.521 V
    percentage: 93.0631%
    capacity: 100%
    technology: lithium-ion
  History (charge):
    1258690664 93.063 charging

Daemon:
  daemon-version: 011
  can-suspend: yes
  can-hibernate yes
  on-battery: no
  on-low-battery: no
  lid-is-closed: no
  lid-is-present: yes

Again, whether or not the laptop is charging or discharging is correctly identified. However, there is clearly an issue determining the rate at which it is doing so. The percentage will update when checking the battery state multiple times, so it is certainly charging/discharging at a rate other than 0W.