View Single Post
Old 01-25-2015, 10:03 AM   #411
traycold
Connoisseur
traycold doesn't littertraycold doesn't litter
 
Posts: 63
Karma: 196
Join Date: Oct 2010
Device: Kobo Glo Hd, Kobo H2O2
Quote:
Originally Posted by PeterT View Post
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

Last edited by traycold; 01-25-2015 at 11:10 AM.
traycold is offline   Reply With Quote