i.Mx6q dual display gles and egl

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.Mx6q dual display gles and egl

Jump to solution
2,004 Views
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 Solution
5 Replies
916 Views
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 Kudos
916 Views
jayaramks
Contributor III

Hi,

Try QT_QPA_EGLFS_FB environment variable.

i.mx6 dual display | Embedded Software Architecture Blog

Regards,

Jayaram

916 Views
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 Kudos
916 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Thanks for sharing the link jayaramks.

0 Kudos