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 11-27-2015, 11:00 AM   #1
peterson
Connoisseur
peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.
 
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!
peterson is offline   Reply With Quote
Old 11-27-2015, 12:20 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
The info is here, somewhere (but probably for an older model).
Someone needed to do that for a handicapped interface.
knc1 is offline   Reply With Quote
Advert
Old 11-27-2015, 01:46 PM   #3
peterson
Connoisseur
peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.
 
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.
peterson is offline   Reply With Quote
Old 11-27-2015, 02:07 PM   #4
peterson
Connoisseur
peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.
 
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:
  1. cat /dev/input/event1 > touch.txt
  2. performing the touch on the device (keep it short)
  3. ctrl+c

Play it back by executing echo touch.txt > /dev/input/event1

(Source)
peterson is offline   Reply With Quote
Old 11-27-2015, 02:26 PM   #5
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 peterson View Post
Okay, I widened my search and found a solution for the Kobo that works on the PW2 as well:

Record the touch by:
  1. cat /dev/input/event1 > touch.txt
  2. performing the touch on the device (keep it short)
  3. ctrl+c

Play it back by executing echo touch.txt > /dev/input/event1

(Source)
The touchscreen is not always /dev/input/event1 on all models/all firmwares.

Someone wrote about that here also.
Plus, perhaps, how to find which event device it is at runtime.
knc1 is offline   Reply With Quote
Advert
Old 11-27-2015, 02:55 PM   #6
peterson
Connoisseur
peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.
 
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).
peterson is offline   Reply With Quote
Old 11-27-2015, 04:52 PM   #7
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
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.
knc1 is offline   Reply With Quote
Old 12-09-2015, 11:28 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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:
Originally Posted by knc1 View Post
The info is here, somewhere (but probably for an older model).
Someone needed to do that for a handicapped interface.
Are you thinking of baf's Untouchable Kindle? http://www.fabiszewski.net/kindle-untouchable/
eschwartz is offline   Reply With Quote
Old 12-10-2015, 07:51 AM   #9
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 eschwartz View Post
Are you thinking of baf's Untouchable Kindle? http://www.fabiszewski.net/kindle-untouchable/
Yes - that was the example I was thinking of.
Thanks for finding it.
knc1 is offline   Reply With Quote
Old 12-22-2015, 02:13 PM   #10
peterson
Connoisseur
peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.peterson ought to be getting tired of karma fortunes by now.
 
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!
peterson is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:43 AM.


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