OS: Ubuntu 11.04 (Natty Narwhal)
Video Card: Intel Integrated Graphic Card
Video output: 1 DVI, 1 VGA
The system “Monitors” application let you set the disposition of the two monitors, which is left and which is right, but it doesn’t let you decide which is the master (or 0 and 1).
By default, the system set the VGA monitor as master but I want it to be the slave and configure the DVI monitor to be the primary.
Run xrandr to view how monitors are named and what are used:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| massimo@bebop:~$ xrandr
Screen 0: minimum 320 x 200, current 2560 x 1024, maximum 8192 x 8192
VGA1 connected 1280x1024+1280+0 (normal left inverted right x axis y axis) 338mm x 270mm
1280x1024 60.0*+ 75.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
HDMI1 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 337mm x 270mm
1280x1024 60.0*+ 75.0
1152x864 75.0
1024x768 75.1 70.1 60.0
832x624 74.6
800x600 72.2 75.0 60.3 56.2
640x480 72.8 75.0 66.7 60.0
720x400 70.1
DP1 disconnected (normal left inverted right x axis y axis) |
In my case, the DVI connection is identified as HDMI1.
Now shut off the VGA monitor
1
| xrandr --output VGA1 --off |
Shut off the DVI
1
| xrandr --output HDMI1 --off |
WARNING: doing this will disable both of your monitors!
Keep the terminal on top and write next command blindly.
Set the HDMI1 interface as primary
1
| xrandr --output HDMI1 --auto --primary |
Enable the secondary and put it to the right of the primary
1
| xrandr --output VGA1 --auto --right-of HDMI1 |
Enjoy 
SOURCE: ubuntuforums.org – [ubuntu] Changing master monitor in dual set-up