09-30-2012, 09:32 AM | #1 |
( ͡° ͜ʖ ͡°){ʇ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
|
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. |
09-30-2012, 09:52 AM | #2 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
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. |
Advert | |
|
09-30-2012, 10:18 AM | #3 |
( ͡° ͜ʖ ͡°){ʇ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
|
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. |
09-30-2012, 10:29 AM | #4 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
If X11 insists on running . . .
Can it be re-started to use a dummy frame buffer? Then let SDL use the real one. |
09-30-2012, 10:47 AM | #5 |
( ͡° ͜ʖ ͡°){ʇ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
|
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 |
Advert | |
|
Tags |
awesome, doom, framebuffer, prboom, xorg |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
K4 and Touch framebuffer changes | geekmaster | Kindle Developer's Corner | 13 | 05-19-2014 08:08 PM |
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 |
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 |