minimal battery capacity for next re-boot

Matthias Apitz guru at unixarea.de
Mon Sep 22 15:52:02 CEST 2008


Hello,

One can monitor the actual battery capacity in the FreeRunner with:

# cat /sys/devices/platform/bq27000-battery.0/power_supply/bat/capacity
72

I'm thinking in writing a small shell script to shutdown the Gadget when
the battery capacity falls down under certain value X to have enough
power for one next reboot to re-charge via USB; what would be such a
value? 10% or even less? that the beast comes up again to be charged
again with the power supply?

thx

	matthias
-- 
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
b http://gurucubano.blogspot.com/
A computer is like an air conditioner, it stops working when you open Windows
Una computadora es como aire acondicionado, deja de funcionar si abres Windows




More information about the community mailing list