minimal battery capacity for next re-boot

2008-09-22 Thread Matthias Apitz

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 [EMAIL PROTECTED] - 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

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: minimal battery capacity for next re-boot

2008-09-22 Thread Flyin_bbb8
 what would be such a
 value? 10% or even less? that the beast comes up again to be charged
 again with the power supply?


you can try to charge your phone 100% shutdown, boot with usb cable
removed, and see how much it is,  do couple of more tests, take the
maximum value add 2 or 3% for safety and use that value :) , someone
else have an exact value already?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community