In case you're not helped yet.. Depends also on your DirectFB version. As far as I can see, mode switching is done automatically if you change your resolution. So, you might wanna try grabbing the layer interface and then doing SetConfig with the resolution that's in /etc/fb.modes .
hth Niels Jeff Cooper wrote: > Hello, > > I've got a question on how to switch the resolution of the frame buffer > using DirectFB. Our hardware is a TI DaVinci platform. It has a TFT > display running at 176x220 (noninterlaced) and a NTSC output > (interlaced). The TFT display is the primary output device and the user > is allowed to switch to NTSC. > > During boot, I allocate NTSC sized buffers for the framebuffer. If I > use fbset prior to starting my DirectFB application, I can successfully > setup the resolution and interlaced state of the framebuffer and run my > application on either display. > > When the application is running and I need to switch displays, I'm > making a couple of calls to system( "'fbset ..." ) to change the > resolution. However, it seems that something in DirectFB is resetting > the framebuffer back to the way it was prior to the fbset calls. > > Since it looks like I'm fighting DirectFB, there must be a proper > DirectFB way to change the resolution and interlaced state of the frame > buffer. > > Can anyone offer some suggestions as to what I'm doing wrong? > > thanks, > Jeff > > -- .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-users mailing list directfb-users@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users