[ltp] Battery capacity updates under Linux

Shem Multinymous linux-thinkpad@linux-thinkpad.org
Tue, 24 Oct 2006 21:23:02 +0200


On 10/24/06, Florian Manschwetus <florianmanschwetus@gmx.de> wrote:
> > The ThinkPad battery reports a "last full capacity" readouts,
> > accessible under Linux via
> > $ grep 'last full capacity'  /proc/acpi/battery/BAT0/info
> > or
> > $ cat /sys/devices/platform/smapi/BAT0/last_full_capacity
> >
> > Is this value updated when the battery is used only under Linux?
> > What are the conditions for updating tihs value?

> Afaik is this a native information of the internal battery loading control.

Yes, the information is computed and by battery's internal controller.
But it might require some specific command from the host (e.g., "fully
discharge the battery") to initiate the measurement. The Smart Battery
Data Specification says nothing about this.

  Shem