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 10-28-2013, 02:06 PM   #1
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 484
Karma: 1274186
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Kindle Menu PREVIEW (for kindle PW)

I'm working to make a new app launcher for kindle PW (and possibly Touch too, but can't test on it). Just want to share with you a screenshot of the current progress.

What does works: icons in the tray
What does almost work: app launchers. They launch scripts but something goes wrong while exectuing, and launched apps don't show. Hope to fix it soon

This App start in no time, being only a popup window. I'll add other apps and tray icons once I've fixed the critical bug (release must wait). There will be 12 app shortcuts in the first page; maybe other pages will be available too. And a link to the traditional KUAL app launcher for missing ones.
Will be hopefully provided also a script to repleace the store button with Kindle Menu.

Meanwhile, if you have ideas or suggestions feel free to ask!
Attached Thumbnails
Click image for larger version

Name:	screenshot_2013_10_28T19_55_26+0200.png
Views:	241
Size:	33.9 KB
ID:	114116  

Last edited by Aeris; 10-28-2013 at 02:38 PM.
Aeris is offline   Reply With Quote
Old 10-28-2013, 02:41 PM   #2
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 484
Karma: 1274186
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Bug details: it seems that from customDialogs don't works all these command that try to "open the screen". Neither the simplest light.sh doesn't work with nativeBridge.setLipcProperty( "com.lab126.system", "sendEvent", "; sh -c 'eips blabla; /usr/bin/light.sh'");

The only working that does "something" on screen is eips..

You can convince yourself by trying these commands:

WORKING COMMANDS:
lipc-set-prop com.lab126.system sendEvent "; sh -c 'eips blabla2'"

/usr/bin/light.sh

NOT WORKING:
lipc-set-prop com.lab126.system sendEvent "; sh -c '/usr/bin/light.sh'"

Scripts that doesn't interact with the screen seems to run well instead.

Hope that somebody could help me to find a workaround for this issue...

Last edited by Aeris; 10-28-2013 at 02:58 PM.
Aeris is offline   Reply With Quote
Old 10-28-2013, 03:16 PM   #3
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 711
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Wild guess: maybe your launcher is an "always on top"-like window (in other words, it's placed on top layer defined by window manager configuration file) and light.sh is just hidden under it?

eips works directly with framebuffer ("low-level" stuff), AFAIK, so window manager ("high-level" stuff) rules doesn't apply.
eureka is offline   Reply With Quote
Old 10-28-2013, 03:21 PM   #4
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 484
Karma: 1274186
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
Yes, I think is an "always on top"-like window, and also forbids to click around under it... but this would only explain the light.sh thing, not why all the other kual apps doesn't show Ah, with lipc-set-prop com.lab126.system sendEvent "; sh -c '/usr/bin/light.sh'" in terminal I was not talking about customDialog, so...

It seems that sh code runs in a particular enviroment that is different from the same commands running in kterm for example

Last edited by Aeris; 10-28-2013 at 03:24 PM.
Aeris is offline   Reply With Quote
Old 10-28-2013, 03:43 PM   #5
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 711
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
OK, I think, I now understand your problem right:
Code:
lipc-set-prop com.lab126.system sendEvent "; sh -c '/usr/bin/xtestlab126 -d'"
doesn't show blank screen for drawing, while
Code:
/usr/bin/xtestlab126 -d
does.

Can't help with it, sorry, maybe it's time for searching for other solution.
eureka is offline   Reply With Quote
Old 10-28-2013, 03:47 PM   #6
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 696
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
Take this as a joke...
Try adding a small sleep before running anything that interacts with the screen.
It won't work, but it takes only a moment...
silver18 is offline   Reply With Quote
Old 10-28-2013, 03:48 PM   #7
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
yup thats the one.

Also struggling to think of a solution..

lipc-set-prop com.lab126.system sendEvent "; sh -c ' eips `whoami` '"
does actually print "root"... so maybe its not the user level...

Ah the joy of "unspecified behaviour"

EDIT and...

[root@kindle root]# lipc-set-prop com.lab126.system sendEvent "; sh -c ' sleep 1
; eips `date | tr -d " "` '"


also works. (that sleep is just for you Silver :P)

The pattern appears to be that shells commands cant be invoked.. let me try a big binary direct..

Last edited by twobob; 10-28-2013 at 03:56 PM.
twobob is offline   Reply With Quote
Old 10-28-2013, 04:00 PM   #8
silver18
THE NOOB
silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.silver18 ought to be getting tired of karma fortunes by now.
 
silver18's Avatar
 
Posts: 696
Karma: 1545625
Join Date: Jan 2012
Location: Italy
Device: Kindle Touch 5.3.2
This is the result of missing from the forum for a while...
silver18 is offline   Reply With Quote
Old 10-28-2013, 04:02 PM   #9
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
nope. even shifting a binary to /usr/bin or /usr/sbin
- that requires no ancillary supporting libs doesn't help...

Mystery

[root@kindle root]# ls -al /usr/sbin/eips
Quote:
-rwxr-xr-x 1 root root 52884 Jun 11 23:15 /usr/sbin/eips
[root@kindle root]# ls -al /usr/sbin/eazykeyboard
Quote:
-rwxr-xr-x 1 root root 226286 Oct 28 20:00 /usr/sbin/eazykeyboard
look identical... could there be a whitelist???

EDIT: Ah yeah DISPLAY doh... also the eazykeyboard I was testing doesnt even work WITH that fix great :P doh!

Last edited by twobob; 10-28-2013 at 04:22 PM.
twobob is offline   Reply With Quote
Old 10-28-2013, 04:07 PM   #10
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 711
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
This works fine:
Code:
lipc-set-prop com.lab126.system sendEvent "; DISPLAY=:0 /usr/bin/xtestlab126 -d &"
So, sh -c part is optional; to pass over blocking call use "&"; xtestlab126 specifically requires DISPLAY to being set. /usr/bin prefix is optional, but it's better to use absolute paths. As Aeris noted, execution environment is a bit different then default.

UPD: and /usr/bin/light.sh just invokes xtestlab126 -l.

Last edited by eureka; 10-28-2013 at 04:12 PM.
eureka is offline   Reply With Quote
Old 10-28-2013, 04:12 PM   #11
baf
Addict
baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.baf ought to be getting tired of karma fortunes by now.
 
Posts: 328
Karma: 1346560
Join Date: May 2012
Device: kt
Aeris, Eureka!
Great discovery!
baf is offline   Reply With Quote
Old 10-28-2013, 04:17 PM   #12
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 484
Karma: 1274186
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
YAYYYYYYY IT WORKSSSS! Eureka !!!!!!!!!!
Aeris is offline   Reply With Quote
Old 10-28-2013, 04:19 PM   #13
Aeris
Developer's Corner Mascot
Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.Aeris ought to be getting tired of karma fortunes by now.
 
Aeris's Avatar
 
Posts: 484
Karma: 1274186
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
And it is really useful even while using USBNetwork!!
Aeris is offline   Reply With Quote
Old 10-28-2013, 04:20 PM   #14
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
nice catch!
twobob is offline   Reply With Quote
Old 10-28-2013, 04:27 PM   #15
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 711
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
@Aeris, what user actions lead to showing the launcher? Do you start it from KUAL?
eureka 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
section menu/ main menu link auto added even if output-profile was set to kindle flyingfoxlee Recipes 1 05-20-2013 11:42 PM
Kindle Previewer 2.51 adds 8 Font Faces for Kindle Touch preview mode jswinden Amazon Kindle 4 07-19-2012 05:56 PM
Firmware Update Kindle 3 Firmware 3.0.2 preview zebradude Amazon Kindle 67 09-29-2010 05:40 PM
Preview Amazon's Kindle App for iPad kilofox Apple Devices 8 04-03-2010 07:45 AM
About two months late: Kindle 3 Preview (no, *not* really) NatCh Amazon Kindle 14 05-29-2009 07:13 AM


All times are GMT -4. The time now is 06:47 PM.


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