Rotating screen in Ubuntu and Linux Mint

Just as in Windows you have the option to rotate your screen into any direction in Linux, too. While in Windows you only need to press some keys, a key combination is not configured in Linux by default. But as you may have figured out, there are some terminal commands that let you do the exact same thing (you can configure shortcuts for these manually later on).

First, you need to find out how the screen that you want to rotate is labeled - to do that, use the following command:

xrandr -q

Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1366x768 60.1*+
1360x768 59.8 60.0
1024x768 60.0
800x600 60.3 56.2
640x480 59.9
VGA2 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)

You will get a list of connected monitors - I have only one here which is labeled LVDS1, it says connected next to the name. Determine the one that you want to rotate here. Next, we want to turn it around. For that, we use one of the following commands:

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

Replace LVDS1 with your monitor label in the above commands and you'll be able to rotate the screen to your likings! This is especially helpful if you need to go through documents and can turn your physical monitor around.

facebooktwittergoogle_plusredditlinkedinmail

5 thoughts on “Rotating screen in Ubuntu and Linux Mint”

  1. aleksey says:

    thank you. but i have one correction.
    instead of –output & –rotate use –output & –rotate (two hyphens).

  2. Me says:

    I’ve tried this, but it dosen’t work for me.

  3. Bullwhip says:

    I found “xrandr -o normal” to be the better choice for me

  4. Jon says:

    Simple and easy!

    Thank you :-)

  5. Erik Wannee says:

    I did
    xrandr -o left
    and it did fine.

    But next time that I start my computer, it is again in landscape mode. So now I must rotate the monitor every time to start the terminal mode, enter this instruction and rotate the screen back into vertical position.
    How can I set the preferred rotation permanenty?

    Thanks, Erik

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>