Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
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,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
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, 136 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
Old 01-19-2018, 11:28 AM   #2
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by j.p.s View Post
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)
You really shouldn't nickname yourself "Wizard" if you don't know enough Linux to be able to answer that one for yourself.
knc1 is offline   Reply With Quote
Advert
Old 01-19-2018, 11:49 AM   #3
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,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by knc1 View Post
You really shouldn't nickname yourself "Wizard" if you don't know enough Linux to be able to answer that one for yourself.
I have not nicknamed myself anything, but I did search many threads and some wiki pages before I asked my question, which I still have.
j.p.s is offline   Reply With Quote
Old 01-19-2018, 11:59 AM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by j.p.s View Post
I have not nicknamed myself anything, but I did search many threads and some wiki pages before I asked my question, which I still have.
Look to the left side bar, directly under your j.p.s, what do you read?
That is something that you set in your CP.
knc1 is offline   Reply With Quote
Old 01-19-2018, 12:06 PM   #5
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,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by knc1 View Post
Look to the left side bar, directly under your j.p.s, what do you read?
That is something that you set in your CP.
I absolutely, positively did not.

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.)
j.p.s is offline   Reply With Quote
Advert
Old 01-19-2018, 01:13 PM   #6
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
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
encol is offline   Reply With Quote
Old 01-19-2018, 02:32 PM   #7
Cinisajoy
Just a Yellow Smiley.
Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.
 
Cinisajoy's Avatar
 
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.
Cinisajoy is offline   Reply With Quote
Old 01-20-2018, 01:34 PM   #8
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,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by encol View Post
Anyway, search for kindlelazy in this forum
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.
j.p.s is offline   Reply With Quote
Old 01-20-2018, 10:44 PM   #9
theol0403
Enthusiast
theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!theol0403 is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
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.
theol0403 is offline   Reply With Quote
Old 01-20-2018, 11:24 PM   #10
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,275
Karma: 98804578
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by theol0403 View Post
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.
It emulates taps to the x-server.
j.p.s is offline   Reply With Quote
Old 02-18-2018, 04:35 PM   #11
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,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
To turn to the next page:
Code:
cat nextpage.dat > /dev/input/event5
Data files contents:
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
Attached Files
File Type: gz oasis_pageturn.tar.gz (197 Bytes, 141 views)
j.p.s is offline   Reply With Quote
Reply

Tags
page turn, page turning, page turns

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 11:32 PM.


MobileRead.com is a privately owned, operated and funded community.