Skip to main content
Visitor II
March 15, 2019
Solved

Could not set DRM mode for screen DSI1/Could not queue DRM page flip on screen DSI1 (Permission denied) for st-example-image-qt

  • March 15, 2019
  • 1 reply
  • 3147 views

Hi,

I have succesfully built a image st-example-image-qt from the DISTRO openstlinux-eglfs.

I have deployed the image on sd card, and played it on STM32MP157C-DK2.

System is booting without a problem, and the splashscreen was shown.

Then, I tried one of Qt examples e.g.:

root@stm32mp1:~# /usr/share/examples/opengl/hellowindow/hellowindow

qt.qpa.input: X-less xkbcommon not available, not performing key mapping

Could not set DRM mode for screen DSI1 (Permission denied)

Could not queue DRM page flip on screen DSI1 (Permission denied)

Could not queue DRM page flip on screen DSI1 (Permission denied)

Could not queue DRM page flip on screen DSI1 (Permission denied)

...

export QT_QPA_EGLFS_ALWAYS_SET_MODE="1"

export QT_QPA_EGLFS_INTEGRATION="eglfs_kms"

does not help!

What can be the Issue here?

    This topic has been closed for replies.
    Best answer by Bernard PUEL

    Could you please launch this command before launching Qt demo ?

    "# psplash-drm-quit"

    Here is the explanation:

    In ST distribution there are 3 splash screens:

    • u-boot
    • user land (psplash)
    • Weston/wayland

    So before launching Application UI, you have to free DRM instance with user land splash screen (to avoid permission denied). This is done in Weston/Wayland automatically but not in Qt (sample code).

    1 reply

    Technical Moderator
    March 18, 2019

    Could you please launch this command before launching Qt demo ?

    "# psplash-drm-quit"

    Here is the explanation:

    In ST distribution there are 3 splash screens:

    • u-boot
    • user land (psplash)
    • Weston/wayland

    So before launching Application UI, you have to free DRM instance with user land splash screen (to avoid permission denied). This is done in Weston/Wayland automatically but not in Qt (sample code).

    Visitor II
    March 19, 2019

    Hi, that worked!

    Thank You very much!