skryking
17 Jul 2006, 4:33pm
Thought I'd post this interesting X config file that uses both twinview and Xinerama together to get a 4 monitor system working. This uses 2 nvidia cards with 2 heads each. The reason for doing it this way was 2 fold. Firstly twinview only works on a single card as far as I can tell. Secondly you can setup Xinerama to use 4 monitors, but there is some sort of memory leak in the xinerama protocol that really slows down the window interaction when you use more than 2 monitors. So I setup two twinviews and linked them together with xinerama.
here's the important parts of the config file.
Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen0" 0 0
Screen "Screen2" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Dell 1901FP (Analog)"
DisplaySize 760 310
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
Option "dpms"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "CM812"
DisplaySize 760 310
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0-1"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
Option "TwinView"
Option "TwinViewOrientation" "RightOf"
Option "ConnectedMonitor" "CRT-0,CRT-1"
Option "SecondMonitorHorizSync" "30-80"
Option "SecondMonitorVertRefresh" "56-76"
Option "MetaModes" "1280x1024, 1280x1024"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "Videocard1-1"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
Option "TwinView"
Option "TwinViewOrientation" "RightOf"
Option "ConnectedMonitor" "CRT-0,CRT-1"
Option "SecondMonitorHorizSync" "30-80"
Option "SecondMonitorVertRefresh" "56-76"
Option "MetaModes" "1280x1024, 1280x1024"
BusID "PCI:4:1:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0-1"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Videocard1-1"
Monitor "Monitor2"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Skryking
here's the important parts of the config file.
Section "ServerLayout"
Identifier "Default Layout"
Screen "Screen0" 0 0
Screen "Screen2" RightOf "Screen0"
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "Xinerama"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
Load "dri"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Dell 1901FP (Analog)"
DisplaySize 760 310
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
Option "dpms"
EndSection
Section "Monitor"
Identifier "Monitor2"
VendorName "Monitor Vendor"
ModelName "CM812"
DisplaySize 760 310
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0-1"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
Option "TwinView"
Option "TwinViewOrientation" "RightOf"
Option "ConnectedMonitor" "CRT-0,CRT-1"
Option "SecondMonitorHorizSync" "30-80"
Option "SecondMonitorVertRefresh" "56-76"
Option "MetaModes" "1280x1024, 1280x1024"
BusID "PCI:1:0:0"
EndSection
Section "Device"
Identifier "Videocard1-1"
Driver "nvidia"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
Option "TwinView"
Option "TwinViewOrientation" "RightOf"
Option "ConnectedMonitor" "CRT-0,CRT-1"
Option "SecondMonitorHorizSync" "30-80"
Option "SecondMonitorVertRefresh" "56-76"
Option "MetaModes" "1280x1024, 1280x1024"
BusID "PCI:4:1:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0-1"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen2"
Device "Videocard1-1"
Monitor "Monitor2"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1280x960" "1152x864" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Skryking