QT环境变量
export QT_DIR=/userdata/bin/qtlib
export QT_QPA_PLATFORM=eglfs
export QT_QPA_EGLFS_INTEGRATION=eglfs_kms
export QT_QPA_EGLFS_KMS_PLANE_INDEX=1
export QT_QPA_EGLFS_ALWAYS_SET_MODE=1
export QT_QPA_EGLFS_NO_LIBINPUT=1
export QT_LOGGING_RULES='qt.qpa.*=false'
export QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu --no-sandbox"
export PULSE_COOKIE=/run/pulse/.config/pulse/cookie
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QT_DIR:$QT_DIR/lib:/userdata/bin:/userdata/qtlib/
export XDG_RUNTIME_DIR=/root/.xdg
export SDL_AUDIODRIVER=alsa
export QT_QPA_EGLFS_KMS_CONFIG=/userdata/bin/monitor.json
monitor.json
{ "device": "/dev/dri/card0", "hwcursor": false, "outputs": [ { "format": "argb8888", "mode": "1920x1080", "name": "HDMI1", "primary": true, "virtualIndex": 0, "virtualPos": "0, 0", "zpos": 6 } ], "pbuffers": true }