View Single Post
Old 01-19-2018, 11:13 AM   #1
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,793
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Is there a page turn command?

Assuming that the kindle already has a book open and is displaying some page, is there some command that can be issued from ssh or a shell script to turn the page?

(Jailbroken Voyage running 5.8.11) (See post # 11 in this thread for KOA2)

ETA:

I found information to make what I needed, detailed in the references in post #8 of this thread.

Create a binary file to use in a command to display the next page in a document:
[root@kindle root]#
Code:
cat /dev/input/event2 > nextpage.dat
then press next page key, then Ctrl-C

Create a binary file to use in a command to display the previous page in a document:
[root@kindle root]#
Code:
cat /dev/input/event2 > prevpage.dat
then press previous page key, then Ctrl-C

The commands to actually turn the page are:
Code:
cat /mnt/us/nextpage.dat > /dev/input/event2
cat /mnt/us/prevpage.dat > /dev/input/event2
The data files are 64 bytes long and the contents I got are:
Code:
od -t x1 nextpage.dat 
0000000 fe 67 62 5a 0d 90 09 00 01 00 6d 00 01 00 00 00
0000020 fe 67 62 5a 14 90 09 00 00 00 00 00 00 00 00 00
0000040 fe 67 62 5a d1 b8 0b 00 01 00 6d 00 00 00 00 00
0000060 fe 67 62 5a d3 b8 0b 00 00 00 00 00 00 00 00 00

 od -t x1 prevpage.dat 
0000000 25 68 62 5a 86 a0 00 00 01 00 68 00 01 00 00 00
0000020 25 68 62 5a 8d a0 00 00 00 00 00 00 00 00 00 00
0000040 25 68 62 5a 73 0f 03 00 01 00 68 00 00 00 00 00
0000060 25 68 62 5a 76 0f 03 00 00 00 00 00 00 00 00 00
There is probably a much better way to do this.
Attached Files
File Type: gz voyage_pageturn.tar.gz (208 Bytes, 218 views)

Last edited by j.p.s; 02-18-2018 at 04:38 PM. Reason: Add a sorta kinda answer on 2018-01-20, attach data files and point to KOA2 post 2018-02-18
j.p.s is offline   Reply With Quote