![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Send touch event to screen / flip page from shell
Hi all
I am looking for a way to flip a page automatically. I.e. let's say I connect via usbnet to the Kindle, is it possible (on a Paperwhite 2) to issue a command that will go to the previous / next page? I can't seem to figure out how to get the X11 server or the Amazon software to think that a touch happened. TIA! |
![]() |
![]() |
![]() |
#2 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
The info is here, somewhere (but probably for an older model).
Someone needed to do that for a handicapped interface. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
I haven't found it for touch devices, only for devices with buttons where you could type "echo send <keycode> > /proc/keypad" to enter a key. This does not work on the PW2 (/proc/keypad does not exist) which does not have any buttons except the power button.
|
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Okay, I widened my search and found a solution for the Kobo that works on the PW2 as well:
Record the touch by:
Play it back by executing echo touch.txt > /dev/input/event1 (Source) |
![]() |
![]() |
![]() |
#5 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Someone wrote about that here also. Plus, perhaps, how to find which event device it is at runtime. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Forums are great, esp. this one - learned so much. However it is a big pain to find anything in large forums as the search will almost always bury the good threads/posts under an avalanche of "I am trying to do ..." and long discussions that already require a lot of background information (or are simply useless). As I mostly use my Kindle for reading and only hack on it once a year, I tend to forget many details - and am unable to find them again. Point in case, it took me (only) 15 minutes to find the USBnetwork package for PW2 (or rather I found the one for Touch/PW1 though when downloading it there's a PW2 version).
Anyway. Sorry for the rant. Spent half the day searching for stuff ;-) For now I will assume that on my particular PW2 and never-to-be-updated-firmware the event device will stay the same :-) I could not find another post mentioning using /dev/input/eventX for Kindle, however I found https://github.com/koreader/koreader...dle/device.lua where the correct device is listed for many Kindle devices. I will revisit this issue if I manage the actual goal (remote controlled page flipper, so I will either need to get USB OTG working, or find the internal USB host, or get bluetooth connected to the serial port). |
![]() |
![]() |
![]() |
#7 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
RIGHT!
It must have been the KOReader source that I was thinking about. - - - - - We do have a (hidden) advanced search - In the top right corner of any page, there is an input box and a 'search' button - When logged in, leave the input box empty, click 'search' - Bingo - a pretty fancy advanced search thingy. - - - - - We have the ability to filter the thread index by prefix. That is a fairly recent (2 years or so) addition. If you find something useful in your searching that does not have a prefix assigned - On the first post of the thread - click 'report post' - in the report comment box, request that a mod assign an 'xyz-whatever-is-appropriate' prefix. (your choice, pick one). - - - - - We have an index system built of Wiki pages, per prefix - - If you don't find what you need in the index - Add it when you find it. (You don't need to be a member of this forum or the wiki to add things.) Lots of examples of how to code the links. Its a Wiki, don't be concerned about 'messing it up' - like any wiki, the contents are versioned and can be rolled back. |
![]() |
![]() |
![]() |
#8 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Thanks for finding it. |
|
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 889004
Join Date: Mar 2014
Device: Kindle PW2
|
Yes, thank you very much. This is very helpful for me as it also shows how to disable the "touch" part of the screen!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use smart phone to convert web page to epub and send to Kobo Touch over WIFI | swamp thing | Kobo Developer's Corner | 5 | 10-31-2014 03:12 AM |
Wheel page-flip behavior with built-in viewer's 2-pages per screen view | Hoggy | Calibre | 2 | 11-07-2012 11:01 PM |
Classic Touch Screen Page Turner | Pomtroll | Barnes & Noble NOOK | 30 | 10-15-2010 12:50 PM |
FlexDisplay - "flip" your screen to the next page | TadW | News | 3 | 06-21-2008 10:50 AM |
iLiad Can anybody send me the shell access package,please! | sin_catcher | iRex Developer's Corner | 12 | 05-22-2008 11:25 AM |