Last active
October 13, 2022 22:28
-
-
Save coltenkrauter/66a28f2c3ea211b453bf64fcc3bb414c to your computer and use it in GitHub Desktop.
Rotate HDMI output to change orientation of terminal in headless Ubuntu/Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rotate the current framebuffer | |
echo 1 | sudo tee /sys/class/graphics/fbcon/rotate | |
# rotate all framebuffers | |
echo 1 | sudo tee /sys/class/graphics/fbcon/rotate_all | |
# Permanantly rotate framebuffer for headless server | |
echo 'GRUB_CMDLINE_LINUX="fbcon=rotate:1"' | sudo tee /etc/default/grub | |
sudo update-grub | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment