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. Embedded Linux / Framebuffer / No screens available
Forum Update on Tuesday, May 27th 2025

Embedded Linux / Framebuffer / No screens available

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 6.2k 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.
  • T Offline
    T Offline
    TopKool
    wrote on 10 May 2016, 00:44 last edited by
    #1

    Dear all,

    I am a newbie on Qt, but we decided to move on that framework.

    Our custom platform is based on Buildroot 2016.x and Qt 5.5.1. The CPU is an ARM (without HW acceleration).
    We use a small color TFT 320x240 16 bits colors.

    We were able to compile Qt and even to run console-only Qt applications.

    However, any app (for instance examples/gui/rasterwindow) fails with the same error:

    Failed to open framebuffer /dev/fb0 (Permission denied)
    linuxfb: Failed to initialize screen
    Cannot create window: no screens available
    

    The app is running under root user and /dev/fb0 exists and works fine (I can push a raw image directly to fb0). Its permissions are a+rwx and belongs to root:root.

    Could you help me?

    Thanks in advance

    1 Reply Last reply
    0
    • D Offline
      D Offline
      deleted184
      wrote on 11 May 2016, 06:30 last edited by
      #2

      Hi @TopKool ,

      Can you tell me how you launch the examples on your platform ?

      T 1 Reply Last reply 16 May 2016, 18:37
      0
      • D deleted184
        11 May 2016, 06:30

        Hi @TopKool ,

        Can you tell me how you launch the examples on your platform ?

        T Offline
        T Offline
        TopKool
        wrote on 16 May 2016, 18:37 last edited by
        #3

        I made a tiny Qt app called test2 with a simple button, and I tried to run using different parameters:

        ./test2
        ./test2 -platform linuxfb
        ./test2 -platform linuxfb:fb=/dev/fb0
        

        The error is always the same:

        Failed to open framebuffer /dev/fb0 (Permission denied)
        linuxfb: Failed to initialize screen
        no screens available, assuming 24-bit color
        Cannot create window: no screens available
        Aborted
        

        However, the fbv tool (http://freecode.com/projects/fbv) is able to display a PNG image.

        T 1 Reply Last reply 16 May 2016, 18:53
        0
        • T TopKool
          16 May 2016, 18:37

          I made a tiny Qt app called test2 with a simple button, and I tried to run using different parameters:

          ./test2
          ./test2 -platform linuxfb
          ./test2 -platform linuxfb:fb=/dev/fb0
          

          The error is always the same:

          Failed to open framebuffer /dev/fb0 (Permission denied)
          linuxfb: Failed to initialize screen
          no screens available, assuming 24-bit color
          Cannot create window: no screens available
          Aborted
          

          However, the fbv tool (http://freecode.com/projects/fbv) is able to display a PNG image.

          T Offline
          T Offline
          TopKool
          wrote on 16 May 2016, 18:53 last edited by
          #4

          I figured out the issue. It was due to our kernel configuration. I still do not know exactly what it is the root cause, but once some custom security features disabled in the kernel, Qt works.

          Thanks for your support.

          1 Reply Last reply
          0
          • H Offline
            H Offline
            hkhantang
            wrote on 10 Aug 2020, 07:36 last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • H Offline
              H Offline
              hkhantang
              wrote on 10 Aug 2020, 07:56 last edited by
              #6

              I also encountered the problem, I can't resolve the problem so far, so could you tell me your means to
              solve the problem? thank you!

              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