Dual display output with linuxfb



  • Hello.

    My Qt Version is Qt 5.10.1, and target OS is embedded Linux. I'm finding how to use multi-screen with Qt5, exactly I want make screen output to framebuffer directly.

    As you know, linuxfb platform can use variable framebuffer via option 'fb'. (ex ./animatedtiles -platform linuxfb:fb=/dev/fb1)
    But I cannot find how to use multi-framebuffer with linuxfb.

    I found some example using multi framebuffer with 'qws' in Qt4, so i thought Qt5 also may have similar way.

    Is there some way using multi framebuffer via linuxfb?
    If not, can you tell me some other way using multi-screen?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Can you explain your use of multiple screens ?

    If you need window management, you will likely have to take a look at the QtWayland module.



  • This post is deleted!


  • @SGaist Hello. Thanks for reply.

    Well, Xorg is already running on my system. I dont know how QtWayland works exactly, but I'll check it as your advice. thank you.

    And about detail about my multi-screen environment, My embedded system connected to LCD and HDMI provided as /dev/fb0, /dev/fb1. so, I want print my Qt App screen to them each at once, in other words, I wanna works like "Mirror Mode".

    So, I'm tried commands like below.

    $ ./qtapp -platform linuxfb:fb=/dev/fb0:fb=/dev/fb1
    $ ./qtapp -platform linuxfb:fb=/dev/fb0 linuxfb:fb=/dev/fb1
    ( ... )

    I think they show my purpose clearly, although It looks like stupid..

    I hope this reply answers your questions.
    Thank you.


  • Lifetime Qt Champion

    Well, if you have Xorg, why not use it in mirror mode ?
    Doing so you won't have anything special to do from your application.


Log in to reply