How to rotate the display on Ubuntu

Recently I was using a monitor to review code and I could make the most of it seeing it in vertical way, so in order to rotate the screen (equivalent to CTRL + ALT + ARROW on Windows) the command is xrand

First detect in which port your monitor is plugged into. To see what you currently have, type:

xrandr -q

The result will be something like this


In that case my PC has various outputs but the one in use (other than the main display its DP2) and thats the one I want to rotate, so just type the following command

xrandr --output DP2 --rotate left

And when you want to restore it just use the same command but instead of left use normal

The rotate options you can use are left, right, inverted, normal


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s