cancel
Showing results for 
Search instead for 
Did you mean: 

Qt trying to /dev/fb0 but my screen is on /dev/dri/card0 or so I think

danfly09
Associate

This is my current cursor.json file

{
 "device": "/dev/dri/card0",
 "outputs": [
      { "name": "HDMI-A-1", "mode": "1024x600", "size": "1024x600" }
 ],
 "hwcursor": false
}

Here are my env Qt variables

QT_QPA_EGLFS_ALWAYS_SET_MODE=1
QT_QPA_EGLFS_INTEGRATION=eglfs_viv
QT_QPA_EGLFS_KMS_CONFIG=/usr/share/qt5/cursor.json
QT_QPA_PLATFORM=eglfs
QT_QPA_EGLFS_KMS_ATOMIC=1

But when I try to run any Qt application I get this

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
EGLFS: Failed to open /dev/fb0
EGLFS: Can't continue without a display
Aborted (core dumped)

I have verified that /dev/fb0 does not exist, and /dev/dri/card0 does.

Finally, here is my modetest output, and reason why I have cursor.json file as it is.

...
Connectors:
id      encoder status          name            size (mm)       modes   encoders
33      32      connected       HDMI-A-1        470x260         10      32
  modes:
        index name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  #0 1024x600 59.82 1024 1068 1156 1344 600 603 609 625 50250 flags: phsync, nvsync; type: preferred, driver
...

0 REPLIES 0