You've got exactly the right idea, though renaming the 'Serverlayout' section is your choice, it's optional.
You want to add a second Device section, called videocard1. Note that with more than one device defined, you will need to specify the BusID for each device. This is the location on the PCI Bus where the device resides, and can be determined using 'lspci' in a root console (note that's L S P C I
). The BusID line looks like:
You want a Monitor section, for EACH monitor. I see you are missing a default monitor section, which probably contributed to your weirdness when plugging in the other monitor. Basically they look like this:
Section "Monitor" # IBM-1 Monitor
HorizSync 30.0 - 86.0
VertRefresh 50.0 - 160.0
You will now have several options as to how you will layout the two monitors. You can use Twinview, or Xinerams, or possible neither, though I have always used one of these options. Here's a sample of my Screen section:
Monitor "KDS0" #& IBM0
Option "RenderAccel" "On"
Option "HWcursor" "On"
Option "DamageEvents" "True"
Option "ConnectedMonitor" "CRT-0,CRT-1"
Option "twinVieworientation" "CRT-1 Rightof CRT-0"
Option "metamodes" "CRT-0:1600x1200,CRT-1:1280x1024 @ 1600x1200"
The above causes two CRT's to make up 'Screen0' in a Twinview configuration. All options you see here can be learned about in the xorg.conf man page, and the nVidia driver README documentation, which if you don't have, you should get-- it's great. Read about Twinview and Xinerama, and see which one, if either, you plan to use. Also, as you are still using the 'nv' driver, have you considered getting the 'real' driver from nVidia.com ?
Using Xinerama, I always had each monitor defined as a second 'Screen' in which case you will want to add it to your serverlayout section, like:
Section "ServerLayout" # KDS0 & IBM0, IBM1
Screen 0 "Screen0" 0 0
#Screen 2 "Screen2" 3200 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Note that mine is commented out-- I'm not using it in this layout. If you DO make a second Screen section, you will want to implement this.
So there, that's the **basic** idea of what you're looking at.. Make sure to substitute YOUR OWN horizontal and vertical rates for your monitors. Chech the manuals or look up the monitors on Google for the tech-specs.
If you run into problems, or can't figure something out, come on back