From: Svetoslav S. <sv...@gm...> - 2003-11-03 17:29:36
|
Hi, i think i almost got it :-) almost, cause my main monitor died in the weekend and i used a switch, and the accelerated head gives pretty strange output Helge please correct me if i'm wrong somewhere, or if smth differs from your setup > > How did you got it running? > I used this machine single-headed for a long time. > All I did was to create a second config file (xf86config-4) > for fbdev, and use matroxset-0.3 from Petrs site to > set up which framebuffer connects to what output. > > I can set up a guest account on the machine, if you > want to look more at the setup. > > > i'm tring with no success quite a long time. > > > > > which version of XFree ? > debian packaged xserver-xfree86-dri-trunk from > http://people.debian.org/~daenzer/dri-trunk-sid/ > because I want accelerated opengl on at least one screen. that was my first problem, i used the matrox drivers which obviously doesn't play nice with linux-2.6 i got all kind of agp errors and tring to activate "UseFBDev" caused lock ups switching to the plain mga drivers fixed the problem, but also the distored screen :( i'll have to play more with it > I got xdm working too. > >From my /etc/X11/xdm/Xservers: > > :0 local /usr/X11R6/bin/X :0 vt7 -deferglyphs 16 -nolisten tcp > :1 local /usr/X11R6/bin/X :1 vt17 -deferglyphs 16 -nolisten tcp > -xf86config xf86config-4 > > The first server use the standard XF86Config-4 > This runs the servers, but I had to modify /etc/X11/xdm/Xsetup > too to actually make the second framebuffer visible. Whenever the > accelerated server starts, it configures the G550 to show the same > screen on both outputs. Fortunately, xdm then runs the Xsetup script, > so that's where I put the following lines: > /usr/local/bin/matroxset -f /dev/fb/1 -m 0 > /usr/local/bin/matroxset -f /dev/fb/0 -m 2 > /usr/local/bin/matroxset -f /dev/fb/1 -m 1 that's basicly the script swapped from the matroset tarball, correct ? > 1. line: disconnect /dev/fb/1 from whatever output it uses (in case it was > using&blocking output 2) > 2. line: connect /dev/fb/0 to output 2, which is the vga connector > 3. line: connect /dev/fb/1 to output 1, which is the DVI connector with a > VGA converter. > The output numbers are really bits, so connecting a framebuffer to output > 3 shows > it on both screens. There's also a third output, bitnumber 4, but there > is no such plug. > Perhaps the video out? "matroxset" seems undocumented. > > This setup means both servers get a screen. A minor inconvenience is the > way > both screens blink whenever one of the xdm's are reset. > > > which matrox drivers? > I believe I'm using the mga_drv.o (and fbdev_drv.o) that comes with > xserver-xfree86-dri-trunk. > >From /var/log/XFree86.0.log: > (II) LoadModule: "mga" > (II) Loading /usr/X11R6/lib/modules-dri-trunk/drivers/mga_drv.o > (II) Module mga: vendor="The XFree86 Project" > compiled for 4.3.99.12, module version = 1.1.1 > Module class: XFree86 Video Driver > ABI class: XFree86 Video Driver, version 0.7 > > >From /var/log/XFree86.1.log: > (II) LoadModule: "fbdev" > (II) Loading /usr/X11R6/lib/modules-dri-trunk/drivers/fbdev_drv.o > (II) Module fbdev: vendor="The XFree86 Project" > compiled for 4.3.0, module version = 0.1.0 > ABI class: XFree86 Video Driver, version 0.6 > > >From /etc/X11/XF86Config-4 (accelerated) > Section "Device" > Identifier "Matrox G550" > Driver "mga" > BusID "PCI:01:00:0" > Option "UseFBDev" "true" without "UseFBDev here i get the "mga" screen of both fb's and if i run matroxset after "mga" is started ," mga" goes blank or distored, if i start the "fb" i get lock up with "UseFBDev activated everything works, running matroxset doesn't affect "mga" (there might be short blanking but i couldn't see as i used the switch with only one monitor ) starting "fb" works OK > Option "HWcursor" "off" #avoid cursor corruption > Option "AGPMode" "2" #Faster 3D... > Option "DRIReinit" #Possibly several servers with > DRI > EndSection > > The last option because someone on the net got DRI working on two > matrox cards, (PCI+AGP) but only one at a time, unfortunately. > > >From /etc/X11/xf86config-4 (fbdev) > Section "Device" > Identifier "Matrox G550" > Driver "fbdev" > # BusID "PCI:01:00:1" > Option "UseFBDev" "true" > Option "fbdev" "/dev/fb/1" > > Option "HWcursor" "off" #avoid cursor corruption > > EndSection > > Using BusID here doesn't work. The two files are otherwise > identical except that they specify different mice. So, in a recap :-) (for the howto ) 1.) don't use matrox's closed source driver (mga_hall_drv) it doesn't support linux-2.6 && the new FB API do use the original XFree driver 2.) do activate Option "useFBDev" "true" for the accelerated head (? does this option affect "fbdev" unaccelerated head ? ) 3.) get matroxset, build it and install it install also the swapped script from the tarball 4.) convince xdm/kdm/gdm to run swapped at every X server start/restart for xdm/kdm Xsetup ?for gdm ? wrapper? is there smth like Xsetup used by gdm ? best, svetljo -- NEU FÜR ALLE - GMX MediaCenter - für Fotos, Musik, Dateien... Fotoalbum, File Sharing, MMS, Multimedia-Gruß, GMX FotoService Jetzt kostenlos anmelden unter http://www.gmx.net +++ GMX - die erste Adresse für Mail, Message, More! +++ |