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