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 12-15-2012, 01:14 PM   #1
Reventlov
Member
Reventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensions
 
Posts: 13
Karma: 51384
Join Date: Dec 2012
Location: Strasbourg
Device: Kindle 4 non touch (k4nt)
Intercept and stop keys

Hello. I'm searching for a way to stop events triggered by buttons on my kindle 4NT.
I want a way to execute a script until any button is pressed, and to go on the homepage then.
Currently, I use waitforkey, but the buttons trigger the menu, the virtual keyboard and other things, I want to avoid that.
Code:
waitforkey;
# Resume the interface
killall -CONT cvm;
# Go Home
echo "send 101" > /proc/keypad
Reventlov is offline   Reply With Quote
Old 12-15-2012, 02:26 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
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
killall -stop cvm

killall -cont cvm

? Don't have a 4 mate.
twobob is offline   Reply With Quote
Old 12-15-2012, 05:41 PM   #3
Reventlov
Member
Reventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensions
 
Posts: 13
Karma: 51384
Join Date: Dec 2012
Location: Strasbourg
Device: Kindle 4 non touch (k4nt)
I don't understand what do you means by «*Don't have a 4 mate*».
Reventlov is offline   Reply With Quote
Old 12-15-2012, 05:49 PM   #4
knc1
Embedded Cheerleader
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: 6,375
Karma: 5840126
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by Reventlov View Post
I don't understand what do you means by «*Don't have a 4 mate*».
He does not have a K4 model to test the suggestion on.
knc1 is offline   Reply With Quote
Old 12-15-2012, 06:26 PM   #5
Reventlov
Member
Reventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensionsReventlov can understand the language of future parallel dimensions
 
Posts: 13
Karma: 51384
Join Date: Dec 2012
Location: Strasbourg
Device: Kindle 4 non touch (k4nt)
Well, I use first "killall -stop cvm" to avoid the kindle to come back at the homepage when I launch my programm which show an image using eips, then when I*want to go back to homepage I launch "killall -cont cvm" to resume cvm.
Note: cvm == C virtual machine which is a java virtual machine used by the kindle
Reventlov is offline   Reply With Quote
Old 12-15-2012, 09:16 PM   #6
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021142
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
hi. yes. cvm. little version of big virtual machine.

so you have your answer then?

-stop and -cont were what you wanted?

Thanks. I'm not really sure if you are actually happy : )
twobob is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F and J keys mr ploppy Amazon Kindle 4 03-03-2011 07:06 AM
Troubleshooting Keys are not responding amitauti Amazon Kindle 4 11-15-2010 11:42 AM
SSH keys with dropbear? enn Kindle Developer's Corner 2 10-07-2010 12:54 AM
what is wrong with these keys KingDani iRex 8 05-06-2009 11:42 PM
Use keys in Mobipocket ddavtian iRex 0 10-14-2007 04:03 PM


All times are GMT -4. The time now is 05:40 PM.


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