Originally Posted by packermann
When the external monitor is connected, you can set it in nvidia-settings as primary. When you boot without it connected, the internal one will get primary. Regarding manual swiching at disconnection take a look at disper (just search this forum), it will do exactly what you want.
Is the setting in the attached immage correct?
Should I save the configuration to an X file?