Dual Screen(LDS+HDMI) with wayland & eglfs

cancel
Showing results for 
Search instead for 
Did you mean: 

Dual Screen(LDS+HDMI) with wayland & eglfs

Jump to solution
4,524 Views
jjohn
Contributor II

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.

1 Solution
812 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi jjhon,

Currently there is an issue when running weston/wyaland in two display, that second display can not work with full screen mode, so I strongly suggest to trying to minimize the resolution of the second display.

Please find below the instructions to run Weston on 2 displays as extended desktop. This assumes you have 2 LVDS screens connected:

  /etc/init.d/weston stop

 export XDG_RUNTIME_DIR=/var/run

 export QT_QPA_PLATFORM=wayland

 weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb0,/dev/fb4 &

 echo 0 > /sys/class/graphics/fb4/blank

Hope this helps

View solution in original post

1 Reply
813 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi jjhon,

Currently there is an issue when running weston/wyaland in two display, that second display can not work with full screen mode, so I strongly suggest to trying to minimize the resolution of the second display.

Please find below the instructions to run Weston on 2 displays as extended desktop. This assumes you have 2 LVDS screens connected:

  /etc/init.d/weston stop

 export XDG_RUNTIME_DIR=/var/run

 export QT_QPA_PLATFORM=wayland

 weston --tty=1 --use-gal2d=1 --use-gl=0 --device=/dev/fb0,/dev/fb4 &

 echo 0 > /sys/class/graphics/fb4/blank

Hope this helps

View solution in original post