View Single Post
Old 04-22-2013, 01:55 PM   #94
KevinShort
Addict
KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.KevinShort ought to be getting tired of karma fortunes by now.
 
KevinShort's Avatar
 
Posts: 348
Karma: 209937
Join Date: Jan 2012
Location: Virginia, US
Device: Kobo Wifi, Kobo Glo
Quote:
Originally Posted by sergeyvl12 View Post
I do refresh screen at exit by "pressing" the "Home" key in KoboLauncher.sh:

echo -e '\xaa\x03\x00\x00\xFD\x4E\x01\x00\x01\x00\x66\x00\ x01\x00\x00\x00\xAA\x03\x00\x00\xEA\xC2\x03\x00\x0 1\x00\x66\x00\x00\x00\x00\x00'
> /dev/input/event0

It works fine on my Kobo Touch, but probably Glo has another sequence...

Can you test this command on your Glo from ssh/terminal (remove spaces from byte sequence first) ?
Doesn't work on my Glo. I did it from telnet, and it had no effect whatsoever. The Glo doesn't have a hardware home button, so we'll have to find a different method I think. I tried simply refreshing the eink display to get the home screen to all show (I could see just a small portion of the home screen), but it didn't work. Pressing the top-left corner of the screen where I knew the home button was did work, but I don't know how to automate that.

Quote:
Originally Posted by Lucas Malor View Post
Nope, the sequence doesn't work. I don't have installed a SSH client for kobo yet, I launched it with a script. I think I've done it correctly. Maybe I can catch the correct sequence auditing event0 with a ssh shell, if no one have done it before (KevinShort?)
Because the Glo's home button is software, not hardware, it doesn't go through event0. /dev/input/event0 on the Glo is the power slider and the light button.

Just in case anyone's interested, here's the command to simulate the light button on the Glo:
Code:
echo -e '\x93wuQ L\x0b\x00\x01\x00Z\x00\x01\x00\x00\x00\x93wuQY
2\x0e\x00\x01\x00Z\x00\x00\x00\x00\x00' > /dev/input/event0
And here's the power slider:
Code:
echo -e '\xc9wuQ\xad>\x08\x00\x01\x00t\x00\x01\x00\x00\x00\xc9w
uQC\x9e\t\x00\x01\x00t\x00\x00\x00\x00\x00' > /dev/input/event0
KevinShort is offline   Reply With Quote