Run application independently on dual display(HDMI and LVDs)

Hi,
We are using the Apalis iMX8X board and have connected both an HDMI and an LVDS display to it. We want to run two applications independently on both displays. How can we do it? Is it possible on this board using reference multimedia image?

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?

:+1: :-1:


Hello,

Running two applications independently on both an HDMI and an LVDS display with the Apalis iMX8X board is indeed possible. This can be achieved by leveraging the capabilities of the i.MX8X SoC and the Linux environment provided by Torizon. Here’s how you can approach this:

  1. Ensure Your System is Up-to-Date: Make sure your TorizonCore is updated to the latest version to benefit from the most recent drivers and features.

  2. Configure the Displays: You’ll need to configure both the HDMI and LVDS displays. This can typically be done through the device tree or via boot-time parameters. For the Apalis iMX8X, the device tree files (*.dts) are the starting point for such configurations. You might need to adjust the display timings and enable the interfaces for both HDMI and LVDS.

  3. Use Weston Compositor: TorizonCore uses the Weston compositor, which is part of the Wayland project. Weston allows you to run applications on different displays. You can specify the output display for your application by setting the WAYLAND_DISPLAY environment variable or by using command-line parameters specific to your application framework. For instance, Qt5 applications can specify the display using the -platform wayland-egl:display=displayname argument.

  4. Running Applications Independently: To run applications independently on each display, you can start them from separate terminal sessions, specifying the target display as mentioned above. Ensure that your applications are designed to work with Wayland if you are using the TorizonCore with Wayland/Weston.

  5. Example: If you have a Qt5 application and you want to run it on the HDMI display, you would use something like:

    QT_QPA_PLATFORM=wayland-egl:display=displayname ./yourapplication
    

    Adjust the displayname to match your HDMI display identifier in Weston.

  6. Reference Multimedia Image: The reference multimedia image provided by Toradex for the Apalis iMX8X should support dual displays. However, you might need to install additional packages or make configurations specific to your use case, such as ensuring both displays are recognized and configured correctly at boot.

Remember, the exact commands and configurations might vary based on the version of TorizonCore you are using and any customizations you have made to your system. It’s also important to test your setup thoroughly to ensure both displays operate as expected under your application’s workload.

Best regards,

Please, also check if these links can help you solve your problem:

Thermal Management | Toradex Developer Center.

Hi @Shanmugapriyan,
We have updated our comments here on your duplicate post.