Screen Status

The DRM framework supports setting force status for screens.

The following code block provides an example.
echo on > /sys/class/drm/card0-HDMI-A-1/status # Force HDMI-A-1 connected 
#on|off|detect, detect means hot-plug

For more specific screen status configuration, You can configure settings in the dynamic configuration file.

The following list provides some examples for different scenarios.
  • Turn off the DSI display.
    echo "output:DSI-1:off" >> /tmp/.weston_drm.conf
  • Turn on the eDP display.
    echo "output:eDP-1:on" >> /tmp/.weston_drm.conf
  • Turn off the display.
    echo "compositor:state:off" >> /tmp/.weston_drm.conf
  • Turn off display and enable touch-and-wakeup.
    echo "compositor:state:sleep" >> /tmp/.weston_drm.conf 
  • Turn on the display.
    echo "compositor:state:on" >> /tmp/.weston_drm.conf