[olpc-nz] power logging

Tom Parker tom at carrott.org
Sun Jan 16 01:37:34 EST 2011


On Sun, 2011-01-16 at 18:44 +1300, Tom Parker wrote:

> I'll have a play around with Jame's build
> http://dev.laptop.org/~quozl/tinycore/

I made a cheesy collection stick by adding the following
to /root/.profile:
mount -o ro /dev/mmcblk0p2 /mnt/mmcblk0p2
mount /dev/sda1 /mnt/sda1
mkdir -p /mnt/sda1/power-logs
cp /mnt/mmcblk0p2/home/olpc/power-logs/* /mnt/sda1/power-logs
sync
umount /mnt/sda1
umount /mnt/mmcblk0p2
echo Power Logs Recovered
echo Shutting down in 10 seconds
echo You may remove the USB now
sleep 10
halt

And repacked the initrd.gz with 
sudo  cpio -o -H newc --quiet | gzip -2 > ../initrd.gz
(unpacking is a simple gunzip | cpio -i)

This works, but it doesn't shut the laptop down properly. The screen
goes blank but the power light remains lit and you have to hold down the
power button for 5 seconds to get it to go away. Pressing it for a short
time does nothing.

Ideas?



More information about the olpc-nz mailing list