I am developing a medical device which is required to have a touchscreen display and also mirror the output to a monitor connected via HDMI. I am able to get the display extended from HDMI to LVDS, but not have the output mirrored to both displays.
- Ixora Carrier Board
- Apalis iMX8 QuadMax 4GB Wi-Fi / Bluetooth IT
- Capacitive Touch Display 10.1" LVDS
I have this version of TorizonCore:
cat /etc/os-release
ID=torizon
NAME="TorizonCore"
VERSION="6.2.0+build.2 (kirkstone)"
VERSION_ID=6.2.0-build.2
PRETTY_NAME="TorizonCore 6.2.0+build.2 (kirkstone)"
DISTRO_CODENAME="kirkstone"
BUILD_ID="2"
ANSI_COLOR="1;34"
VARIANT="Docker"
I updated the device tree:
cat /sysroot/boot/ostree/torizon-fde04e5dc537e7d0fb52b2b3582fcf35a6a4c9a662edf9914167a2bada0feb30/dtb/overlays.txt
fdt_overlays=apalis-imx8_panel-cap-touch-10inch-lvds_overlay.dtbo apalis-imx8_hdmi_overlay.dtbo
cat /proc/cmdline
pci=nomsi root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.0/torizon/fde04e5dc537e7d0fb52b2b3582fcf35a6a4c9a662edf9914167a2bada0feb30/0
ls /sysroot/boot/ostree/torizon-fde04e5dc537e7d0fb52b2b3582fcf35a6a4c9a662edf9914167a2bada0feb30/dtb/overlays:
apalis-imx8_ar0521_overlay.dtbo
apalis-imx8_hdmi_overlay.dtbo
apalis-imx8_mezzanine_can_overlay.dtbo
apalis-imx8_mezzanine_ov5640_overlay.dtbo
apalis-imx8_mezzanine_panel-cap-touch-10inch-lvds_overlay.dtbo
apalis-imx8_ov5640_overlay.dtbo
apalis-imx8_panel-cap-touch-10inch-lvds_overlay.dtbo
apalis-imx8_panel-lvds-dual-channel-1080p_overlay.dtbo
apalis-imx8_resistive-touch_overlay.dtbo
apalis-imx8_spi1_spidev_overlay.dtbo
apalis-imx8_spi2_spidev_overlay.dtbo
display-dpi-lt170410_overlay.dtbo
display-edt5.7_overlay.dtbo
display-edt7_overlay.dtbo
display-fullhd_overlay.dtbo
display-lt161010_overlay.dtbo
display-lt170410_overlay.dtbo
display-vga_overlay.dtbo
I am starting the (flutter) application with the following command:
docker-compose.gallery.yaml (1.5 KB)
docker-compose -f docker-compose.gallery.yaml up
When I enter the running weston docker container, I can see the following:
ls /sys/class/drm
card0 card1 card1-HDMI-A-1 card1-LVDS-1 renderD128 renderD129 version
cat /sys/class/drm/card1-HDMI-A-1/status
connected
cat /sys/class/drm/card1-HDMI-A-1/enabled
enabled
cat /sys/class/drm/card1-LVDS-1/enabled
enabled
cat /sys/class/drm/card1-LVDS-1/status
connected
cat /sys/class/drm/card1-HDMI-A-1/modes|sort -u
1024x768
1152x864
1280x1024
1280x720
1600x1200
1600x900
1920x1080
2048x1080
2560x1440
640x480
720x400
720x480
720x576
800x600
cat /sys/class/drm/card1-LVDS-1/modes
1280x800
When I run with the default weston.ini file, the displays are extended.
orig.weston-dev.ini.txt (1.2 KB)
orig.beta-weston-stdout_2023-06-20_22-11-28.txt (11.5 KB)
I then changed the Weston.ini file, with the same results (following High performance, low power Embedded Computing Systems | Toradex Developer Center ):
[output]
name=HDMI-A-1
same-as=LVDS-1
weston.ini-2023-06-20_22-18-24.txt (1.3 KB)
beta-weston-stderr_2023-06-20_22-18-24.txt (11.5 KB)
And also:
[output]
name=LVDS-1
same-as=HDMI-A-1
weston.ini-2023-06-20_22-23-09.txt (1.3 KB)
beta-weston-stdout_2023-06-20_22-23-09.txt (23.6 KB)
Is the problem related to different resolutions? There don’t seem to be matching resolutions in the “mode” of the two interface.
Solutions?