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. What is the correct format of an EGLFS configuration file?
Forum Updated to NodeBB v4.3 + New Features

What is the correct format of an EGLFS configuration file?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 2.6k 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.
  • H Offline
    H Offline
    HolgerS
    wrote on last edited by
    #1

    Hi,

    I am trying using a EGLFS configuration file along the lines of:

    https://doc.qt.io/qt-5/embedded-linux.html

    My configuration file looks like this:

    {
      "device": "/dev/dri/card0",
      "outputs": [
          { "name": "HDMI-A-1", "mode": "1920x1080" },
          { "name": "DP-1", "mode": "1920x1080", "clones": "HDMI-A-1" },
          { "name": "DP-2", "mode": "1920x1080", "clones": "HDMI-A-1" },
      ]
    }
    

    I store this configuration in the file /etc/eglfs.conf.

    When I try to load it using the variable QT_QPA_EGLFS_KMS_CONFIG I get the error:

    qt.qpa.eglfs.kms: Invalid config file "/etc/eglfs.conf"  -- no top-level JSON object
    

    Apparently, my configuration is incomplete.

    What is missing?

    Best,
    Holger

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

      Hi,

      Your JSON is invalid (meaning the file format). Remove the coma after the last outputs entry.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      JonBJ H 2 Replies Last reply
      1
      • SGaistS SGaist

        Hi,

        Your JSON is invalid (meaning the file format). Remove the coma after the last outputs entry.

        JonBJ Online
        JonBJ Online
        JonB
        wrote on last edited by
        #3

        @SGaist
        Yes, and isn't this an absolutely infuriating aspect of JSON...?!

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

          I wouldn't go as far as that. The format being strict avoids the need to write parser that must support that kind of cases which may or may not indicate that an entry might be missing.

          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
          • SGaistS SGaist

            Hi,

            Your JSON is invalid (meaning the file format). Remove the coma after the last outputs entry.

            H Offline
            H Offline
            HolgerS
            wrote on last edited by
            #5

            @SGaist Thanks! Didn't see that one. I was too distracted by the error message "no top-level JSON object", thinking there was something fundamentally wrong with the structure of my JSON.

            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