I want to rotate my console (not X Server) by 90 degrees (clockwise).
The following seems to work for me:
echo 1 > /sys/class/graphics/fbcon/rotate; however, I'd prefer to use a kernel option in Grub, rather than including the above in the
The fbcon documentation outlines the following option that can be passed to the kernel:
fbcon=rotate:<n>. Unfortunately, when I modify
/etc/default/grub and modify the
GRUB_CMDLINE_LINUX line like this:
... it doesn't work. I also ran
update-grub before rebooting.
I've also tried this:
Still nothing. Any thoughts?
rc.localit will only run after the system has finished booting, which means if anything goes wrong and you land in single-user/recovery mode, the screen won't be rotated. By putting it on the command line, the screen will be rotated correctly relatively early in the boot process.