Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2016, 03:48 PM   #1
tommyderami
Junior Member
tommyderami began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2016
Device: KV
Simulating input on KV via SSH

After implementing the awesome workarounds to get a jailbreak working on a 5.6.5 KV (thanks to everyone who made that possible!) I have been tinkering around with trying to get a remote page turn functionality to work which has been done in a few other cases

see http://www.mobileread.mobi/forums/sh...=118480&page=4
https://www.mobileread.com/forums/arc.../t-215558.html
etc.

All of these work by using a script or nc etc to call something along the lines of echo "send 191" > /proc/keypad

Since the KV lacks the keyboard seen on a K3 or other models, would it be possible to pipe a command to the /proc/touch with coordinates to simulate a finger press to advance or step back a page? I searched and wasn't able to find anything like this being done for at KT2.

Any thoughts?
tommyderami is offline   Reply With Quote
Old 02-10-2016, 03:52 PM   #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
Yes.
or send something to the appropriate (whatever that is) event chain.

Sounds like you get to develop it.

I think there are a few posts around here (somewhere) about simulating events on the touch devices -
I can't think of any hints to give too make them easier to find though.
knc1 is offline   Reply With Quote
Advert
Old 02-10-2016, 05:30 PM   #3
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
I think there's still a 'dumb' procfs entry somewhere that accepts plaintext input, but you'd have to dig a bit to find some examples (in the debug scripts and/or diags scripts, most likely).

That, or there's a test command or lua script somewhere that does the job?
NiLuJe is offline   Reply With Quote
Old 02-10-2016, 08:58 PM   #4
tommyderami
Junior Member
tommyderami began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2016
Device: KV
Time to research

Thanks for the reply, I'll post back when I find a decent solution!
tommyderami is offline   Reply With Quote
Old 02-07-2017, 06:45 AM   #5
aconicq1
Member
aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.aconicq1 is faster than slow light.
 
Posts: 13
Karma: 29938
Join Date: Feb 2014
Device: pw2
xdotool might do the trick. Search for xdotool on the forum, copy over the libraries and the file. You might have to link the libraries using:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/location/of/libraries

then run the following in the command line:
path/to/xdotool mousemove X Y click 1
where X and Y are coords - so 400, 400 to go page forward on pw2.

...but this doesn't work with koreader only native Kindle
aconicq1 is offline   Reply With Quote
Advert
Old 02-07-2017, 07:46 AM   #6
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
In case you didn't notice -
The post you are answering is dated: Feb. 2016 and it is now Feb. 2017
knc1 is offline   Reply With Quote
Reply

Tags
simulate input, xdotool


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Conversion Input] Microsoft Doc Input Plugin igi Plugins 77 03-08-2025 04:04 AM
REQ: input on Database Structure and testing a workaround input jecilop Library Management 15 12-17-2015 12:10 AM
M92: password and users (eg. ssh/ssh-server) lepau Onyx Boox 1 11-15-2013 11:46 AM
DIY Kindle voice control (simulating key presses) Acorn Kindle Developer's Corner 35 10-07-2012 01:36 PM
Simulating Button Presses Externally inuxy Kindle Developer's Corner 58 08-28-2012 01:55 PM


All times are GMT -4. The time now is 09:33 PM.


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