You can rotate the framebuffer console in two ways:
- Via System Node
- Via Configuration File
framebuffer console rotation value:
- 0 - default value (landscape mode)
- 1 - rotate 90 degrees
- 2 - rotate 180 degrees
- 3 - rotate 270 degrees
Via System Node
- Root permissions are required to modify nodes, switch to root user
1 | khadas@Khadas:~$ su |
- Check the current configuration of the node
1 | root@Khadas:/home/khadas# cat /sys/class/graphics/fbcon/rotate |
- Modify the configuration to rotate the framebuffer
Rotate 90 degrees,
1 | root@Khadas:/home/khadas# echo 1 > /sys/class/graphics/fbcon/rotate |
- Restore framebuffer console to the default setting
1 | root@Khadas:/home/khadas# echo 0 > /sys/class/graphics/fbcon/rotate |
NoteThe modification will be lost after a power cycle, if you want to save it you can check the other way below.
Via Configuration File
Follow this Guide to setup –> Framebuffer Rotate