It's all in your xorg.conf or XF86Config file. Here is a copy of mine with the Files, Modules and Input sections omitted:
Code:
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "CRT 1" 0 0
Screen 1 "CRT 2" LeftOf "CRT 1"
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
EndSection
Section "Monitor"
Identifier "CRT1"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection
Section "Monitor"
Identifier "CRT2"
HorizSync 30.0 - 70.0
VertRefresh 50.0 - 160.0
Option "DPMS"
EndSection
Section "Device"
Identifier "GeForce 4 Ti4200 (1)"
Driver "nvidia"
BusID "PCI:1:00:0"
Screen 0
EndSection
Section "Device"
Identifier "GeForce 4 Ti4200 (2)"
Driver "nvidia"
BusID "PCI:1:00:0"
Screen 1
EndSection
Section "Screen"
Identifier "CRT 1"
Device "GeForce 4 Ti 4200 (1)"
Monitor "CRT1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
Section "Screen"
Identifier "CRT 2"
Device "GeForce 4 Ti 4200 (2)"
Monitor "CRT2"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubSection
EndSection
*NOTE: This will create 2 distinct X screens. You will not be able to drag applications to/from them, just your mouse. If you want one 'big' screen (ie, the way Windows does it by default) you will need to add
Option "Xinerama" "yes" to your ServerLayout section.
To change your resolutions, add the resolution to the front of the Modes line for the appropriate screen(s).
You should change the names of the devices and monitors to suit your configuration.
I should also mention that the
BusID part under section Device is required. You can find it out by typing 'lspci' in a console and using the ID from the output.
Eg.
camh@nixon:~$ lspci | grep VGA
0000:01:00.0 VGA compatible controller: nVidia Corporation NV25 [GeForce4 Ti 4200] (rev a2)
camh@nixon:~$
Just replace those 4 zero's with PCI, and the . with a semicolon to make PCI:01:00:0
After that, you should be good to go.