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: 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
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.
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,070
Karma: 6789001
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: 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
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.
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: 6,659
Karma: 5850002
Join Date: Feb 2012
Device: Too many.
If X11 insists on running . . .
Can it be re-started to use a dummy frame buffer?
Then let SDL use the real one.
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: 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
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
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
Native K4 and Touch framebuffer changes geekmaster Kindle Developer's Corner 13 05-19-2014 08:08 PM
K5 X apps run on native touch Xorg. geekmaster Kindle Developer's Corner 88 05-14-2014 07:58 AM
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
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 12:49 AM.


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