ubuntu,

How to rotate screen position in Ubuntu through CLI

Jan 29, 2022 · 1 min read · Post a comment
How to rotate screen position in Ubuntu through CLI

Nowadays as technology develops more and more, laptops are becoming more sophisticated. Most of today’s laptops offer a finger-sensitive screens so you can manage to flip over the monitor and use it as a tablet. Using Ubuntu as an operating system will not offer the drivers for the screen graphics to auto-detect the screen rotate. So in this tutorial, I will show you how to rotate the screen through cli.

Prerequisites

  • Ubuntu
  • sudo access

Rotate Upside Down

This option is useful if you have flipped over the monitor, so you want to switch your screen upside down - rotated 180 degrees.

sudo xrandr -o inverted

Rotate Left

To rotate left, run:

sudo xrandr -o left

Rotate Right

To rotate right, run:

sudo xrandr -o right

Normal Position

To get back the normal working position, run:

sudo xrandr -o normal

Conclusion

The xrandr command is useful and should work for almost every Debian based distro. If it’s not installed you can run:

sudo apt-get update
sudo apt-get install x11-xserver-utils

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.