============================================
$gksu nvidia-settings
============================================
Reference1:
http://viktorstanchev.com/blog/ubuntu-11.04-rotate-only-one-of-two-monitors
Refrence2:
http://www.libre-software.net/ubuntu-linux-external-monitor-nvidia-rotate
Rotate / pivot / tilt your screen
Set the display(s) you want to rotate to "Separate X screen" as described in part A. Then edit the xorg.conf file:
gksudo gedit /etc/X11/xorg.conf
Add the RandRRotation option somewhere in the "Screen" section to allow rotation:
Section "Screen"
...
Option "RandRRotation" "True"
....
...
Option "RandRRotation" "True"
....
Complete example:
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
Option "RandRRotation" "True"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "metamodes" "CRT: nvidia-auto-select +0+0"
Option "RandRRotation" "True"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Finally, restart your computer. You'll then be able to rotate your screen through the NVIDIA utility, or via the command line:
xrandr -o left
xrandr -o normal
xrandr -o normal
Use man xrandr for more details and options.