[EMAIL PROTECTED] wrote: > > Hi all, I'm Poletti Francesco from Arenagiochi, a small italian factory > working in the field of game amusement machine. We are using the JADE > evaluation board from mycable, that has a porting of the directfb > library (version 1.2). > > We are having problems with the usage of the dual display, particoularly > if I execute the command: > >df_andi --dfb:mode=800x600 --dfb:fbdev=/dev/fb0 > it works fine on the first display, on the other hand when I run: > >df_andi --dfb:mode=800x600 --dfb:fbdev=/dev/fb1 > > It works on the second display!But when I try to have directfb running > on the two display at the same time: > if I run: > >df_andi --dfb:mode=800x600 --dfb:fbdev=/dev/fb0 & > >df_andi --dfb:mode=800x600 --dfb:fbdev=/dev/fb1 --dfb:no-vt > --dfb:no-cursor > > I get the error reported at the end of this email, while if I in an > application I try to get information about the second screen (id= 1) I get: > (#) DirectFBError [IDirectFB::GetScreen]: Requested ID not found! > > On my opinion there's something wrong in the frame buffer driver because > if I run "dfbinfo" I get: > > >Screen (00) FBDev Primary Screen (primary screen) > >Caps: VSYNC POWER_MANAGEMENT > > >Layer (00) FBDev Primary Layer > >Type: GRAPHICS > >Caps: SURFACE BRIGHTNESS CONTRAST SATURATION > > Where is the second screen? Do we have to configure something in the > .direfbrc file?
DirectFB only supports one frame buffer device per session. As you are using the multi application core you need to create a secondary session for running the second application. df_andi --dfb:mode=800x600 --dfb:fbdev=/dev/fb0,session=0 & df_andi --dfb:mode=800x600 --dfb:fbdev=/dev/fb1,session=1 --dfb:no-vt,no-cursor In each of these sessions the single frame buffer device is the primary screen. Do you need to run one application controlling both screens? Which hardware is that? It might make sense to write a multi-fb driver like for Davinci or even write a graphics driver from scratch on top of the devmem system. Another nice project could be extending the fbdev system to support multiple fbdevs. -- Best regards, Denis Oliver Kropp .------------------------------------------. | 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