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. EGLFS on Raspberry pi 4
QtWS25 Last Chance

EGLFS on Raspberry pi 4

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.3k Views
  • 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.
  • L Offline
    L Offline
    LucaOlimpio
    wrote on last edited by LucaOlimpio
    #1

    Hi.

    I have installed archlinux on a raspberry pi.
    I followed the "https://doc.qt.io/qt-5/embedded-linux.html" guide to use EGLFS with a dual screen.
    One of these screens is touchScreen and I have found that if I press anything on the 7 inch touch screen, it actually executes a command on the main HDMI screen.

    This is my json configuration.

    {
    "device":"/dev/dri/cardi",
    "hucursor": false,
    "buffers": true,
    "outputs": [
    {
    "nane":"HDMI-A-1",
    "virtualIndex":0
    },
    "name": "HDMI-A-2",
    "touchDevice":"/deu/input/event6",
    "virtualIndex":1
    }
    ]
    }

    To launch the application I run:
    export QT_QPA_EGLFS_KMS_CONFIG = "/home/config.json"

    ./myApp --platform eglfs

    The output is:

    "Cannot fin EGLConfig, returning null config"

    The application starts anyway. But with the touch screen not working on the right screen.

    jsulmJ 1 Reply Last reply
    0
    • L LucaOlimpio

      Hi.

      I have installed archlinux on a raspberry pi.
      I followed the "https://doc.qt.io/qt-5/embedded-linux.html" guide to use EGLFS with a dual screen.
      One of these screens is touchScreen and I have found that if I press anything on the 7 inch touch screen, it actually executes a command on the main HDMI screen.

      This is my json configuration.

      {
      "device":"/dev/dri/cardi",
      "hucursor": false,
      "buffers": true,
      "outputs": [
      {
      "nane":"HDMI-A-1",
      "virtualIndex":0
      },
      "name": "HDMI-A-2",
      "touchDevice":"/deu/input/event6",
      "virtualIndex":1
      }
      ]
      }

      To launch the application I run:
      export QT_QPA_EGLFS_KMS_CONFIG = "/home/config.json"

      ./myApp --platform eglfs

      The output is:

      "Cannot fin EGLConfig, returning null config"

      The application starts anyway. But with the touch screen not working on the right screen.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @LucaOlimpio said in EGLFS on Raspberry pi 4:

      "/ home / config.json"

      You have blanks in this path string

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • jsulmJ jsulm

        @LucaOlimpio said in EGLFS on Raspberry pi 4:

        "/ home / config.json"

        You have blanks in this path string

        L Offline
        L Offline
        LucaOlimpio
        wrote on last edited by LucaOlimpio
        #3

        @jsulm sorry, just a spelling mistake.
        If I get the path wrong, I get another error like "Failed to open "wrong/path/file".
        Therefore this is not the case, but thanks for the reply

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LucaOlimpio
          wrote on last edited by
          #4

          I found the mistake.

          In json file the names of the outputs were wrong.
          The real name is the name found by eglfs/kms.
          I found it from debug console of eglfs.
          I activate it with 'export QT_LOGGING_RULES="qt.qpa.*=true"
          The real name is "HDM1,HDM2".

          1 Reply Last reply
          1

          • Login

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