This is the 2nd part of my entry of xrandr. I have written a previous entry Using xrandr to change screen resolution and orientation
This blog entry essentially is to how how we can control monitor and projector.
Note 1: Firstly do a query on the connected port (ie projector)
# xrandr --query (You should be able to get your graphics output status whether it is VGA, HDMI etc)
Note 2: Setting the best resolution for the connected port (ie projector)
# xrandr --output VGA --auto
Note 3: Cloning mode for both internal monitor (DVI) and external projector (VGA)
# xrandr --output VGA --mode 1024x768 --same-as DVI --output DVI --mode 1024x768
Note 4: Switching Off the Video Projector and turn off the Internal Monitor
# xrandr --output VGA --off
# xrandr --output DVI --auto
Further Readings: