How to do about mirror dual mode (clone mode) display in imx8mq Yocto2.5?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to do about mirror dual mode (clone mode) display in imx8mq Yocto2.5?

5,223 Views
charleshuang
Senior Contributor II

Hi NXP 

Our platform is iMX8MQ.

OS is Yocto 2.5 4.14.98.

How to do about mirror mode (clone mode)  dual display in imx8mq Yocto2.5?

About the dual display  is HDMI + LVDS.

Our customer need to reduce cpu usage in dual display.

They need to enable "mirror mode (clone mode)" in dual display.

Do you have sop how to do about enable mirror mode (clone mode) display ?

or Demo Image is already support . we can try it.

 

Thanks.

 

 

0 Kudos
Reply
4 Replies

5,184 Views
joanxie
NXP TechSupport
NXP TechSupport

unfortunately current bsp doesn't support this as default, if customer needs support this, need change weston by themselves, maybe you can refer to the link as below:

"https://gitlab.freedesktop.org/wayland/weston/-/issues/22"

0 Kudos
Reply

5,059 Views
charleshuang
Senior Contributor II

Hi NXP,
We are using version yocto 2.5, kernel 4.14.98.
Following the recommendation, we applied the patch '[weston,2/4] weston: Move output position setting to compositor.' After compiling, an error occurs as follows:

compositor/weston-main.o: In function `wet_set_output_position':
| /usr/src/debug/weston/5.0.0.imx-r0/git/compositor/main.c:431: undefined reference to `weston_output_transform_scale_init'
| collect2: error: ld returned 1 exit status
| Makefile:4375: recipe for target 'weston' failed
| make[1]: *** [weston] Error 1
| make[1]: *** Waiting for unfinished jobs....
| make[1]: Leaving directory '/home/adv/BSP/build_all_1004/tmp/work/aarch64-mx8m-poky-linux/weston/5.0.0.imx-r0/build'
| Makefile:3460: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/adv/BSP/build_all_1004/tmp/work/aarch64-mx8m-poky-linux/weston/5.0.0.imx-r0/temp/log.do_compile.11310)
ERROR: Task (/home/adv/BSP/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-graphics/wayland/weston_5.0.0.imx.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2638 tasks of which 2631 didn't need to be rerun and 1 failed.

The following is our version of 'compositor/main.c':

Thank you for your help

0 Kudos
Reply

5,025 Views
charleshuang
Senior Contributor II

Hi @joanxie  and NXP Team number

About the solution "https://gitlab.freedesktop.org/wayland/weston/-/issues/22" form @joanxie provide.

Do you have any advise?

The solution match the yocto 2.5 or yocto 3.0 or yocto 3.3 ?

Please help to check it. Thank.

0 Kudos
Reply

5,005 Views
joanxie
NXP TechSupport
NXP TechSupport

as I known, other customers use qt+eglfs to achieve this, but nxp doesn't have official patch or sample code for this

0 Kudos
Reply