torizon@verdin-imx8mp-14753765:~$ cat /etc/os-release
ID=torizon
NAME=“TorizonCore”
VERSION=“6.4.0+build.5 (kirkstone)”
VERSION_ID=6.4.0-build.5
PRETTY_NAME=“TorizonCore 6.4.0+build.5 (kirkstone)”
DISTRO_CODENAME=“kirkstone”
BUILD_ID=“5”
ANSI_COLOR=“1;34”
VARIANT=“Docker”
Hi,
I’ve two HDMI connected to iMX8mp, i.e HDMI-A-1 and HDMI-A-2, I need to clone(mirror) HDMI-1-A to HDMI-A-2, I’m using weston-vivante container for running application.
Regards
Samarth
Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To achieve a mirrored display setup using Weston with your iMX8mp module, where HDMI-A-1 is cloned to HDMI-A-2, you will need to modify the weston.ini
configuration file. This file is used by Weston to set up various display configurations, including display cloning. Here’s how you can configure it for your needs:
-
Locate the weston.ini
file within your Weston container. This file is typically found at /etc/xdg/weston/weston.ini
inside the container. If it doesn’t exist, you may need to create it.
-
Edit the weston.ini
file to include the output configuration for cloning. Add the following lines:
[output]
name=HDMI-A-1
same-as=HDMI-A-2
This configuration tells Weston that the output named HDMI-A-2 should mirror the content of HDMI-A-1.
-
After making these changes, restart the Weston container to apply the new configuration. This can be done by stopping the running Weston container and starting it again with your desired settings.
Please note, Weston’s clone mode shares the display timings between all displays. This means both HDMI outputs need to support the same resolutions and refresh rates for cloning to work correctly.
If you encounter any issues with display cloning, ensure that both HDMI displays are connected and recognized by the system before starting the Weston container. You can verify the connected displays and their names by using the weston-info
command inside the container, which will list all recognized outputs and their properties.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Working with Weston on Torizon OS | Toradex Developer Center.
Not working.
Tried,
clone-from argument as well in weston.ini
Hi @Sudharshan,
Thanks for sharing details. Please also share your weston.ini file to further check along with docker run command for starting weston container.
we will also need to check output of below command
cat /sys/class/drm/card0-HDMI-A-1/modes
cat /sys/class/drm/card0-HDMI-A-2/modes
Best regards
Ritesh Kumar
Hi @ritesh.tx ,
Here’s the details you’ve asked for.
JFYI both displays are identical, so resolution is certainly not the issue here.
torizon@verdin-imx8mp-14753765:~$ cat /sys/class/drm/card0-HDMI-A-1/modes
1024x768
1920x1080
1920x1080
1920x1080
1920x1080
1280x1024
1280x1024
1440x900
1440x900
1280x720
1280x720
1280x720
1280x720
1280x720
1024x768
1024x768
832x624
800x600
800x600
800x600
800x600
720x576
720x576
720x576
720x480
720x480
720x480
720x480
640x480
640x480
640x480
640x480
720x400
torizon@verdin-imx8mp-14753765:~$ cat /sys/class/drm/card0-HDMI-A-2/modes
1024x768
1920x1080
1920x1080
1920x1080
1920x1080
1280x1024
1280x1024
1440x900
1440x900
1280x720
1280x720
1280x720
1280x720
1280x720
1024x768
1024x768
832x624
800x600
800x600
800x600
800x600
720x576
720x576
720x576
720x480
720x480
720x480
720x480
640x480
640x480
640x480
640x480
720x400
weston.ini
[core]
idle-time=0
require-input=false
xwayland=true
modules=screen-share.so
# uncomment line below to use kiosk shell
#shell=kiosk-shell.so
cursor-theme=none
[shell]
panel-position=top
locking=false
allow-zap=true
num-workspaces=1
# uncomment the [output] line below if you set any output configuration
[output]
name=HDMI-A-1
transform=rotate-90
same-as=HDMI-A-2
# uncomment line below to redirect the output; supported by kiosk shell
#app-ids=my-app-id
# uncomment line below to turn off the output
#mode=off
# uncomment line below to set an output resolution. Run for example 'cat /sys/class/drm/card1-HDMI-A-1/modes' to list the available modes.
#mode=1680x1050@60
# or use the more detailed (mode=dotclock hdisp hsyncstart hsyncend htotal vdisp vsyncstart vsyncend vtotal hflag vflag)
#mode=146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
# uncomment line below to make this output a clone of another
#same-as=HDMI-A-2
#For multi-display support and other configurations, please read the article: https://developer.toradex.com/knowledge-base/working-with-weston-on-torizoncore
Regards
Hi @ritesh.tx,
Any updated regarding this? Anything I’m missing in the weston.ini?
Regards
Hi @Sudharshan,
We tried quickly its coming in extended mode only. Seems like there is some limitation from weston. We are just trying to confirm.
If this is blocking your development, please let me know if you are open for professional service, in past our partners helped some customer with similar use case.
Best regards
Ritesh Kumar
Hi @ritesh.tx
We would like to explore that option as this is a blocker for us.
Let me know what would be further steps for the same.
Regards
Hi @Sudharshan ,
Please send am email to support.in@toradex.com, we can schedule a meeting to sync on same.
Best regards
Ritesh Kumar
Hi,
I’m also stucked with a same problem, if you found a solution please share how to do it!
Hi @Speltech
Unfortunately we were not able to do this. But Toradex provides support through their partners to get the same thing done(it is possible). Since my requirement changed, I didn’t followed upon.
Additionally you may look into this
Regards,
Samarth