Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

In windows I can change screen orientation by "Ctrl + Alt + Arrow" as Arrow can be up, left, down or right.

What is the shortcut on Ubuntu? thanks!

share|improve this question

marked as duplicate by Fabby, Eric Carvalho, Mitch Feb 12 '15 at 17:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 1 down vote accepted

There doesn't seem to be a default keyboard shortcut for this, but you could easily define one yourself. The commands for rotating the screen are:

xrandr --rotate left
xrandr --rotate normal
xrandr --rotate right

You should be able to define your own shortcuts in the "Keyboard" application (Shortcuts tab), as explained here: How can I rotate my display in the most easy way?. If this works for you, that's great! However, I wasn't able to make it work this way.

As an alternative, you may want to delete the functions that are assigned to the keyboard combinations originally (they should be in the "Windows" section of the previous tab). After that, install a small program called "xbindkeys" to assign these keys.

sudo apt-get install xbindkeys

Create a configuration file:

gedit .xbindkeysrc

and enter this inside the config file

"xrandr --rotate left"
Control+Alt + Left
"xrandr --rotate right"
Control+Alt + Right
"xrandr --rotate normal"
Control+Alt + Up

Hope this works out for you. You can find more info on xbindkeys online!

share|improve this answer

@Dionos's answer is good. On 13.10, I found that the correct commands to rotate are:

xrandr -o left
xrandr -o right
xrandr -o normal
share|improve this answer
Tried for "xrandr program version 1.3.5; Server reports RandR version 1.4" on Ubuntu 12.04. Only xrandr -o normal|left|right works. – dacongy Apr 25 '14 at 0:09

Not the answer you're looking for? Browse other questions tagged or ask your own question.