1*4882a593Smuzhiyun# The env variables below can be overridden 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun# Comment out this for atomic related functions, e.g. sprites 4*4882a593Smuzhiyunexport WESTON_DISABLE_ATOMIC=1 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun# Allow using drm modifier, e.g. ARM AFBC 7*4882a593Smuzhiyun# export WESTON_ALLOW_GBM_MODIFIERS=1 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun# Enable black background for fullscreen views 10*4882a593Smuzhiyun# export WESTON_FULLSCREEN_BLACK_BACKGROUND=1 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun# Allow disabling unused CRTCs 13*4882a593Smuzhiyun# WESTON_DRM_MASTER=1 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun# Override output's freezing time 16*4882a593Smuzhiyun# export WESTON_DRM_RESIZE_FREEZE_MS=1000 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun# Primary screen 19*4882a593Smuzhiyun# export WESTON_DRM_PRIMARY=eDP-1 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun# Single screen 22*4882a593Smuzhiyun# export WESTON_DRM_SINGLE_HEAD=1 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun# Fallback to any available connector 25*4882a593Smuzhiyun# export WESTON_DRM_HEAD_FALLBACK=1 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun# Connector selecting mode: 28*4882a593Smuzhiyun# default|primary|internal|external|external-dual 29*4882a593Smuzhiyun# export WESTON_DRM_HEAD_MODE=external-dual 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun# Screens layout direction 32*4882a593Smuzhiyun# horizontal|vertical|same-as 33*4882a593Smuzhiyun# export WESTON_OUTPUT_FLOW=vertical 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun# Virtual display size 36*4882a593Smuzhiyun# export WESTON_DRM_VIRTUAL_SIZE=1024x768 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun# Comment out these to disable mirror mode 39*4882a593Smuzhiyunexport WESTON_DRM_MIRROR=1 40*4882a593Smuzhiyunexport WESTON_DRM_KEEP_RATIO=1 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun# Disable DRM plane hardware scale feature 43*4882a593Smuzhiyun# export WESTON_DRM_DISABLE_PLANE_SCALE=1 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun# Tag file for freezing weston display 46*4882a593Smuzhiyunexport WESTON_FREEZE_DISPLAY=/tmp/.freeze_weston 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun# Set dynamic config file path 49*4882a593Smuzhiyun# export WESTON_DRM_CONFIG=/tmp/.weston_drm.conf 50*4882a593Smuzhiyun# 51*4882a593Smuzhiyun# Dynamic config examples: 52*4882a593Smuzhiyun# echo "compositor:state:sleep" > /tmp/.weston_drm.conf # off + input wakeable 53*4882a593Smuzhiyun# echo "compositor:state:block" > /tmp/.weston_drm.conf # no input 54*4882a593Smuzhiyun# echo "compositor:state:freeze" > /tmp/.weston_drm.conf # no input + freeze 55*4882a593Smuzhiyun# echo "compositor:state:off" > /tmp/.weston_drm.conf # no input + off 56*4882a593Smuzhiyun# echo "compositor:state:on" > /tmp/.weston_drm.conf 57*4882a593Smuzhiyun# echo "output:DSI-1:off" > /tmp/.weston_drm.conf 58*4882a593Smuzhiyun# echo "output:eDP-1:freeze" > /tmp/.weston_drm.conf 59*4882a593Smuzhiyun# echo "output:DSI-1:on" > /tmp/.weston_drm.conf 60*4882a593Smuzhiyun# echo "output:all:rotate90" > /tmp/.weston_drm.conf 61*4882a593Smuzhiyun# echo "output:all:rect=<100,20,1636,2068>" > /tmp/.weston_drm.conf 62*4882a593Smuzhiyun# echo "output:HDMI-A-1:mode=800x600" > /tmp/.weston_drm.conf 63*4882a593Smuzhiyun# echo "output:HDMI-A-1:pos=100,200" > /tmp/.weston_drm.conf 64*4882a593Smuzhiyun# echo "output:HDMI-A-1:size=1920x1080" > /tmp/.weston_drm.conf 65*4882a593Smuzhiyun# echo "output:HDMI-A-1:prefer" > /tmp/.weston_drm.conf 66*4882a593Smuzhiyun# echo "output:HDMI-A-1:primary" > /tmp/.weston_drm.conf 67*4882a593Smuzhiyun# echo "output:HDMI-A-1:input=*" > /tmp/.weston_drm.conf 68*4882a593Smuzhiyun# echo "output:HDMI-A-1:input=" > /tmp/.weston_drm.conf 69*4882a593Smuzhiyun# echo "output:HDMI-A-1:input=event6" > /tmp/.weston_drm.conf 70*4882a593Smuzhiyun# echo "output:HDMI-A-1:input=goodix*" > /tmp/.weston_drm.conf 71*4882a593Smuzhiyun# echo "output:HDMI-A-1:input=goodix-ts" > /tmp/.weston_drm.conf 72