There are plenty of threads around on google (or possibly here) if you search for them. Search for Xinerama or Twinview. I'll post my xorg.conf and that should give some insight.
This link is from Nvidia's Website:
Appendix G. Configuring Twinview
This is good even though it's gentoo specific:
HOWTO Dual Monitors
Code:
## Multiple Server Layouts
## Dual Monitor w/ Xinerama (Twinview Disabled)
## Dual Monitor w/ Twinview (NVIDIA's Xinerama)
## Single Monitor
#Section "ServerLayout"
# Identifier "DMXine"
# Screen 0 "Screen0" 0 0
# Screen 1 "Screen1" LeftOf "Screen0"
# InputDevice "Mouse0" "CorePointer"
# InputDevice "Keyboard0" "CoreKeyboard"
# Option "StandbyTime" "30"
# Option "SuspendTime" "0"
# Option "OffTime" "60"
# Option "Xinerama" "1"
#EndSection
Section "ServerLayout"
Identifier "DMTwinview"
Screen 0 "ScreenTwin" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "StandbyTime" "30"
Option "SuspendTime" "0"
Option "OffTime" "60"
Option "Xinerama" "0"
EndSection
Section "ServerLayout"
Identifier "SM"
Screen 0 "ScreenSM" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "StandbyTime" "30"
Option "SuspendTime" "0"
Option "OffTime" "60"
EndSection
## End Server Layouts
Section "Files"
# RgbPath "/usr/lib/X11/rgb"
# ModulePath "/usr/lib/modules"
FontPath "/usr/share/fonts/misc:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/corefonts"
FontPath "/usr/share/fonts/freefonts"
FontPath "/usr/share/fonts/sharefonts"
FontPath "/usr/share/fonts/terminus"
FontPath "/usr/share/fonts/ttf-bitstream-vera"
FontPath "/usr/share/fonts/unifont"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/artwiz"
FontPath "/usr/share/fonts/util"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/dejavu"
EndSection
Section "Module"
Load "extmod"
Load "dbe"
Load "record"
Load "xtrap"
Load "glx"
Load "type1"
Load "xtt"
Load "freetype"
Load "nvidia"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "ExplorerPS/2"
Option "Device" "/dev/input/mice"
Option "Buttons" "10"
Option "ZAxisMapping" "9 10"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "NEC / Mitsubishi"
ModelName "DiamondPoint V50LCD"
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
Option "DPMS" "on"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "DELL"
ModelName "DELL 1704FPT"
HorizSync 30.0 - 81.0
VertRefresh 56.0 - 76.0
Option "DPMS" "on"
EndSection
## Single Monitor Configuration
Section "Device"
Option "HWcursor" "True"
# Option "FlatPanel" "True"
Option "NvAGP" "1"
Option "NoLogo" "true"
Identifier "DeviceSM"
Driver "nvidia"
VendorName "BFG Technologies"
BoardName "6800OC"
BusID "PCI:2:0:0"
Option "UseDisplayDevice" "DFP"
EndSection
## End Single Monitor Configuration
## Twinview Configuration
Section "Device"
Option "HWcursor" "True"
Option "FlatPanel" "True"
Option "NvAGP" "1"
Option "NoLogo" "true"
Identifier "DeviceTwin"
Option "UseEdidDpi" "FALSE"
Option "DPI" "86 x 86"
Driver "nvidia"
Option "RenderAccel" "True"
Option "AllowGLXWithComposite" "True"
Option "BackingStore" "True"
VendorName "BFG Technologies"
BoardName "6800OC"
BusID "PCI:2:0:0"
Option "Twinview"
Option "MetaModes" "DFP-0: 1280x1024, CRT-1: 1024x768@1024x1024; DFP-0: 1280x1024, CRT-1: NULL;"
Option "TwinViewOrientation" "CRT-1 RightOf DFP-0"
Option "UseDisplayDevice" "DFP-0,CRT-1"
Option "HorizSync" "CRT-1: 30-81; DFP-0: 30-81"
Option "VertRefresh" "CRT-1: 56-76; DFP-0: 56-76"
EndSection
## End Twinview Configuration
## Xinerama Configuration
Section "Device"
Option "HWcursor" "True"
# Option "FlatPanel" "True"
Option "NvAGP" "1"
Option "NoLogo" "true"
Identifier "Card0"
Driver "nvidia"
VendorName "BFG Technologies"
BoardName "6800OC"
BusID "PCI:2:0:0"
Option "UseDisplayDevice" "CRT-1"
Screen 0
EndSection
Section "Device"
Option "HWcursor" "True"
#Option "FlatPanel" "True"
Option "NvAGP" "1"
Option "NoLogo" "true"
Identifier "Card1"
Driver "nvidia"
VendorName "BFG Technologies"
BoardName "6800OC"
BusID "PCI:2:0:0"
Option "UseDisplayDevice" "DFP-0"
Screen 1
EndSection
## End Xinerama Configuration
## Various Screens based on Server Layouts Above
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
Virtual 1024 1024
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "ScreenSM"
Device "DeviceSM"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "ScreenTwin"
Device "DeviceTwin"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
#Section "Extensions"
# Option "Composite" "true"
#EndSection