Configuring a Multi-Monitor xorg.conf
From Ben's Writing
I have two Dell flat panels and two GeForce 6200 PCI-E cards. The default configuration under Ubuntu is to use only one of the two monitors. The following configuration file will use both cards and both monitors, as well as share the desktop between them (that is, I use the Xinerama X11 extension).
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf(5) manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Files"
Fontpath "/usr/share/fonts/X11/misc"
Fontpath "/usr/share/fonts/X11/cyrillic"
Fontpath "/usr/share/fonts/X11/100dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/75dpi/:unscaled"
Fontpath "/usr/share/fonts/X11/Type1"
Fontpath "/usr/share/fonts/X11/100dpi"
Fontpath "/usr/share/fonts/X11/75dpi"
# path to defoma fonts
Fontpath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection
Section "Module"
Load "i2c"
Load "bitmap"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "vbe"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "True"
EndSection
Section "Device"
Identifier "GeForce0"
Driver "nvidia"
Busid "PCI:5:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Option "UseEvents" "True"
EndSection
Section "Device"
Identifier "GeForce1"
Driver "nvidia"
Busid "PCI:4:0:0"
Option "AddARGBVisuals" "True"
Option "AddARGBGLXVisuals" "True"
Option "NoLogo" "True"
Option "UseEvents" "True"
EndSection
Section "Extensions"
Option "Composite" "enable"
EndSection
Section "Monitor"
Identifier "Dell0"
Option "DPMS"
Horizsync 30.0-81.0
Vertrefresh 56.0-76.0
EndSection
Section "Monitor"
Identifier "Dell1"
Option "DPMS"
Horizsync 30.0-81.0
Vertrefresh 56.0-76.0
EndSection
Section "Screen"
Identifier "Screen0"
Device "GeForce0"
Monitor "Dell0"
Defaultdepth 24
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768"
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "GeForce1"
Monitor "Dell1"
Defaultdepth 24
SubSection "Display"
Depth 16
Modes "1280x1024" "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
Screen 1 "Screen1" rightof "Screen0"
Inputdevice "Keyboard0"
Inputdevice "Mouse0"
Option "Xinerama"
EndSection
Section "DRI"
Mode 0666
EndSection
