I have a widescreen monitor that rotates. I'm trying to use it in 'landscape' mode (vertical). This is easy in the GUI.
How do I rotate my display when I am not running an X Server or when I am viewing a Virtual Console / Terminal.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityI have a widescreen monitor that rotates. I'm trying to use it in 'landscape' mode (vertical). This is easy in the GUI.
How do I rotate my display when I am not running an X Server or when I am viewing a Virtual Console / Terminal.
You can rotate your virtual framebuffers using fbcon. 0 through 3 to represent the various rotations:
0
- Normal rotation1
- Rotate clockwise2
- Rotate upside down3
- Rotate counter-clockwise These can be set from the command line by putting a value into the correct system file. Rotate the current framebuffer:
echo 1 | sudo tee /sys/class/graphics/fbcon/rotate
Rotate all virtual framebuffers:
echo 1 | sudo tee /sys/class/graphics/fbcon/rotate_all
If you want this to happen automatically when you start your system, you need to modify your boot loader configuration to give it the correct options. In /etc/default/grub
add fbcon=rotate:1
to the GRUB_CMDLINE_LINUX
line:
GRUB_CMDLINE_LINUX="fbcon=rotate:1"
(Don't forget to run sudo update-grub
after changing this file.)
Sources: Rotate Screen, not running X windows, Rotate console on startup (Debian)
You can only rotate your display with some kind of X server. A virtual console as well as framebuffer has no support for rotating.
But maybe you can run some small X window manager like awesome and a terminal in full-screen mode. In this case you would get the rotation feature and it still feels like a console.