path: root/mkspecs
diff options
authorLaszlo Agocs <>2014-01-16 14:01:04 +0100
committerThe Qt Project <>2014-01-16 15:52:21 +0100
commit87d2fa5f849b0877b75d29113ec7dd3613827904 (patch)
tree969015cb2223b6029b7dec761ce63de2ad3a5862 /mkspecs
parent894ce8aaab8d3319a704deb73cb5109d092df0aa (diff)
eglfs: Allow using a different framebuffer device
Right now /dev/fb0 is hardcoded. This is not ideal. Therefore QT_QPA_EGLFS_FB is introduced. This environment variable can be set to a different framebuffer device. Once it is set, eglfs will use the specific device. This is similar to linuxfb's fb=... plugin parameter. The actual behavior depends on the board-specific implementations. For now only iMX6 has real support. It extracts the index from the device name as bind the EGL display to the corresponding framebuffer using the vendor-specific fbGetDisplayByIndex(). Other hooks can follow suit later on. With this patch eglfs is at least on par with linuxfb, meaning that, if the board supports it, different apps can run on different screens. Task-number: QTBUG-36113 Change-Id: Ia3c88bd06e108bc668433e3c5c3fce34a5a0e73d Reviewed-by: Jørgen Lind <>
Diffstat (limited to 'mkspecs')
1 files changed, 1 insertions, 1 deletions
diff --git a/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp b/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp
index c351e3dbc4..91c29b5ea9 100644
--- a/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp
+++ b/mkspecs/devices/linux-imx6-g++/qeglfshooks_imx6.cpp
@@ -72,7 +72,7 @@ QEglFSImx6Hooks::QEglFSImx6Hooks()
qputenv("FB_MULTI_BUFFER", "2");
- mNativeDisplay = fbGetDisplayByIndex(0);
+ mNativeDisplay = fbGetDisplayByIndex(framebufferIndex());
fbGetDisplayGeometry(mNativeDisplay, &width, &height);