Duncan Webb wrote:
> Duncan Webb wrote:
>> Ville Syrjälä wrote:
>>> On Mon, Jan 12, 2009 at 06:09:00PM +0100, Duncan Webb wrote:
>>>> Ville Syrjälä wrote:
>>>>> On Sun, Jan 04, 2009 at 05:55:57PM +0100, Duncan Webb wrote:
>>>>>> Duncan Webb wrote:
>>>>>>> Hi all,
>>>>>>>
>>>>>>> Does anyone know how to enable the S-Video output of the Matrox G400
>>>>>>> DualHead MAX with recent 2.6 kernels?
>>>>>> The answer to this is clear when looking at the maven_init in
>>>>>> gfxdrivers/matrox/matrox_maven.c function. The code is looking for
>>>>>> /sys/class/i2c-dev which has been superseded by i2c-adapter so it cannot
>>>>>> find the frame buffer device.
>>>>> I don't think i2c-dev has gone anywhere. At least I still have it w/
>>>>> 2.6.28. Maybe you just don't have the i2c-dev module loaded.
>>>> I seems to have come back again, looks like if disappeared at about
>>>> 2.6.17 and came back again at 2.6.19. Of course I could have messed up
>>>> my kernel configuration.
>>> Perhaps. I don't have such old kernel trees around anymore but I would
>>> expect that I would have used at least some kernels from that era.
>>>
>>>> May I ask which versions of DirectFB and linux-fusion you are using?
>>> Latest git.
>> Now that I have DirectFB working fine, I am wondering if there are any
>> problems with SDL and DirectFB. I have a small pygame test program, it
>> was to test the changes from Numeric and numpy.
>>
>> When I run this program using DirectFB as the SDL driver the CPU usage
>> is about 50%, which is rather a lot for 1 blit per second. When the same
>> program is run on X it uses somewhere betweeen 0 and 0.5% CPU.
>>
>> What I would like to do is to try to track down the problem. Are there
>> any SDL and DirectFB test programs about that will the same thing?
> 
> 
> Some more information...
> 
> I tracked down a SDL tutorial:
> http://lazyfoo.net/SDL_tutorials/lesson02/index.php
> 
> Built the program and then ran this with the environment:
>     export SDL_DIRECTFB_MGA_OVERSCAN=1
>     export SDL_VIDEODRIVER=directfb
>     export SDL_DIRECTFB_MGA_STRETCH=1
> 
> The CPU usage is 67% during the call to SDL_sleep. To me this implies
> that directfb is using all the CPU just redrawing the screen.
> 
> Any ideas what this problem could be or where to look?


The penny has dropped:

I had set autoflip-window in directfbrc because of this message

SDL_DirectFB: Unsupported pixelformat (0x00200806)!

not sure how to read the pixelformat

SDL DirectFB_SetVideoMode: 800x...@32, flags: 0x00000000
 (!!!)  *** WARNING [Non-flipping window surface and no
'autoflip-window' option used] *** [idirectfbsurface_window.c:319 in
IDirectFBSurface_Window_Construct()]

Now the CPU usage is a respectable 1% (still a bit high for a sleep)

Duncan
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to