This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2HG: 【QT】 eglfs support

Part Number: TDA2HG

Hello:

  we'are working on visionsdk 3.08 with QT 5.11.

 we'd prefer to use eglfs instead of weston.

and we try 

export QT_QPA_EGLFS_ALWAYS_SET_MODE='1'
export QT_QPA_EGLFS_INTEGRATION='eglfs_kms'
export QT_QPA_EGLFS_KMS_CONFIG='/etc/qt5/eglfs_kms_cfg.json'

but got

 

root@dra7xx-evm:/opt/ecarx/apps/avm# ./hello2 -platform eglfs               
Could not set DRM mode for screen Virtual1 (Permission denied)
Could not queue DRM page flip on screen Virtual1 (Permission denied)
Could not queue DRM page flip on screen Virtual1 (Permission denied)
^Croot@dra7xx-evm:/opt/ecarx/apps/avm# 

the json:

c/qt5/eglfs_kms_cfg.json
{
  "device": "/dev/dri/card0",
  "hwcursor": false,
  "pbuffers": true,
  "outputs": [
    {
      "name": "VGA1",
      "mode": "off"
    },
    {
      "name": "HDMI1",
      "mode": "1024x768"
    }
  ]
}

any help?