Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. QtonPi
  4. Boot to Qt for dual monitors on RPi4
Forum Updated to NodeBB v4.3 + New Features

Boot to Qt for dual monitors on RPi4

Scheduled Pinned Locked Moved Unsolved QtonPi
4 Posts 3 Posters 1.5k Views 3 Watching
  • 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 Offline
    L Offline
    lrtjosh
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • L Offline
        L Offline
        lrtjosh
        wrote on last edited by
        #3

        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
        0
        • C Offline
          C Offline
          cordlandwehr
          wrote on last edited by
          #4

          @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
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved