I have an external monitor working on my MacbookPro7,1. I installed nvidia-current and nvidia-settings, and used that to make it work at first - but it usually needed two goes at applying the settings to make it stick, the first attempt would sometimes go black for a while. I also made it generate an xorg.conf file.
Then I installed disper and found that 'disper -S' run twice 5 seconds apart would reliably make it switch to the external display, and 'disper -s' would switch to the internal.
This is all from memory as I'm running OS X at the moment. I'll edit this with corrections if any, soon.
Update 1: Here's the content of /etc/X11/xorg.conf:
Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 280.13 (buildd@yellow) Fri Aug 5 12:31:28 UTC 2011
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Apple Color LCD"
HorizSync 30.0 - 75.0
VertRefresh 61.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 320M"
Option "RegistryDwords" "EnableBrightnessControl=1"
Option "NoLogo" "True"
EndSection
Section "Screen"
# Removed Option "metamodes" "DFP-1: nvidia-auto-select +0+0, DFP-0: nvidia-auto-select +0+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "metamodes" "DFP-0: nvidia-auto-select +0+0, DFP-1: NULL"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Update 2: Just noting that I installed nvidia-current and nvidia-settings from the Ubuntu repositories, not direct from Nvidia, and I used the 64-bit version of Ubuntu.
Bookmarks