wayland - weston - and framebuffer

Pekka Paalanen ppaalanen at gmail.com
Fri Mar 13 03:54:40 PDT 2015


On Fri, 13 Mar 2015 10:55:38 +0100
Thilo Cestonaro <thilo at cestona.ro> wrote:

> Hey Pekka,
> 
> 1.7.0 still gets signal 11. See the log appended.
> Can I somehow debug more then the output?
> 
> One thing I totally forget to mention is, that I added the pixel-format 
> BGRA to fbdev to be recognized.
> But as pixman already defines the type, it shouldn't be the problem.
> Here is the patch which I applied:
> ----------------------------------------
> diff -Naur a/src/compositor-fbdev.c b/src/compositor-fbdev.c
> --- a/src/compositor-fbdev.c	2015-03-13 09:58:04.383414803 +0100
> +++ b/src/compositor-fbdev.c	2015-03-13 10:03:12.167400456 +0100
> @@ -295,6 +295,10 @@
>   	         vinfo->green.offset >= vinfo->blue.offset &&
>   	         vinfo->blue.offset >= vinfo->transp.offset)
>   		type = PIXMAN_TYPE_RGBA;
> +	else if (vinfo->blue.offset >= vinfo->green.offset &&
> +	         vinfo->green.offset >= vinfo->red.offset &&
> +	         vinfo->red.offset >= vinfo->transp.offset)
> +		type = PIXMAN_TYPE_BGRA;

Can't immediately imagine that being a problem.

> 
>   	if (type == PIXMAN_TYPE_OTHER)
>   		return 0;
> ----------------------------------------
> 
> And here is the output of my try to start weston:
> ----------------------------------------
> root at d3355-BB-76-99:~# rm weston.log
> root at d3355-BB-76-99:~# cat bin/start-weston
> #!/bin/sh
> openvt -c 7 -w -v -- weston --backend=fbdev-backend.so 
> --log=/home/root/weston.log
> root at d3355-BB-76-99:~# bin/start-weston
> root at d3355-BB-76-99:~# cat weston.log
> Date: 2015-03-13 CET
> [10:49:07.470] weston 1.7.0
>                 http://wayland.freedesktop.org
>                 Bug reports to: 
> https://bugs.freedesktop.org/enter_bug.cgi?product=Wayland&component=weston&version=1.7.0
>                 Build: 1.6.93-9-gdbd8606 configure.ac: bump to version 
> 1.7.0 for release (2015-02-13 20:47:09 -0800)
> [10:49:07.471] OS: Linux, 3.14.10, #1 SMP Wed Mar 11 10:26:14 CET 2015, 
> armv7l
> [10:49:07.477] Using config file '/home/root/.config/weston.ini'
> [10:49:07.485] Loading module '/usr/lib/weston/fbdev-backend.so'
> [10:49:07.549] initializing fbdev backend
> [10:49:07.556] logind: failed to get session seat
> [10:49:07.557] logind: cannot setup systemd-logind helper (-2), using 
> legacy fallback
> [10:49:07.557] Creating fbdev output.
> [10:49:07.558] Opening fbdev frame buffer.
> [10:49:07.558] Calculating pixman format from:
>                  - type: 0 (aux: 0)
>                  - visual: 2
>                  - bpp: 24 (grayscale: 0)
>                  - red: offset: 0, length: 8, MSB: 0
>                  - green: offset: 8, length: 8, MSB: 0
>                  - blue: offset: 16, length: 8, MSB: 0
>                  - transp: offset: 0, length: 0, MSB: 0
> [10:49:07.558] Mapping fbdev frame buffer.
> [10:49:07.559] fbdev output 480×272 px
>                 guessing 60 Hz and 96 dpi
> [10:49:07.568] input device 'Atmel maXTouch Touchscreen', 
> /dev/input/event1 is tagged by udev as: Touchscreen
> [10:49:07.568] input device 'Atmel maXTouch Touchscreen', 
> /dev/input/event1 is a touch device
> [10:49:07.573] input device 'HID 1267:0103', /dev/input/event2 is tagged 
> by udev as: Keyboard
> [10:49:07.573] input device 'HID 1267:0103', /dev/input/event2 is a 
> keyboard
> [10:49:07.578] input device 'HID 1267:0103', /dev/input/event3 is tagged 
> by udev as: Keyboard
> [10:49:07.578] input device 'HID 1267:0103', /dev/input/event3 is a 
> keyboard
> [10:49:07.581] input device 'd3355_pwrbtn_input', /dev/input/event0 is 
> tagged by udev as: Keyboard
> [10:49:07.581] input device 'd3355_pwrbtn_input', /dev/input/event0 is a 
> keyboard
> [10:49:07.582] launching '/usr/libexec/weston-keyboard'
> [10:49:07.797] Compositor capabilities:
>                 arbitrary surface rotation: yes
>                 screen capture uses y-flip: yes
>                 presentation clock: CLOCK_MONOTONIC_RAW, id 4
> [10:49:07.801] Loading module '/usr/lib/weston/fullscreen-shell.so'
> [10:49:07.806] caught signal: 11
> root at d3355-BB-76-99:~#

Why are you trying everything else except desktop shell?

Fullscreen shell is intended mainly for running another compositor
under Weston, and the protocol is incompatible with normal (desktop)
apps. Fullscreen shell also does not show anything by default, so you'd
be looking at a black screen if it worked, IIRC.

If you don't know how to use gdb on your platform to get a proper stack
trace, there is nothing we can do for you.


Thanks,
pq


More information about the wayland-devel mailing list