Changes between Version 10 and Version 11 of qt
- Timestamp:
- 12/17/2021 12:19:09 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
qt
v10 v11 27 27 EGLFS forces the first top-level window (either a QWidget or a QQuickView) to become full screen and chosen to be the root widget window into which all other top-level widgets are composited. There are a number of env variables that can be used to configure EGLFS: see https://doc.qt.io/qt-5/embedded-linux.html#eglfs 28 28 29 To use the EGLFS platform plugin with a KMS/DRM backend you need to define a screen configuration file customized to your board and display. 30 31 Examples: 32 * 1080p HDMI: 29 To use the EGLFS platform plugin with a KMS/DRM backend you need to define a screen configuration file customized to your board and display with some specific details: 30 * device: the display device node on your board (ie /dev/dri/card0) 31 * outputs: an array of outputs from /sys/class/drm 32 33 Examples: 34 * Ventana IMX6QDL 1080p HDMI: 35 1. determine device/name/mode 36 {{{#!bash 37 root@focal-ventana:~# ls /sys/class/drm 38 card0 card1 card1-HDMI-A-1 card1-LVDS-1 renderD128 version 39 root@focal-ventana:~# cat /sys/class/drm/card1-HDMI-A-1/modes 40 1920x1080 41 }}} 42 - Note there are two outputs 'card1-HDMI-A-1' and 'card1-LVDS-1' (card0 is unused) corresponding to to the /dev/dri/card1 device and the mode 43 1. create conf file: 33 44 {{{#!bash 34 45 cat << EOF > /etc/eglfs_hdmi.json … … 49 60 } 50 61 EOF 62 }}} 63 - Note we disable LVDS-1 and configure HDMI-A-1 for our desired mode 64 1. export env vars: 65 {{{#!bash 51 66 export QT_QPA_EGLFS_KMS_CONFIG=/etc/eglfs_hdmi.json 52 67 export QT_QPA_EGLFS_ALWAYS_SET_MODE=1 53 68 export QT_QPA_PLATFORM=eglfs 54 69 }}} 55 * 1024x600 LVDS: 70 * Ventana IMX6QDL 1024x600 LVDS: 71 1. determine device/name/mode 72 {{{#!bash 73 root@focal-ventana:~# ls /sys/class/drm 74 card0 card1 card1-HDMI-A-1 card1-LVDS-1 renderD128 version 75 root@focal-ventana:~# cat /sys/class/drm/LVDS-1/modes 76 1024x600 77 }}} 78 - Note there are two outputs 'card1-HDMI-A-1' and 'card1-LVDS-1' (card0 is unused) corresponding to to the /dev/dri/card1 device and the mode 79 1. create conf file: 56 80 {{{#!bash 57 81 cat << EOF > /etc/eglfs_lvds.json … … 72 96 } 73 97 EOF 98 }}} 99 - Note we disable HDMI-A-1 and configure LVDS-1 for our desired mode 100 1. export env vars: 101 {{{#!bash 74 102 export QT_QPA_EGLFS_KMS_CONFIG=/etc/eglfs_lvds.json 75 103 export QT_QPA_EGLFS_ALWAYS_SET_MODE=1