Unsolved EGLFS Qt 5.12.7 x64 Intel N4200
-
Hello all,
I have a private build of Qt5.12.7 with EGLFS for intel 64bit, all running lovely, however our application requires the screen to be rotated in portrait orientation.I have the following environment settings
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
QTDIR=/opt/bassett/Qt5.12.7/
QT_QPA_EGLFS_DEBUG=1
QT_QPA_EGLFS_FORCE888=1
QT_QPA_EGLFS_HEIGHT=1080
QT_QPA_EGLFS_HIDECURSOR=1
QT_QPA_EGLFS_PHYSICAL_HEIGHT=598
QT_QPA_EGLFS_PHYSICAL_WIDTH=336
QT_QPA_EGLFS_ROTATION=90
QT_QPA_EGLFS_WIDTH=1080
QT_QPA_ENABLE_TERMINAL_KEYBOARD=1
QT_QPA_EVDEV_KEYBOARD_PARAMETERS=grab=1
QT_QPA_GENERIC_PLUGINS=evdevmouse,evdevkeyboard
QT_QPA_PLATFORM=eglfsoutput from the application at bring up is:
2020-03-23 17:53:14.307 UI: Created context for format QSurfaceFormat(version 2.0, options QFlagsQSurfaceFormat::FormatOption(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::DoubleBuffer, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) with config:
2020-03-23 17:53:14.307 UI: EGL_BUFFER_SIZE: 24
2020-03-23 17:53:14.307 UI: EGL_ALPHA_SIZE: 0
2020-03-23 17:53:14.307 UI: EGL_BLUE_SIZE: 8
2020-03-23 17:53:14.307 UI: EGL_GREEN_SIZE: 8
2020-03-23 17:53:14.307 UI: EGL_RED_SIZE: 8
2020-03-23 17:53:14.307 UI: EGL_DEPTH_SIZE: 24
2020-03-23 17:53:14.307 UI: EGL_STENCIL_SIZE: 8
2020-03-23 17:53:14.308 UI: EGL_CONFIG_CAVEAT: 12344
2020-03-23 17:53:14.308 UI: EGL_CONFIG_ID: 7
2020-03-23 17:53:14.308 UI: EGL_LEVEL: 0
2020-03-23 17:53:14.308 UI: EGL_MAX_PBUFFER_HEIGHT: 4096
2020-03-23 17:53:14.308 UI: EGL_MAX_PBUFFER_PIXELS: 0
2020-03-23 17:53:14.308 UI: EGL_MAX_PBUFFER_WIDTH: 4096
2020-03-23 17:53:14.308 UI: EGL_NATIVE_RENDERABLE: 1
2020-03-23 17:53:14.308 UI: EGL_NATIVE_VISUAL_ID: 875713112
2020-03-23 17:53:14.308 UI: EGL_NATIVE_VISUAL_TYPE: 12344
2020-03-23 17:53:14.308 UI: EGL_SAMPLES: 0
2020-03-23 17:53:14.308 UI: EGL_SAMPLE_BUFFERS: 0
2020-03-23 17:53:14.308 UI: EGL_SURFACE_TYPE: 4
2020-03-23 17:53:14.308 UI: EGL_TRANSPARENT_TYPE: 12344
2020-03-23 17:53:14.308 UI: EGL_TRANSPARENT_BLUE_VALUE: 0
2020-03-23 17:53:14.308 UI: EGL_TRANSPARENT_GREEN_VALUE: 0
2020-03-23 17:53:14.308 UI: EGL_TRANSPARENT_RED_VALUE: 0
2020-03-23 17:53:14.309 UI: EGL_BIND_TO_TEXTURE_RGB: 0
2020-03-23 17:53:14.309 UI: EGL_BIND_TO_TEXTURE_RGBA: 0
2020-03-23 17:53:14.309 UI: EGL_MIN_SWAP_INTERVAL: 1
2020-03-23 17:53:14.309 UI: EGL_MAX_SWAP_INTERVAL: 1
2020-03-23 17:53:14.360 UI-qml: CoffeeUI: width: 1080, height: 1920
2020-03-23 17:53:14.360 UI-qml: appContainer: rotation: 0, w/h=1080/1920(the last two lines are my debug showing that the top level QML application knows its with and height appropriately
but the application is still the wrong orientation, but only shows the bottom 2/3 of the required display.
If I change the environment so the width and height are back to 1920 and 1080, and no rotation defined, I can define my Application top level QML Item to have a rotation of 90, and all looks okay, until I need to use things like QML Popup or QML Drawer and they don't render / size correctly (they are still the landscape orientation) - hence why i'm now trying the EGLFS rotation...
any ideas?
Regards
RIchard