Quote:
Originally Posted by PeterT
why not just use the poweroff command
|
because I would use the switchoff in the "nickel" context, i.e.: save gracefully the nickel DB and use the nickel poweroff screen (book cover).
UPDATE:
I think I found it:
Code:
#poweroff:
echo -ne "\xfe\x0f\xc5\x54\xff\x6a\x0d\x00\x01\x00\x74\x00\x01\x00\x00" > /dev/input/event0
#standby (or wakeup when in standby):
echo -ne "\xf0\x0f\xc5\x54\x3c\xe0\x0d\x00\x01\x00\x74\x00\x01\x00\x00\x00\xf1\x0f\xc5\x54\x8e\xe3\x02\x00\x01\x00\x74\x00\x00\x00\x00\x00" > /dev/input/event0