Wednesday, November 6, 2024

Rotating screen in Linux Desktop

Sometimes we need to capture an output of a command that is quite long, it could not fit in one screenshot. Rotating screen is one of the way to make the screen estate longer, but in linux, the method is not as straight forward as in our smartphones.


To do this, one of the method is using "xrandr" command. 

The usage is fairly simple, just use xrandr with "-o" option, and which way we want to rotate the screen to.

For example, to rotate the screen left, we use:
$ xrandr -o left

To rotate the screen to right:
$ xrandr -o right

To invert the screen:
$ xrandr -o inverted

To rotate the screen back to its normal position:
$ xrandr -o normal

Do not worry though, only the screen is rotated, your keyboard and mouse still work the same.

No comments: