battery charging and discharging graphs

Harald Koenig koenig at tat.physik.uni-tuebingen.de
Tue Aug 26 22:27:07 CEST 2008


On Aug 26, Uwe Klein wrote:

> Is that script available to generate comparable results?

the 1st data (without suspend) was just gathered with this bash "one liner":

    while sleep 1m ; do echo `date +%s ; date ; cat /sys/devices/platform/bq27000-battery.0/power_supply/bat/capacity /sys/devices/platform/bq27000-battery.0/power_supply/bat/time_to_full_now /sys/devices/platform/bq27000-battery.0/power_supply/bat/voltage_now /sys/devices/platform/bq27000-battery.0/power_supply/bat/current_now `  >> bat.dat ; done &

for the suspend/atd measurements I've added the script and C-helper in my mail.
if you need the "now_plus" binary, please let me know ('now_plus 600' is just
an alias for 'date -d "now + 10min"  +%s' which doesn't work with date fom busybox).


Harald
-- 
"I hope to die                                      ___       _____
before I *have* to use Microsoft Word.",           0--,|    /OOOOOOO\
Donald E. Knuth, 02-Oct-2001 in Tuebingen.        <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
                                                       \/\/\/\/\/\/\/\/\/
Harald Koenig                                           //  /     \\  \
koenig at tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^



More information about the hardware mailing list