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 09-30-2012, 09:32 AM   #1
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: 5,125
Karma: 5324371
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
Question writing to the framebuffer topmost (or mugging Xorg)

Hi.

When running a fbcon SDL application. In normal Kindle 5 mode with cvm and Xorg active, I am unsure how to bring it to the "front"

simply passing a STOP signal to cvm Xorg doesn't do the trick.

Is there a way to influence this seeming interference with the FB or am I just being dim.

SDL_VIDEODRIVER=fbcon SDL_NOMOUSE=1 prboom -nofullscreen -noaccel -width 512 -height 384 -nosound

even with a while true; do eips '';usleep 80000;done
will only bring up a black screen until Xorg or awesome are actually killed (as it stands) I would prefer a more elegant solution

Answers on a postcard.

Thanks all.
__________________
Audiophile and electron bully.
My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK
Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him.
The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set
twobob is offline   Reply With Quote
Old 09-30-2012, 09:52 AM   #2
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,022
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Stopping Xorg doesn't work because it keeps ownership of the framebuffer, and SDL waits for it to be freed. The eink algorithmic art scripts can do it because they do not take ownership, or even wait for framebuffer ready.

That is why I ran my SDL code from diags SSH when I played with it back in December, when I first got my K5. No Xorg to choke on. The difficulty of using SDL from K5 main is why I temporarily "abandoned" it in favor of direct framebuffer access. Not using SDL has benefits that can be seen in my gmplay program. Faster, and runs "everywhere".

And that is why I recommended replacing video SDL calls in prboom with my GMLIB code from my newtrix demo. But we still need SDL working (someday) if we want DosBox and Qemu working on our eink kindles.
__________________

Last edited by geekmaster; 09-30-2012 at 10:06 AM.
geekmaster is offline   Reply With Quote
 
Enthusiast
Old 09-30-2012, 10:18 AM   #3
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: 5,125
Karma: 5324371
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
Have the SDL "working" as far as any support for apps is concerned.
Dosbox was on my list, but until the sticky situation with the FB is addressed all that is fluff and pipe smoking.

Grabbed the newtrix again and tend to agree about the FB hotwiring.
not really my field but likely bits are identified.

Expecting everyone to jump to Diags to run this stuff is - well - untenable.

Xorg is reinstantiated as is awesome after a full kill. perhaps a more abstract look at the issue would be beneficial. Can something be convinced not reboot when awesome dies? a service change for example. Thoughts of that nature.
__________________
Audiophile and electron bully.
My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK
Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him.
The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set
twobob is offline   Reply With Quote
Old 09-30-2012, 10:29 AM   #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: 4,089
Karma: 3827911
Join Date: Feb 2012
Device: Intel 4004
If X11 insists on running . . .
Can it be re-started to use a dummy frame buffer?
Then let SDL use the real one.
__________________
"Hack is just a four letter word." - - With apologies to B. Dylan
knc1 is offline   Reply With Quote
Old 09-30-2012, 10:47 AM   #5
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: 5,125
Karma: 5324371
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW, K5 B011, K3 us, K4, DXG, XDA I&II, Omnia, Ematic E6 + E8 :) etc.
Thats a great idea if the whole "rebooting framework" thing can be sorted. in fact hotswapping the underlying device is sort of what I was mooting at before when Niluje helped out with some details.

Don't see why it can't be fooled into thinking something else is going. Yes, it doesn't work right now that way AFAIK but no harm in fiddling. thanks KNC1
__________________
Audiophile and electron bully.
My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK
Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him.
The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set
twobob is offline   Reply With Quote
Reply

Tags
awesome, doom, framebuffer, prboom, xorg

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
K5 X apps run on native touch Xorg. geekmaster Kindle Developer's Corner 47 04-04-2013 01:18 PM
Paperweight has a 4bit framebuffer twobob Kindle Developer's Corner 76 10-06-2012 06:17 PM
K5 Xorg thoughts twobob Kindle Developer's Corner 2 09-28-2012 07:01 AM
Native K4 and Touch framebuffer changes geekmaster Kindle Developer's Corner 6 02-23-2012 11:28 AM
iPad WWDC mugging victim gets replacement iPad, word from Jobs kjk Apple Devices 7 06-15-2010 03:55 AM


All times are GMT -4. The time now is 08:57 PM.


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