i.Mx6q dual display gles and egl

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.Mx6q dual display gles and egl

跳至解决方案
2,079 次查看
jiejia
Contributor III

I can output  QT app to LVDS and HDMI. Now, I want to run dual-display gles1.1+egl (LVDS + HDMI) on an i.MX6q SabreSD.  I used the GLES1.1 example from vgu.tar, and the graphics is output to /dev/fb0(HDMI). But i can't make the graphics output to /dev/fb2(LVDS).

I try to do as follow,but no graphics is displayed on /dev/fb2. The graphics still output to /dev/fb0:

EGLNativeDisplayType   native_display  = fbGetDisplayByIndex(fbnum); // fbnum is an integer for /dev/fb2 fbnum = 2.

So how can we bind egl surface to a particular framebuffer?

1 解答
5 回复数
991 次查看
rans
Senior Contributor I

hello

I have the same issue.

I even tried to static link /dev/fb0 to /dev/fb2

with psplash I see the image on fb2

but with qt it keeps going to fb0

Whould I search the framebuffer memory to understand what's happening ?

Thanks

Ran

0 项奖励
991 次查看
jayaramks
Contributor III

Hi,

Try QT_QPA_EGLFS_FB environment variable.

i.mx6 dual display | Embedded Software Architecture Blog

Regards,

Jayaram

991 次查看
jiejia
Contributor III

Thanks for replying. I try the QT_QPA_EGLFS_FB(export QT_QPA_EGLFS_FB="/dev/fb2"), but the The graphics still output to /dev/fb0. My QT version is 4.8. Would it affect?

0 项奖励
992 次查看
jayaramks
Contributor III
0 项奖励
991 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Thanks for sharing the link jayaramks.

0 项奖励