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 /etc/rc.local
script.
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:
GRUB_CMDLINE_LINUX="fbcon=rotate_all:1"
... it doesn't work. I also ran update-grub
before rebooting.
I've also tried this:
GRUB_CMDLINE_LINUX="fbconsole=rotate_all:1"
Still nothing. Any thoughts?
rc.local
?rc.local
it 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.