Matrox Millenium G450 DualHead on Ubuntu

I’ve managed to obtain two working profiles for dual monitors on the G450 on Ubuntu Edgy Eft 6.10 i386 32-bit SMP.

  • Xinerama with Xorg free open-source drivers
  • MergedFB with the latest ‘unoffical’ Matrox partially-free drivers

Xinerama
Using the Xorg open-source (no proprietary Matrox binary mga_hal_drv.so) and Xinerama gives me two 1280×1024 screens.

Unfortunately this configuration cannot take advantage of hardware acceleration so games, applications like Google Earth, and DVD playback are painfully slow.

Code:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
# This configuration is customised for a Matrox Millenium G450 DualHead and Xinerama mode
#
# *** In order for this accelerated AGP4x to work, the ServerFlag ignoreABI
# *** must be added. If it isn't read and honoured in this file, add it to /etc/gdm.conf
# *** like this (find this section and add the -ignoreABI flag to the command):
# 	[server-Standard]
# 	command=/usr/X11R6/bin/X -ignoreABI -br -audit 0 

Section "ServerFlags"
Option "IgnoreABI" "True"
EndSection

Section "Files"
	FontPath	"/usr/share/X11/fonts/misc"
	FontPath	"/usr/share/X11/fonts/cyrillic"
	FontPath	"/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/Type1"
	FontPath	"/usr/share/X11/fonts/100dpi"
	FontPath	"/usr/share/X11/fonts/75dpi"
	FontPath	"/usr/share/fonts/X11/misc"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"gb"
	Option		"XkbOptions"	"lv3:ralt_switch"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"0 Matrox Millenium G450 DualHead"
	Driver		"mga"
	BusID		"PCI:1:5:0"
	Screen		0
	Option		"DDCMode"		"True"
	Option 		"AGPMode" 		"4"
EndSection

Section "Device"
	Identifier	"1 Matrox Millenium G450 DualHead"
	Driver		"mga"
	BusID		"PCI:1:5:0"
	Screen		1
	Option		"DDCMode"		"True"
	Option 		"AGPMode" 		"4"

EndSection

Section "Monitor"
	Identifier	"XIOD 19 LCD"
	Option		"DPMS"
	HorizSync	30-65
	VertRefresh	50-75
EndSection

Section "Monitor"
	Identifier	"XIOD 17 LCD"
	Option		"DPMS"
	HorizSync	30-65
	VertRefresh	50-75
EndSection

Section "Screen"
	Identifier	"Primary Screen"
	Device		"0 Matrox Millenium G450 DualHead"
	Monitor		"XIOD 19 LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "Screen"
	Identifier	"Secondary Screen"
	Device		"1 Matrox Millenium G450 DualHead"
	Monitor		"XIOD 17 LCD"
	DefaultDepth	24
	SubSection "Display"
		Depth		16
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Xinerama Layout"
	Screen		0 "Primary Screen"
	Screen		1 "Secondary Screen" RightOf "Primary Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
	Option		"Xinerama" "True"
EndSection

Section "DRI"
	Mode	0666
EndSection

MergedFB
Using the ‘unofficial’ Matrox drivers compiled and maintained by tuxx-home.at at Unofficial Matrox Technical Support Forum, I installed the 4.4.2 32-bit drivers.

This configuration has the advantage of being hardware accelerated, but if you want to use Google Earth you’ll need to reduce the colour depth to 16 (DefaultDepth 16)

Code:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
# This configuration is customised for a Matrox Millenium G450 DualHead and MergedFB mode
#
# *** In order for this accelerated AGP4x and MGA HAL to work, the ServerFlag ignoreABI
# *** must be added. If it isn't read and honoured in this file, add it to /etc/gdm.conf
# *** like this (find this section and add the -ignoreABI flag to the command):
# 	[server-Standard]
# 	command=/usr/X11R6/bin/X -ignoreABI -br -audit 0 

Section "ServerFlags"
Option "IgnoreABI" "True"
EndSection

Section "Files"
	FontPath	"/usr/share/X11/fonts/misc"
	FontPath	"/usr/share/X11/fonts/cyrillic"
	FontPath	"/usr/share/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/share/X11/fonts/Type1"
	FontPath	"/usr/share/X11/fonts/100dpi"
	FontPath	"/usr/share/X11/fonts/75dpi"
	FontPath	"/usr/share/fonts/X11/misc"
	# path to defoma fonts
	FontPath	"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"ddc"
	Load	"dri"
	Load	"extmod"
	Load	"freetype"
	Load	"glx"
	Load	"int10"
	Load	"type1"
	Load	"vbe"
EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"kbd"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xorg"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"gb"
	Option		"XkbOptions"	"lv3:ralt_switch"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ExplorerPS/2"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"Matrox Millenium G450 DualHead"
	Driver		"mga"
	BusID		"PCI:1:5:0"
	Option 		"AGPMode" 		"4"
	Option 		"HWcursor" 		"True"
EndSection

Section "Monitor"
	Identifier	"Dual Monitors"
	Option		"DPMS"
	HorizSync	30-65
	VertRefresh	50-75
EndSection

Section "Screen"
	Identifier	"Display Merged"
	Device		"Matrox Millenium G450 DualHead"
	Monitor		"Dual Monitors"
	DefaultDepth	24
	Option 		"MergedFB" 		"true" 		#Enable MergedFB function
	Option 		"MetaModes" 		"1280x1024-1280x1024" #Monitor Resolutions for Primary-Secondary monitors
	Option 		"Monitor2Hsync"		"30-65" 	#Horizontal Sync of the Monitor (check your monitor's manual for correct values)
	Option 		"Monitor2VRefresh"	"50-75" 	#Vertical Refresh rate of the Monitor (check your monitor's manual for correct values)
	Option 		"Monitor2Position"	"RightOf"
	SubSection "Display"
		Virtual		2560 1024	# Set the combined horizontal and vertical resolution
		Depth		24
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
	SubSection "Display"
		Virtual		2560 1024	# Set the combined horizontal and vertical resolution
		Depth		16
		Modes		"1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Display Merged"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection

__________________

Related Posts

Tags: , , ,

Leave a Reply

You must be logged in to post a comment.