Last edited 3 months ago

How to configure the Weston screen orientation

Applicable for STM32MP13x lines, STM32MP15x lines, STM32MP25x lines


  • Edit and change the value of the transform variable in your selected output section of the weston.ini Weston configuration file[1] located in /etc/xdg/weston/weston.ini
vi /etc/xdg/weston/weston.ini
...
# LVDS-1 connector
[output]
name=LVDS-1
mode=preferred
transform=rotate-90
...
# DSI-1 connector
[output]
name=DSI-1
mode=preferred
...
  • Restart Weston [2]
systemctl restart weston-graphical-session
Info white.png Information
Use the command modetest:
  • to get the exact DRM connector name for the field name= (DRM connector name examples: DSI-1, DPI-1, LVDS-1, HDMI-A-1...).
  • to get the supported DRM modes for the field mode= (DRM mode examples: preferred, 720x480, ...).

Please read weston-drm manpage[3] for more details.

Warning white.png Warning
  • Make sure there are no extra spaces at the beginning or end of any lines in the weston.ini file.
  • Changing screen orientation may cause performance changes during graphics use cases.

1. References[edit | edit source]