Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Boot to Qt for dual monitors on RPi4

    QtonPi
    3
    4
    878
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lrtjosh last edited by

      Hi everyone,

      I am very new to Qt (literally in my 7 day trial) and trying to work out if Qt might be the right solution for what I'm trying to do. I have successfully got a test Qt Quick app to auto-start on my Raspberry Pi 4 with quiet boot etc. Now the last piece of the puzzle is that I need to make use of the second HDMI output on the RPi4. This can either be as a second window of the same app, or as a second/separate app running at the same time.

      I'm wondering if this is doable, and if so, how? I have no idea how to target the other monitor and so far I've just followed the Qt docs to get this far. If this part can be solved, I think I'll go all-in on Qt.

      Cheers and thanks in advance if anyone is able to help!

      Josh

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        You likely want to take a look at wayland and its support in Qt.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • L
          lrtjosh last edited by

          Thanks @SGaist very much for the pointer. I've started reading about Wayland.

          If anyone has ever successfully achieved dual monitor output in a Boot to QT setup, I'd still love to hear from you!

          Cheers

          1 Reply Last reply Reply Quote 0
          • C
            cordlandwehr last edited by

            @lrtjosh I hit the same issue a few days ago with my new RPi4 but found a solution :) The initial symptom also was the rainbow boot splash on the second monitor.

            My setup:

            • RPi4 with two HDMI monitors connector
            • Yocto: Dunfell
            • meta-qt: 5.15.2

            The magic lines to activate the second monitor are the following ones in /boot/config.txt:

            dtoverlay=vc4-fkms-v3d
            max_framebuffers=2
            

            Using these, directly after boot I see a tty also on the second screen. On this, I could simply run a multi-head QtWayland compositor via the eglfs QPA and render clients via wayland-egl (note that you have to activate the linux-dmabuf-v1 protocol). However, it should also work to just start Weston; but I did not test this.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post