Clone mode not work with multi display in apalis imx8qp

Hi Everyone,

My product is need to clone the LVDS and HDMI, the LVDS is primary.
I have already configure these display successful, but it is extended mode.
I enable by device tree overlay (that i have a little bit modified) in /boot/overlays.txt

I add the “same-as=” in [output] weston.ini, but after reboot, both LVDS and HDMI not display.
[output]
name=LVDS-1
mode=preferred

[output]
apalis-imx8_hdmi_overlay.dts (863 Bytes)
apalis-imx8_panel-lvds-dual-channel-1080p_overlay.dts (971 Bytes)
weston.ini (776 Bytes)
weston.log (5.8 KB)

name=HDMI-A-1
same-as=LVDS-1
mode=preferred

I attached the device tree and the weston.ini, weston.log

I investigate it for one week and try many solution on the internet but not work.
Please help,

Hardware:
Apalis iMX8QP 2G v1.1C
Software:
TDX Wayland with XWayland 5.7.2+build.21 (dunfell)
Apalis-iMX8_Reference-Multimedia-Image

hey @HieuNong,

This same topic has been brought up, and it looks like there is a work around that has been posted via the nxp link given in this thread:

-Eric

Hi @eric.tx ,

Thank you for your reply.
The nxp link mentioned is applied for iMX6 series not for iMX8 (not use fbdev). I also try it before i post but not work.

Hi All,

I configured successfully for clone / mirror mode. Thank you all.

I follow below link to apply the patch.

https://gitlab.freedesktop.org/wayland/weston/-/issues/333
https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/381

And add clone-from section:

[output]
name=LVDS-1
mode=1920x1080@60

[output]
name=HDMI-A-1
clone-from=LVDS-1

This is my patch:
clone-from-LVDS-to-HDMI.patch (34.7 KB)

After rebuild yocto and install new image. The clone will work.

1 Like

Wow @HieuNong thanks a lot for taking the time to not only solve this but to report back for future reference. This is very much appreciated!

Alvaro.