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. Could not open DRM (NV) device
Qt 6.11 is out! See what's new in the release blog

Could not open DRM (NV) device

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 2.3k 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.
  • bandito_embeddedB Offline
    bandito_embeddedB Offline
    bandito_embedded
    wrote on last edited by
    #1

    Hi everyone,

    I'm trying to run a Qt example and I face the following issue :

    root@bandito:/home/Qt# ./animation -platform eglfs
    QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/volatile/tmp/runtime-root'
    Could not open DRM (NV) device
    Aborted
    

    Can anyone help me figure out what's wrong?

    Here are my environment variables :

    QT_QPA_FB_DRM=1
    QT_QPA_EGLFS_KMS_ATOMIC=1
    QT_QPA_EGLFS_INTEGRATION=eglfs_kms_egldevice
    QT_QPA_EGLFS_FB=/dev/dri/card0
    QT_QPA_EGLFS_ALWAYS_SET_MODE=1
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Are you running your code on an embedded device ?
      Does it have any other graphics system running like an a X server or wayland ?

      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
      • bandito_embeddedB Offline
        bandito_embeddedB Offline
        bandito_embedded
        wrote on last edited by
        #3

        Hi @SGaist ,
        Yes, I'm running my app on an embedded device.
        I'm not using XServer nor Wayland.

        I'have noticed that I missed an option during the confirguration of Qt.
        Among egldeviceintegration libraries, there is only :

        • eglfs_kms_egldevice
        • eglfs_emu

        It seems that I should have enabled gbm. But I need to dig deep to understand how the linux graphical stack works to put everything together.

        1 Reply Last reply
        0
        • bandito_embeddedB Offline
          bandito_embeddedB Offline
          bandito_embedded
          wrote on last edited by
          #4

          Okay, I was able to solve the issue by adding gbm ( Generic Buffer Management ) among the configurations options passed to the configure script of Qt.
          This allowed me to obtain among the egl device integrations shared libraries :

          • libqeglfs-emu-integration.so
          • libqeglfs-kms-egldevice-integration.so
          • libqeglfs-kms-integration.so

          After that, setting up QT_QPA_EGLFS_KMS_CONFIG environment variables to my .json configuration file,
          I was able to run my application properly.

          I probably need to spend more time understanding the linux graphical stack to put everything together in my mind, but for now the application is running and I can continue the development.

          Hope it helps someone.
          Bye Bye !

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Nice ! Thanks for sharing the findings :-)

            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

            • Login

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