From owner-freebsd-questions Mon May 27 16:13:26 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mallard.duc.auburn.edu (mallard2.duc.auburn.edu [131.204.2.23]) by hub.freebsd.org (Postfix) with ESMTP id 2E1E137B40B for ; Mon, 27 May 2002 16:13:11 -0700 (PDT) Received: from webmail.duc.auburn.edu (webmail.duc.auburn.edu [131.204.2.116]) by mallard.duc.auburn.edu (8.9.3/8.9.3) with ESMTP id SAA26915 for ; Mon, 27 May 2002 18:13:10 -0500 (CDT) X-WebMail-UserID: bishoju Date: Mon, 27 May 2002 18:13:11 -0500 From: bishoju To: questions X-EXP32-SerialNo: 00002770 Subject: RE: Matrox G400 Xinerama HOWTO Message-ID: <3CF2DC98@webmail.duc.auburn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.62 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Matrox G400 with Xinerama on FreeBSD 4.5 with XFree86 4.2.0_2 By Jud Bishop I am a FreeBSD newbie so bear with me if the way I did this is not totally correct in the eyes of you who are more experienced FreeBSD users. This is based on an old readme, readme-1_3_0.txt from a download of Matrox drivers I did back in September 2001. It was written for Linux but works on FreeBSD. G400 and G200 users *must* use mga_hal_drv.o in order to get Xinerama support. G450 and maybe G550 users do not need the hardware abstraction layer. First go to the Matrox website and download the latest drivers. http://www.matrox.com/mga/support/drivers/files/lnx_200.cfm 1. cd /usr/ports/x11-servers/XFree86-4-Server/ 2. make install Now wait until all the sources are downloaded and unzipped and untarred, and you see the message about the Matrox drivers being tested on a G400. 3. c Meaning press c at the same time to stop execution. 4. cd /usr/ports/x11-servers/XFree86-4-Server/work/xc/programs/Xserver/hw/xfree86/dr ivers 5. mv mga mga_old Now copy the downloaded source, mgadrivers-2.0-src.tgz to the drivers directory. 6. cp /home/username/mgadrivers-2.0-src.tgz . 7. tar -xvzf mgadrivers-2.0-src.tgz 8. mv mgadrivers-2.0-src mga 9. cd mga/4.2.0/drivers/src 10. mv * ../../../ Make sure the source is in the top mga directory. Next we are going to set up the build environment to use the HAL. 11. cd /usr/ports/x11-servers/XFree86-4-Server/work/xc/config/cf 12. cp host.def host.def_old 13. Edit host.def changing HaveMatroxHal from NO to YES and adding UseMatroxHal. #define HaveMatroxHal YES #define UseMatroxHal YES 14. cd /usr/ports/x11-servers/XFree86-4-Server/ 15. make install Below is a copy of my /etc/X11/XF86Config, use at your own risk, you can burn up a monitor running it at the wrong settings. # XF86Config -- G450 dual head/multi display Section "Module" Load "dbe" # Double buffer extension SubSection "extmod" Option "omit xfree86-dga" # don't initialise the DGA extension EndSubSection Load "type1" Load "freetype" EndSection Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "/usr/X11R6/lib/X11/fonts/local/" FontPath "/usr/X11R6/lib/X11/fonts/misc/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled" FontPath "/usr/X11R6/lib/X11/fonts/Type1/" FontPath "/usr/X11R6/lib/X11/fonts/Speedo/" FontPath "/usr/X11R6/lib/X11/fonts/75dpi/" FontPath "/usr/X11R6/lib/X11/fonts/100dpi/" EndSection Section "ServerFlags" Option "AllowMouseOpenFail" Option "Xinerama" EndSection Section "InputDevice" Identifier "Keyboard1" Driver "Keyboard" Option "AutoRepeat" "500 30" Option "XkbRules" "xfree86" Option "XkbModel" "pc104" Option "XkbLayout" "us" EndSection Section "InputDevice" Identifier "Mouse1" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/mouse" EndSection Section "Monitor" Identifier "Display 1" HorizSync 30 - 80 VertRefresh 50-160 EndSection Section "Monitor" Identifier "Display 2" HorizSync 30 - 80 VertRefresh 50-160 EndSection #Section "Device" # Identifier "Standard VGA" # VendorName "Unknown" # BoardName "Unknown" # Driver "vga" #EndSection Section "Device" Identifier "G450_1" Driver "mga" BusID "PCI:1:0:0" Screen 0 EndSection Section "Device" Identifier "G450_2" Driver "mga" BusID "PCI:1:0:0" Screen 1 Option "PCI Retry" EndSection Section "Screen" Identifier "Display 1" Device "G450_1" Monitor "Display 1" DefaultDepth 24 Subsection "Display" Depth 8 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection Subsection "Display" Depth 16 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection Subsection "Display" Depth 24 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection Subsection "Display" Depth 32 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection EndSection Section "Screen" Identifier "Display 2" Device "G450_2" Monitor "Display 2" DefaultDepth 24 Subsection "Display" Depth 8 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection Subsection "Display" Depth 16 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection Subsection "Display" Depth 24 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection Subsection "Display" Depth 32 Modes "1280x1024" "1024x768" "800x600" ViewPort 0 0 EndSubsection EndSection # Any number of ServerLayout sections may be present. Each describes # the way multiple screens are organised. A specific ServerLayout # section may be specified from the X server command line with the # "-layout" option. In the absence of this, the first section is used. # When now ServerLayout section is present, the first Screen section # is used alone. Section "ServerLayout" Identifier "Simple Layout" Screen "Display 1" LeftOf "Display 2" Screen "Display 2" 0 0 InputDevice "Mouse1" "CorePointer" InputDevice "Keyboard1" "CoreKeyboard" EndSection To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message