A bit of additional information. Here are what the pseudofiles in
/proc/acpi/battery/BAT0 look like. As far as I can tell, the only way to
tell the difference between the case where the battery is fully charged,
and the case where it is not being charged, is from the "remaining
capacity"

/proc/acpi/battery/BAT0/info

present:                 yes
design capacity:         2700 mAh
last full capacity:      2407 mAh
battery technology:      rechargeable
design voltage:          11100 mV
design capacity warning: 270 mAh
design capacity low:     81 mAh
capacity granularity 1:  27 mAh
capacity granularity 2:  27 mAh
model number:            DELL 449TX08
serial number:           756
battery type:            RAM
OEM info:                Sanyo

/proc/acpi/battery/BAT0/state

Fully charged:

present:                 yes
capacity state:          ok
charging state:          charged
present rate:            1 mA
remaining capacity:      2700 mAh
present voltage:         12473 mV

Charging:

present:                 yes
capacity state:          ok
charging state:          charging
present rate:            1880 mA
remaining capacity:      1463 mAh
present voltage:         11976 mV

Not charging:

present:                 yes
capacity state:          ok
charging state:          charged
present rate:            1 mA
remaining capacity:      1461 mAh
present voltage:         11723 mV

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-power-manager in Ubuntu.
https://bugs.launchpad.net/bugs/772017

Title:
  Warn when battery is not being charged

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to