System wide rotation settings#
For your setup it might be needed to rotate the screen, for this purpose SimpleCore™ based distributions do offer a setting in
/boot/branding
Tip
The file(s) can be as well created on a Windows PC, by inserting the SD-Card/USB Stick and creating the files on an available partition called boot, which is FAT formatted and can be edited from Windows.
Do not forget to properly unmount the SD-Card or USB Stick.
Set rotation of weston desktop and splash screen at runtime#
$ echo "ROTATION=0" > /boot/branding
$ echo "ROTATION=90" > /boot/branding
$ echo "ROTATION=180" > /boot/branding
$ echo "ROTATION=270" > /boot/branding
Setting the rotation of a specific display#
To enable a rotation for a specific display in weston only.
You can suffix the ROTATION
setting by the display name.
The display specific settings have precedence over the general ROTATION
setting.
Caution
-
characters in the display need to be replaced by _
.
e.g. LVDS-1
becomes LVDS_1
and
HDMI-A-1
becomes HDMI_A_1
$ echo "ROTATION_LVDS_1=0" > /boot/branding
$ echo "ROTATION_LVDS_1=90" > /boot/branding
$ echo "ROTATION_LVDS_1=180" > /boot/branding
$ echo "ROTATION_LVDS_1=270" > /boot/branding
Set rotation of kernel console at runtime (iMX8)#
$ echo 'optargs=${optargs} fbcon=rotate:0' >> /boot/uEnv.txt
$ echo 'optargs=${optargs} fbcon=rotate:3' >> /boot/uEnv.txt
$ echo 'optargs=${optargs} fbcon=rotate:2' >> /boot/uEnv.txt
$ echo 'optargs=${optargs} fbcon=rotate:1' >> /boot/uEnv.txt
Set rotation of kernel console at runtime (Intel/qemu)#
Todo
Section still needs to be written
Set rotation from a Yocto build#
In your local.conf
or in your custom distribution set
LOGO_ROTATION="0"
LOGO_ROTATION="90"
LOGO_ROTATION="180"
LOGO_ROTATION="270"