Changing display settings in Ubuntu.
Note that Ubuntu in most cases will automatically detect that you insert / remove a screen.
The Ubuntu Display settings way
Also known as nouveau
Search for display in Dash Home. More abaout Ubuntu_Dash_Home
In Displays you can among other things detect monitors connected to your computer, select the extended / clone mode, resolution, rotation and select the order in which the monitors should be in. You can extend desktop to span two monitors as well.
Extending the desktop which makes it possible to have two screens.
Below is a small guide of things you can try if your noveau settings for Ubuntu is not functioning properly.
Ubuntu has a configuration tool for the screen called "Displays".
To open this, press the Ubuntu icon. Enter "fill displays" to the search field and press Enter to access it.
This tool makes it possible to detect monitor that are attached to the computer. You can also choose between clone or extended mode and set the resolution, rotation and order of the screens.
When you press "Apply", an xml.file with path fil ~/.config/monitors.xml will be written.
This file contains the settings that you choosed. The file can altered manually using a text editor if you need to change the settings.
Note: Ubuntu will in most cases be able to detect when you plug in/plug out a monitor.
The xorg.conf way
If you for some reason are not able to use the noveau drivers, you can install another tool to configure the screen settings.
This is especially applicable for computers with Nvidia graphic cards.
To open this tool, press the Ubuntu icon. Enter "nvidia" into the search field. Press enter to access the application.
The Nvidia X server configuration tool will then appear. This tool lets you detect when monitors are connected to the computer. Further , you can choose between extended and clone mode and the order of the screens.