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/e...
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.
EXTENDED display and higher BSP update
supported: 1. Clone from HDMI to LVDS and DSI
2. Clone from DSI to HDMI and LVDS
3. Clone from HDMI to LVDS and extend to DSI
4. Clone from DSI to LVDS and extend to HDMI
5. HPD(Hot plug detection) is supported.
Update the patches to Weston_clone_mode_patches.zip.
For weston-imx-9.0 of BSP LF-5.10.72_2.2.3, the patch is weston-imx-9.0-LF5.10.72_2.2.3-clone-mode-8M.diff.
For weston-imx-11.0.2 of BSP LF-6.1.36_2.1.0, the patch is weston-imx-11.0.2-LF6.1.36_2.1.0-clone-mode-8M.
For weston-imx-12.0.3 of BSP LF-6.6.3_1.0.0, the patch is weston-imx-12.0.3-LF6.6.3_1.0.0-clone-mode-8M.diff.
2025/2/12 update: update the patch to L5.4.70_2.3.0
5.4.70_2.3.0.zip