This post shows a new feature (weston_clone_mode) that many customers need before in i.MX8MPlus.
The demo works on Linux BSP L5.10.72_2.2.0 and weston branch weston-imx-9.0.
The detailed introduction, running steps and test result are shown in the attached PPT.
Default Extend Mode Pipeline:
Clone Mode Pipeline:
The DSI buffers which as the clone source in the pipeline can also be changed to HDMI or LVDS buffers.
Running Steps:
git apply clone_difResolution.diff
source /opt/fsl-imx-xwayland/5.10-hardknott/environment-setup-cortexa53-crypto-poky-linux
meson build/ --prefix=/usr -Ddoc=false -Dbackend-drm-screencast-vaapi=false -Dcolor-management-lcms=false -Dcolor-management-colord=false -Dpipewire=false -Dbackend-x11=false -Dbackend-fbdev=false -Dxwayland=true -Drenderer-g2d=true
DESTDIR=./opt/weston ninja -C build/ install
tar -cvf weston_usr.tar build/opt/weston/usr/*
copy the weston_usr.tar to your evk board
systemctl stop Weston
tar -xvf weston_usr.tar
cp -r build/opt/weston/* / & sync
Adding “clone-mode=1”, “clone-connector-id=41” to your /etc/xdg/weston/weston.ini “core” section like picture (1). You can also add “cloneoutput” section like picture (2) If you decides to use other modes of your screen.
systemctl restart Weston
41 or 45 in the pictures are the connector id of the corresponding screens. You can use modetest –M imx-drm to see the connector id.
Test Results:
Three displays:
Two Displays:
Reference Link
i.MX8MPlus :https://www.nxp.com/design/design-center/development-boards/i-mx-evaluation-and-development-boards/evaluation-kit-for-the-i-mx-8m-plus-applications-processor:8MPLUSLPD4-EVK
weston: https://github.com/nxp-imx/weston-imx
weston doc: https://wayland.pages.freedesktop.org/weston/
HPD update
Please update the patch to clone_difResolution_add_HPD.diff which supports HPD feature.
Notion: pleas add force-on=true to the output you use as main screen. For example.
View full article