stask --
Actually, I don't have an nVIDIA in my current laptop. I have the Intel 915GM graphics card. That being said, the stuff in your xorg.conf that gives you the dual display doesn't have anything specific to do with your card. Here are the relevant portions of my xorg.conf.
First, I define the two monitors (one of which happens to be my Dell LCD screen on my laptop)
Code:
Section "Monitor"
Identifier "Dell LCD"
HorizSync 31.5 - 48.5
VertRefresh 40.0 - 70.0
Option "DPMS"
UseModes "Modes1"
EndSection
Section "Modes"
Identifier "Modes1"
Modeline "1280x1024" 75.13 1280 1336 1472 1664 1024 1025 1028 1050 -hsync +vsync
Modeline "1400x1050" 84.76 1400 1472 1616 1832 1050 1051 1054 1076 -hsync +vsync
EndSection
Section "Monitor"
Identifier "External Monitor"
HorizSync 31-64
VertRefresh 56-75
Option "DPMS"
EndSection
Next, I define my graphics card. Note, I only have one graphics card, but I am defining it first if I am only using my laptop screen (with all 128M of video memory) or second if I'm going to split the memory between two screens. You may need to do some research on the appropriate "Option" values for your nVIDIA card.
Code:
Section "Device"
Identifier "Intel i915GM"
Driver "i810"
VideoRam 131070
BusID "PCI:0:2:0"
EndSection
Section "Device"
Identifier "Intel0"
Driver "i810"
VideoRAM 65535
BusID "PCI:0:2:0"
Option "MonitorLayout" "CRT,LFP"
Option "VBERestore" "false"
Option "DevicePresence" "false"
Option "DisplayInfo" "false"
Screen 0
EndSection
Section "Device"
Identifier "Intel1"
Driver "i810"
VideoRAM 65535
BusID "PCI:0:2:0"
Option "VBERestore" "false"
Option "DevicePresence" "false"
Screen 1
EndSection
Next, I define the different screens (resolutions and the like). I have defined an external monitor running at 1280x1024 and one for 1024x768 (for a projector).
Code:
Section "Screen"
Identifier "LCD"
Device "Intel0"
Monitor "Dell LCD"
DefaultDepth 24
Subsection "Display"
Depth 16
Modes "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
EndSection
Section "Screen"
Identifier "VGA"
Device "Intel1"
Monitor "External Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x1024" "1024x768" "800x600"
EndSubSection
EndSection
Section "Screen"
Identifier "Projector"
Device "Intel1"
Monitor "External Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubSection
EndSection
Finally, I create several ServerLayouts which I can use to launch the various scenarios.
Code:
Section "ServerLayout"
Identifier "Normal"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "ServerLayout"
Identifier "Dual"
Screen 0 "LCD"
Screen 1 "VGA" LeftOf "LCD"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Section "ServerLayout"
Identifier "Projector"
Screen 0 "LCD"
Screen 1 "Projector" RightOf "LCD"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Using "startx" will default to the first ServerLayout section, thus "Normal". If I want one of the others, I do ...
$startx -- -layout Dual