wayland 1.9 cannot display multi screen

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

wayland 1.9 cannot display multi screen

3,807 Views
wangzhigang
Contributor III

hi everyone,

  we want to use yocto(qt5.5+wayland) for our project.our env is:

imx6q

yocto(qt5.5.1+wayland imx-3.14.52-1.1.0_ga)

kernel(3.14)

display(lvds+hdmi+svideo)

we want to get multi display(lvds+hdmi+svideo) in yocto.

1. yocot(qt5.3.2+wayland imx-3.14.28-1.0.0_ga) + kernel(3.10.53)

we success to compile yocto,and we can get the multi display with the follow command:

weston --tty=2 --device=/dev/fb0,/dev/fb2 --use-gal2d=1 &    (just use two display)

but the we don't want to use qt5.3 for our project,so we use the latest yocot .

2.yocto(qt5.5.1+wayland imx-3.14.52-1.1.0_ga) + kernel(3.14)

we sure the /dev/fb0 and /dev/fb2 is no problem.

we success to compile the latest yocto,and we can get into the desktop.but we can't get the multi display with the follow command(the display is all blue):

weston --tty=2 --device=/dev/fb0,/dev/fb2 --use-gal2d=1 &

the log is:

root@imx6qsabresd:~# weston --tty=2 --device=/dev/fb0,/dev/fb2 --use-gal2d=1 &

[1] 505

root@imx6qsabresd:~# Date: 2016-01-28 UTC

[17:48:41.778] weston 1.9.0

               http://wayland.freedesktop.org

               Bug reports to: https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.9.0

               Build: 1.8.93-2-gb05cdb8 configure.ac: bump to version 1.9.0 for the official release (2015-09-21 18:11:26 -0700)

[17:48:41.779] OS: Linux, 3.14.52-gf55f3a4-dirty, #3 SMP PREEMPT Tue Feb 23 12:40:39 CST 2016, armv7l

[17:48:41.779] Starting with no config file.

[17:48:41.780] Loading module '/usr/lib/weston/fbdev-backend.so'

[17:48:41.797] Output repaint window is 7 ms maximum.

[17:48:41.798] initializing fbdev backend

[17:48:41.798] Loading module '/usr/lib/weston/gal2d-renderer.so'

[17:48:41.803] param->device=/dev/fb0,/dev/fb2

[17:48:41.803] Creating fbdev output. /dev/fb0 x=0 y=0

[17:48:41.803] Opening fbdev frame buffer.

[17:48:41.803] Calculating pixman format from:

                - type: 0 (aux: 0)

                - visual: 2

                - bpp: 32 (grayscale: 0)

                - red: offset: 16, length: 8, MSB: 0

                - green: offset: 8, length: 8, MSB: 0

                - blue: offset: 0, length: 8, MSB: 0

                - transp: offset: 24, length: 8, MSB: 0

[17:48:41.803] Number of buffers=1

[17:48:41.824] fbdev output 1920×1080 px

               guessing 56 Hz and 96 dpis

[17:48:41.825] Creating fbdev output. /dev/fb2 x=1920 y=0

[17:48:41.825] Opening fbdev frame buffer.

[17:48:41.825] Calculating pixman format from:

                - type: 0 (aux: 0)

                - visual: 2

                - bpp: 32 (grayscale: 0)

                - red: offset: 16, length: 8, MSB: 0

                - green: offset: 8, length: 8, MSB: 0

                - blue: offset: 0, length: 8, MSB: 0

                - transp: offset: 24, length: 8, MSB: 0

[1]+  Segmentation fault      weston --tty=2 --device=/dev/fb0,/dev/fb2 --use-gal2d=1

we also use the official file  (L3.14.52_1.1.0-ga_images_MX6QDLSOLO.tar.gz)for test,and we have the same problem.

can yocto(qt5.5.1+wayland imx-3.14.52-1.1.0_ga) + kernel(3.14)  use weston to display multi screen.

Please give me a handle.

Best Regards.

5 Replies

1,453 Views
anurags
Contributor I

Hi Wang,

I am facing the same issue posted by you.

I am unable to run weston on multiple displays(fb0 and fb2).

I am using the same yocto build: yocto(qt5.5.1+wayland imx-3.14.52-1.1.0_ga) + kernel(3.14) used by you.

I am struggling to resolve it.

Wang, Please help if you have already resolve this issue.

Thanks

Anurag

0 Kudos

1,453 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi wang

L3.14.52 has a known issue where the fbGetDisplay function called by the fbdev compositor on weston does not return a different display index, thus not being able to render on multiple screens at a time, You need to use the latest fsl_5.0.11.p7 Libraries to solve it.

GitHub - Freescale/kernel-module-imx-gpu-viv: FSL Community fork of Vivante i.MX GPU Linux kernel dr...

The Makefile patch will be included in next release.

Hope this helps

0 Kudos

1,453 Views
jjohn
Contributor II

Hi,

I am also trying the multi display with Wayland weston ( HDMI & LVDS) on Quad variant of Sabre Platform and same issue here. The version details are given below

Linux 4.1.15-1.1.1
Qt 5.5.1
Weston 1.9.0

kernel-module-imx-gpu-viv  5.0.11.p8.3

I cant even find the 'use-gal2d' option in Weston 1.9.0, is there any way to make the multi display working with weston 1.9.0.

0 Kudos

1,453 Views
wangzhigang
Contributor III

hi,Bio

   I test 5.0.11.p7.4 and 5.0.11.p7.1 ,now  I can run into wayland desktop,but weston still can't display multi screen,and the desktop become all bule.

0 Kudos

1,453 Views
wangzhigang
Contributor III

hi,Bio

   thanks for your replay,I replace the code like that:

     replace kernel-module-imx-gpu-viv-src to  KERNEL_DIR/drivers/mxc/gpu-viv

  and then :

     make uImage -j4 LOADADDR=0x10008000

  I can't run into the wayland destktop at all,It become worse.

  I use the latest fsl_5.0.11.p7 Libraries,but I don't solve my problem,

Please give me a handle.

Best Regards.

0 Kudos