It would be cool if some of those good-looking, cool guys in here could write a script that writes time, top 3 tasks in terms of CPU-usage, battery status and maybe other useful information to a file every x seconds... Sure this would drain the battery even more, but maybe it helps finding out whats going on?
#!/bin/sh LOGFILE=/media/mmc2/powerlog DELAY=60 PROCCOUNT=3 LINECOUNT=`expr $PROCCOUNT + 3` date '+***Logging start: %F %T' >>$LOGFILE while true; do [ -x /usr/bin/battery-status ] && /usr/bin/battery-status >>$LOGFILE date '+%F %T' >>$LOGFILE top -bn1 |head -n$LINECOUNT >>$LOGFILE done
#!/bin/sh LOGFILE=/media/mmc2/powerlog DELAY=60 PROCCOUNT=3 LINECOUNT=`expr $PROCCOUNT + 3` date '+***Logging start: %F %T' >>$LOGFILE while true; do [ -x /usr/bin/battery-status ] && /usr/bin/battery-status >>$LOGFILE date '+%F %T' >>$LOGFILE top -bn1 |head -n$LINECOUNT |tail -n+4 >>$LOGFILE done