Skip to content

Instantly share code, notes, and snippets.

@coltenkrauter
Last active October 13, 2022 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coltenkrauter/66a28f2c3ea211b453bf64fcc3bb414c to your computer and use it in GitHub Desktop.
Save coltenkrauter/66a28f2c3ea211b453bf64fcc3bb414c to your computer and use it in GitHub Desktop.
Rotate HDMI output to change orientation of terminal in headless Ubuntu/Linux
# 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