10-06-2012, 04:30 AM | #31 |
Enthusiast
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
|
I did changed the codes.
It seems that when I press a key the "key" file is created in /tmp but it's always empty so probably that's why the script doesn't work (I'm guessing, I've no idea...) By the way. In order to run the script I've to delete every lines in pageturn but #!/bin/sh echo $$ > /tmp/pageturn.pid _FUNCTIONS=/etc/rc.d/functions [ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS} while true; do { waitforkey > /tmp/key case "$(cat /tmp/key)" in "14 1") next_page;; "28 1") prev_page;; esac } done If not, the key file is not created (nor pageturn.pid) When it runs, there are two pageturn.pid and a key file (empty) in tmp... Thank you two Edit: I run waitforkey in myts and ended rebooting the kindle (didn't know how to exit...) Last edited by anonimo200; 10-06-2012 at 04:55 AM. |
10-06-2012, 09:53 AM | #32 | ||||||
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
These PMs are relevant to this discussion, so I am reposting them publicly:
Quote:
Quote:
Quote:
|
||||||
Advert | |
|
10-06-2012, 11:03 AM | #33 |
Enthusiast
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
|
Thank you geekmaster. Sumarizing: I'm trying to make pageturn work so tried "waitforkey" in the kindle's search bar (missundertood you) Then, when trying to access debug mode, I was unable with `debugOn but could enter with ;debugOn (separate question...) In fact it's a long time since I don't use debugOn so probably it has worked always with ;debugOn not `debugOn and I used ` to run commands. Ok, all this is a different vortex I got into so let's forget it :-)
Once I was able to run waitforkey using ssh, the key codes I got were not the same you can see in myts (althought they are the same as launchpad) so I spent some more time trying to guess what happened. In the end I remembered I'd to add something else to myts' keydefs.ini to make DXG work. Second vortex. Survived too... Present situation: pageturn doesn't yet work; it creates "key" (empty) file in /tmp when pressing the mapped key but does nothing. I'm sorry for disturbing you, they all are problems related with my absolute and deep ignorance... I hope you (and the rest of the members) will forgive me for being so a pain in the *** Regads and "Long live and prosperity" |
10-06-2012, 01:04 PM | #34 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
The ` to ~ switch since FW 3.x only applies to *private* commands. Public commands (debugOn being one of those, as is help, IIRC) always use ;
|
10-06-2012, 01:32 PM | #35 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
|
Advert | |
|
10-17-2012, 01:24 PM | #36 |
Enthusiast
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
|
Ok, I keep on trying... this time I "sshed", copied the script and pasted it. The system waits for the key press and it it's any of the two which codes I used in the script it says "next_page not found" or "prev_page" not found:
-sh: next_page: not found -sh: next_page: not found -sh: prev_page: not found -sh: prev_page: not found Any help anyone? Thanks |
10-17-2012, 01:37 PM | #37 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
looks like it is trying to launch the app "next_page" did you mean next_page() or something
|
10-17-2012, 01:41 PM | #38 |
Enthusiast
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
|
I'm just pasting the content of pageturn file:
echo $$ > /tmp/pageturn.pid _FUNCTIONS=/etc/rc.d/functions [ -f ${_FUNCTIONS} ] && . ${_FUNCTIONS} #big loop while true; do { #write input to temporary file waitforkey > /tmp/key #read which key was pressed case "$(cat /tmp/key)" in "46 1") next_page;; "28 1") prev_page;; esac } done Thank you twobob |
10-17-2012, 01:45 PM | #39 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
well. from my reading of that.
I suggest you test the actual "Turn the page" function works without all the wrapping. (on the DX) once you have that syntax working (Turn page from command line) then you have the rest of the script. it's precompiled Last edited by twobob; 10-17-2012 at 02:32 PM. |
10-17-2012, 01:48 PM | #40 |
Enthusiast
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
|
Ok, how can I do that? I enter by ssh, try "next_page" and gives me an error (I don't remember exactly what it says...)
|
10-17-2012, 02:19 PM | #41 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
it says the same error. I will bet. the "scripting to keys" bit is secondary.
you need to find out how the "Page Turn" invocation works. *ah cripes* I'll read the top post BRB... EDIT: Hmm, it's precompiled. guess I would have to test it on a DX. strace -fF -o /mnt/us/Documents/straceOutput.txt /mnt/us/pageturn/pageturn via ssh and then do some stuff. then read the output? might not hurt. assuming you have a strace for your DX... Other than that I am out of ideas. could be that the implementation on the DX is slightly different enough to make it not work. I would have to check. apologies can't help further right now. I don't see any obvious errors. DPavlin posted some DX keycodes but they wont fix a non-working app. Are there any DX success reports with this app? Last edited by twobob; 10-17-2012 at 02:32 PM. |
10-17-2012, 02:27 PM | #42 |
Enthusiast
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
|
... I'm completely lost... Tell where do I have to start reading and I'll, I promise.
Thank you again twobob. I'm afraid I can't give you karma before giving to someone else... |
10-17-2012, 02:34 PM | #43 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Honestly. I would try to find someone with a DX. and ask them to check your findings.
|
10-17-2012, 02:38 PM | #44 |
Enthusiast
Posts: 36
Karma: 2438
Join Date: Dec 2011
Device: Kindle DXG
|
|
10-17-2012, 02:54 PM | #45 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
I DO have a DX but not here right now. I could test this if you can wait a bit. Anything for a fellow musician |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
5-way button for page turning | bosie | Amazon Kindle | 5 | 04-28-2011 09:53 AM |
Right button (next page) not always responding | andrewcrlucas | Kobo Reader | 28 | 07-16-2010 11:03 AM |
Request Continuous (PAN and Next Page) Mode with the Next Page button | AnuragSethi | enTourage Archive | 4 | 06-18-2010 04:25 PM |
Next page button pushed in too far? | jurat | Amazon Kindle | 5 | 06-02-2010 03:59 AM |
Wierd page up/down button | dcubed2 | enTourage Archive | 9 | 05-04-2010 12:19 PM |