Skip to content
Snippets Groups Projects
Commit 6875c379 authored by Felix Gerking's avatar Felix Gerking Committed by Jonas Höppner
Browse files

qt-multi-screen-compositor: Add kms.conf for imx8m

For imx8m it is necessary to specify drm device 0 to run the qt-compositor
with eglfs backend.

BCS 746-000787

(cherry picked from commit 5058c033)
parent 88c8205c
No related branches found
No related tags found
2 merge requests!418Integrate gitlab-ci/fix-gitlab-ci-integration and 6 more,!396Pull changes from dunfell branch
{
"device": "/dev/dri/card0"
}
[Unit]
Description=Qt multi-screen Compositor
RequiresMountsFor=/run
Conflicts=plymouth-quit.service
After=systemd-user-sessions.service plymouth-quit-wait.service systemd-logind.service
[Service]
User=%i
PAMName=login
Environment=XDG_RUNTIME_DIR=/var/run/user/0
Environment=QT_QPA_FONTDIR=/usr/share/fonts/truetype
Environment=QT_QPA_PLATFORM=eglfs
Environment=QT_QPA_EGLFS_KMS_CONFIG=/etc/kms.conf
Environment=QT_QPA_EGLFS_INTEGRATION=eglfs_kms
Environment=QT_QPA_EGLFS_KMS_ATOMIC=1
# Use this if the touch entry is rotated compared to the screen
# as the normal libinput calibration is not yet implemented
# this is the only way of touch calibration available
# Environment=QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=rotate=180
StandardError=journal
PermissionsStartOnly=true
IgnoreSIGPIPE=no
#Type=notify
#NotifyAccess=all
Type=simple
ExecStart=/usr/bin/multi-screen
...@@ -42,6 +42,15 @@ do_install () { ...@@ -42,6 +42,15 @@ do_install () {
fi fi
} }
SRC_URI_append_mx8m = " \
file://kms.conf \
"
do_install_append_mx8m () {
install -d ${D}${sysconfdir}/
install -m 0664 ${WORKDIR}/kms.conf ${D}${sysconfdir}/kms.conf
}
FILES_${PN} += " \ FILES_${PN} += " \
${systemd_system_unitdir}/qt-multi-screen-compositor@.service \ ${systemd_system_unitdir}/qt-multi-screen-compositor@.service \
" "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment