AnsweredAssumed Answered

Dual Screen(LDS+HDMI) with wayland & eglfs

Question asked by jjohn on Sep 24, 2016
Latest reply on Oct 4, 2016 by Bio_TICFSL

Hi All,

 

I am trying to configure dual screen setup (LVDS + HDMI) on Sabre SDP board with 4.1.15 bsp. Initially i tried with Wayland (weston) & ivi-extension, but ilm is identifying only one screen ( ilm_getScreenIDs ). So trying to use second display with eglsfs and associated QT environment variables to set the screen, still its failing with surface error as shown below.

root@imx6qsabresd:~# export QT_QPA_EGLFS_FB="/dev/fb2"

root@imx6qsabresd:~# export QT_QPA_EGLFS_PHYSICAL_WIDTH="1920"
root@imx6qsabresd:~# export QT_QPA_EGLFS_PHYSICAL_HEIGHT="1080"
root@imx6qsabresd:~# ./qtapp -platform eglfs

QML debugging is enabled. Only use this in a safe environment.
QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.
If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
EGL Error : Could not create the egl surface: error = 0x3003

Aborted

 

Interesting thing is that both wayland & eglfs always works fine on the first screen (mxcfb0) whether it is hdmi or lvds, i tested both the configurations.

 

Following are the associated messages from kernel log,

root@imx6qsabresd:~# dmesg| grep fb
[    0.000000] Kernel command line: console=ttymxc0,115200 video=mxcfb0:dev=ldb,if=RGB666 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24 root=/dev/mmcblk2p2 rootwait rw
[    0.361530] mxc_sdc_fb fb@0: registered mxc display driver ldb
[    0.478068] fbcvt: 1920x1080@60: CVT Name - 2.073M9
[    0.478182] mxc_sdc_fb fb@1: registered mxc display driver hdmi
[    0.518360] mxc_sdc_fb fb@2: registered mxc display driver lcd
[    0.518372] mxc_sdc_fb fb@2: ipu0-di0 already in use
[    0.518389] mxc_sdc_fb: probe of fb@2 failed with error -16
[    0.518451] mxc_sdc_fb fb@3: registered mxc display driver ldb
[    3.521815] platform caam_sm: [0000] 10 fb 65 ac ea 92 36 ab

Also i can see the correct modes via sysfs

root@imx6qsabresd:~# cat /sys/class/graphics/fb0/mode
U:1024x768p-60
root@imx6qsabresd:~# cat /sys/class/graphics/fb2/mode
S:1920x1080p-60

 

Please help.

Outcomes