Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Qt5.0] Use two fb devices at the same time in Qt5.0 app
Forum Updated to NodeBB v4.3 + New Features

[Qt5.0] Use two fb devices at the same time in Qt5.0 app

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 4 Posters 3.4k Views 1 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.
  • R Offline
    R Offline
    ryanghost
    wrote on last edited by
    #1

    Hi all,

    I would like to create a single Qt5.0 app that has a control menu on fb1 and displays media content on fb0. Is it possible to do that?

    Thank you!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AcerExtensa
      wrote on last edited by
      #2

      not sure if you can do it with one app instance, but I think it will be possible with 2 separate processes. You can always communicate between them through IPC or RPC...

      God is Real unless explicitly declared as Integer.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ryanghost
        wrote on last edited by
        #3

        Hi AcerExtensa,

        Thanks for your quick reply!
        In that case, I need to switch display output. Could you please show me how to switch display output between fb0/1 with EGLFS platform?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AcerExtensa
          wrote on last edited by
          #4

          I'm not familiar with EGLFS, but if you look into qtbase/src/plugins/platforms/eglfs/qeglfshooks_stub.cpp you can find this function:
          @const char *QEglFSHooks::fbDeviceName() const
          {
          return "/dev/fb0";
          }@

          play with it, or just copy-paste platform plugin code and compile it like eglfs_fb1... should work...

          God is Real unless explicitly declared as Integer.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            ryanghost
            wrote on last edited by
            #5

            Hi AcerExtensa,

            It does not work. It always uses fb0 for displaying. It seems that the above code snippet is used for referring screen size and color depth only. ????

            I can use "-platform linuxfb:fb"/dev/fb1"" to display on fb1. however touch input dies and the app is only displayed a part.

            have you met those errors?

            Thank you!

            1 Reply Last reply
            0
            • A Offline
              A Offline
              AcerExtensa
              wrote on last edited by
              #6

              nope, I have only played with virtual framebuffers using Qt4 and it has worked well in my project... but I didn't use inputs or whatsoever...

              Look at qeglfshooks_x11.cpp and other files in eglfs platform plugin, there is not that much code...

              God is Real unless explicitly declared as Integer.

              1 Reply Last reply
              0
              • P Offline
                P Offline
                prabindh
                wrote on last edited by
                #7

                This really depends on the EGL implementation of your GPU vendor and not on Qt5. Check with the vendor if there are any extensions exposed to select this.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  agocs
                  wrote on last edited by
                  #8

                  Yes, to have EGL/GLES on another display you need modifications not just to the base eglfs code but also the board-specific hooks in qtbase/mkspecs/devices.

                  In 5.3 we'll be introducing QT_QPA_EGLFS_FB to choose the framebuffer/dislay but for the time being that will be effective for i.MX6 only.

                  Are you using i.MX6? There the eglfs on fb0, linuxfb on fb2 approach is known to work. (but keep in mind that fb1 is incorrect since that's the overlay for fb0 and has nothing to do with the other display)

                  1 Reply Last reply
                  0

                  • Login

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