01-19-2018, 11:13 AM | #1 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
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 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 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 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 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 |
01-19-2018, 11:28 AM | #2 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
You really shouldn't nickname yourself "Wizard" if you don't know enough Linux to be able to answer that one for yourself.
|
Advert | |
|
01-19-2018, 11:49 AM | #3 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
|
01-19-2018, 11:59 AM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
01-19-2018, 12:06 PM | #5 | |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Quote:
Your lack of attention to what happens automatically with post count in the absence of user intervention shows that you are not quite the forum s/w expert you make yourself out to be. (I am not really making that claim, I am just mimicing your jumping to conclusions.) |
|
Advert | |
|
01-19-2018, 01:13 PM | #6 |
Evangelist
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
|
Anyway, search for kindlelazy in this forum
|
01-19-2018, 02:32 PM | #7 |
Just a Yellow Smiley.
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
|
Ok kiddos,
Play nice. Don't make me take your Geritol away from you. |
01-20-2018, 01:34 PM | #8 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
Thanks, but I am not set up for cross compiling or native compiling for kindles.
After considerably more searching around, I found post #4 in this thread: https://www.mobileread.com/forums/sh...d.php?t=267995 which pointed to this post in the kobo forum: https://www.mobileread.com/forums/sh...d.php?t=237682 which gives the general principle to find what I needed to know and which worked for me. It is subject to change by model and OS version, but it works for my immediate purpose. I suspect that there is some lipc command that would do the job, but I am not able to find one. |
01-20-2018, 10:44 PM | #9 |
Enthusiast
Posts: 37
Karma: 50278
Join Date: Feb 2017
Device: Kindle PW3
|
You could also emulate a tap to the x-server, with a tool found in this forum. I forget what it's called, maybe one of the tools on the kterm website? Also, How does kindlelazy do it?
Good luck. |
01-20-2018, 11:24 PM | #10 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
|
02-18-2018, 04:35 PM | #11 |
Grand Sorcerer
Posts: 5,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
|
The KOA2 page turn command data are completely different from the Voyage, as is the event number. See post #1 in this thread for more elaborate description.
To capture the data: Code:
cat /dev/input/event5 > nextpage.dat ^C cat /dev/input/event5 > prevpage.dat ^C Code:
cat nextpage.dat > /dev/input/event5 Code:
od -t x1 nextpage.dat 0000000 75 e7 89 5a 16 43 02 00 01 00 6d 00 01 00 00 00 0000020 75 e7 89 5a 16 43 02 00 00 00 00 00 00 00 00 00 0000040 75 e7 89 5a b9 f8 04 00 01 00 6d 00 00 00 00 00 0000060 75 e7 89 5a b9 f8 04 00 00 00 00 00 00 00 00 00 od -t x1 prevpage.dat 0000000 97 e7 89 5a 5f db 04 00 01 00 68 00 01 00 00 00 0000020 97 e7 89 5a 5f db 04 00 00 00 00 00 00 00 00 00 0000040 97 e7 89 5a db de 07 00 01 00 68 00 00 00 00 00 0000060 97 e7 89 5a db de 07 00 00 00 00 00 00 00 00 00 |
Tags |
page turn, page turning, page turns |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No page turn | vissertw | Sony Reader | 4 | 05-31-2017 02:15 AM |
Command to go to Amazon web page for title? | madmaxmedia | Calibre | 6 | 03-22-2017 05:40 PM |
App to turn page by page vertical | Heawe | Android Devices | 0 | 12-15-2015 07:23 AM |
Add custom page via command line | cinek | Conversion | 2 | 04-01-2014 11:33 AM |
PRS-350 Page Turn | Pomtroll | Sony Reader | 39 | 02-10-2011 03:23 PM |