Ubuntu - X - Multiple monitors

x.conf
Section "Files"
        FontPath        "unix/:7100"                    # local font server
        # if the local font server has problems, we can fall back on these
        FontPath        "/usr/lib/X11/fonts/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/CID"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection
 
Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "record"
        Load    "type1"
        Load    "vbe"
EndSection
 
Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection
 
Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection
 
Section "Device"
        Identifier      "NVIDIA GeForce2 MX 400 head 1"
        Driver          "nvidia"
        BusID           "PCI:1:0:0"
        Screen          0 #For separate screen dual heads
 
# Everything below here added to enable 2nd monitor on the second head.
# Uncomment if you want to do what Xienarama does but with the Nvidia driver for
# only dual head card.
# Then take out the entrys for the second monitor,screen,device, and server sections below. 
#        Option          "TwinView"
#        Option          "SecondMonitorHorizSync" "28-80"
#        Option          "SecondMonitorVertRefresh" "43-76"
#        Option          "MetaModes" "1280x1024, 1280x1024"
#        Option          "TwinViewOrientation" "LeftOf"
 
EndSection
 
Section "Device"
        Identifier      "NVIDIA GeForce2 MX 400 head 2"
        Driver          "nvidia"
        BusID           "PCI:1:0:0"
        Screen          1 #For separate  dual heads
EndSection
 
Section "Device"
        Identifier      "NVIDIA GeForce4 4000"
        Driver          "nvidia"
        BusID           "PCI:2:1:0"
EndSection
 
Section "Monitor"
        Identifier      "Generic Monitor"
        Option          "DPMS"
        HorizSync       30-117
        VertRefresh     50-180
EndSection
 
Section "Monitor"
        Identifier      "Generic Monitor1"
        Option          "DPMS"
        HorizSync       31.5-80
        VertRefresh     56-75
EndSection
 
Section "Monitor"
        Identifier      "Generic Monitor2"
        Option          "DPMS"
        HorizSync       31.5-80
        VertRefresh     56-75
EndSection
 
Section "Screen"
        Device          "NVIDIA GeForce2 MX 400 head 1"
        Identifier      "Screen0"
        Monitor         "Generic Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
 
Section "Screen"
        Device          "NVIDIA GeForce2 MX 400 head 2"
        Identifier      "Screen1"
        Monitor         "Generic Monitor1"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
 
Section "Screen"
        Device          "NVIDIA GeForce4 4000"
        Identifier      "Screen2"
        Monitor         "Generic Monitor2"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "1024x768" "800x600" "640x480"
        EndSubSection
EndSection
 
Section "ServerLayout"
        Identifier      "Default Layout"
        Screen 0 "Screen0" 0 0
        Screen 1 "Screen1" LeftOf "Screen0"
        Screen 2 "Screen2" RightOf "Screen0"
        Option "Xinerama"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection
 
Section "DRI"
        Mode    0666
EndSection