Rotating Display in Ubuntu

Query your list of devices:

xrandr -q

now set the desired orientation like this:

xrandr --output LVDS1 --rotate right
xrandr --output LVDS1 --rotate left
xrandr --output LVDS1 --rotate inverted
xrandr --output LVDS1 --rotate normal

Replace LVDS1 with the desired screen to rotate.