[SDL] Simple newbie question

not disclosed n0td1scl0s3d at hotmail.com
Fri Jul 3 04:49:33 PDT 2009



It doesn't matter that it isn't portable for me - the hardware cannot run anywhere else - it is a one off...

The one problem I have remaining is that I can disable X fine and after I disable X I have a working
framebuffer.  The problem is if my display is disconnected and reconnected (or not turned on before
X etc), the display no longer works.  I can fix this by starting X and stopping it but I haven't been able 
to emulate this from my own code.  I know this is not the place but does anyone know how to kick the 
framebuffer back into life? (using omapfb).

Cheers,

SA





> From: llubnek at gmail.com
> To: sdl at lists.libsdl.org
> Date: Fri, 3 Jul 2009 07:04:40 -0400
> Subject: Re: [SDL] Simple newbie question
> 
> On Friday, 3 July 2009 05:07:47 not disclosed wrote:
> > Thanks again-
> >
> > I have just discovered I can do this:
> >
> >
> > main(){
> > int fbdev;
> > unsigned int *fb;
> >
> > fbdev=open("/dev/fb0", O_RDWR);
> > fb=(unsigned int *)mmap(0, 640*480*sizeof(unsigned int), PROT_WRITE,
> > MAP_SHARED, fbdev, 0);
> >
> > Which is ideal for me and I think all I need to do is get rid of X now...
> >
> > Thanks,
> >
> > SA
> >
> 
> now that's nice...
> short, sweet, and completely unportable.
> 
> I just wish it were practical for games, etc...
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090703/42cda5c8/attachment.htm>


More information about the SDL mailing list