Hi all a small consolidation of a problem that I've been having with the Matrox G400 and dfbmga driver.

When playing the dfbmga output from mplayer I was getting this http://www.linuxowl.com/images/screenshot-1.jpg when playing a video file, thanks to Ville Syrjälä who said that he got something similar when that framebuffer on the primary head was 1024x768 and when playing the video with 1600x1200 it played fine. This has led me to experimenting with the matrox framebuffer to see if by eliminating DirectFB from the variables is is possible to determine if there was a hardware problem, some incorrect framebuffer settings, some incorrect commands or a bug in the driver.

Repartitioning the hard drive to add a small Windows partition and then installing the Matrox windows drivers, setting up the dual-head configuration. The displays from both heads were fine. I hope that this eliminates the hardware as being a problem.

Having a long chat with the developer of the Matrox framebuffer driver he has told me that the commands are correct. The commands are:
modprobe i2c_matroxfb # required by DirectFB and dual-head
modprobe matroxfb_maven # this is basically a D/A converter and not allowed by DirectFB but required for dualhead matroxset -f /dev/fb0 -m 0 #turn off the output to the primary head (no more output if typing at the console matroxset -f /dev/fb1 -m 3 #turn on the fb1 to both the primary and secondary heads (the value after m is bitmapped)

At this point I'm getting this output http://www.linuxowl.com/images/[EMAIL PROTECTED] on both heads. It doesn't seem to make much difference which of the fb.modes that I use on the /dev/fb1 I'm always getting a similar pattern. Adding or removing the sgram kernel options changes the pattern a bit but not much.

matroxset -f /dev/fb1 -m 0 #turn off the output from fb1
matroxset -f /dev/fb0 -m 3 #turn on the output from fb0 to both heads

A this point I'm getting the console on both screen, perfectly clear.

The monitors are both LCD displays one 1024x768 (75Hz) and the other 1280x1024 (60Hz) max resolution (VFreq).

Philip Armstrong has kindly said that the G400 is a bit fussy with the timings and they need tweaking. I'm no expert on fb.modes, so I'm not sure what I can tweak.

My question is this are these fb.modes okay and is this kernel line (grub) also okay? and what I can try next, I'm running out of ideas.

kernel /boot/kernel-2.6.12-hawk-r3 root=/dev/hda3 ro quiet video=matroxfb:init,sgram,vesa:0x117,mtrr,scrollback:0 idebus=66

mode "[EMAIL PROTECTED]"
   # D: 64.994 MHz, H: 48.359 kHz, V: 59.998 Hz
   geometry 1024 768 1024 768 16
   timings 15386 160 32 30 4 128 4
   accel true
endmode

mode "[EMAIL PROTECTED]"
   # D: 108.00 MHz, H: 63.981 kHz, V: 60.02 Hz
   geometry 1280 1024 1280 1024 16
   timings 9260 248 48 38 1 112 3
   hsync high
   vsync high
endmode

mode "[EMAIL PROTECTED]"
   # D: 25.176 MHz, H: 31.469 kHz, V: 59.942 Hz
   geometry 640 480 640 480 32
   timings 39721 48 16 33 10 96 2
endmode

mode "[EMAIL PROTECTED]"
   # D: 25.176 MHz, H: 31.469 kHz, V: 59.942 Hz
   geometry 640 480 640 480 16
   timings 39721 48 16 33 10 96 2
endmode

Many thanks
Duncan


_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to