Augustus007 发表于 2021-2-4 15:50:55

使用内核4.14.98之后,系统启动后wayland无法启动

本帖最后由 Augustus007 于 2021-2-24 13:22 编辑

使用4.14.98版本内核,系统启动之后,wayland无法启动,查看log如下:root@okmx8mm:~# cat /var/log/weston.log
Date: 2019-06-20 UTC
weston 5.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 5.0.0-30-g615567c-dirty gl-renderer: fix the build warning (2018-11-11 00:06:26 +0800)
Command line: /usr/bin/weston --log=/var/log/weston.log --xwayland --use-g2d=1
OS: Linux, 4.14.98, #2 SMP PREEMPT Thu Feb 4 14:16:35 CST 2021, aarch64
Using config file '/etc/xdg/weston/weston.ini'
Output repaint window is 16 ms maximum.
Loading module '/usr/lib/libweston-5/drm-backend.so'
initializing drm backend
logind: session control granted
using /dev/dri/card0
DRM: supports universal planes
DRM: supports atomic modesetting
DRM: does not support picture aspect ratio
Loading module '/usr/lib/libweston-5/g2d-renderer.so'
g2d_open fail.
g2d_renderer_create faile.
failed to initialize g2d render
fatal: failed to create compositor backend
root@okmx8mm:~# 这个问题该如何解决呢?
望不吝赐教。

谢谢!

djh 发表于 2021-2-4 16:22:29

下面是能正常启动的:通过对比可能是由于Loading module '/usr/lib/libweston-5/g2d-renderer.so'不正常引起的,具体的原因还需要您自己排查了,
root@okmx8mm:~# cat /var/log/weston.log
Date: 2019-06-20 UTC
weston 5.0.0
                     https://wayland.freedesktop.org
                     Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
                     Build: 5.0.0-30-g615567c-dirty gl-renderer: fix the build warning (2018-11-11 00:06:26 +0800)
Command line: /usr/bin/weston --log=/var/log/weston.log --xwayland --use-g2d=1
OS: Linux, 4.14.78, #1 SMP PREEMPT Tue Feb 25 03:59:49 UTC 2020, aarch64
Using config file '/etc/xdg/weston/weston.ini'
Output repaint window is 16 ms maximum.
Loading module '/usr/lib/libweston-5/drm-backend.so'
initializing drm backend
logind: session control granted
using /dev/dri/card0
DRM: supports universal planes
DRM: supports atomic modesetting
DRM: does not support picture aspect ratio
Loading module '/usr/lib/libweston-5/g2d-renderer.so'
event1- gpio-keys: is tagged by udev as: Keyboard
event1- gpio-keys: device is a keyboard
event0- InputEmulator: is tagged by udev as: Keyboard
event0- InputEmulator: device is a keyboard
DRM: head 'DSI-1' found, connector 33 is connected, EDID make 'unknown', model 'unknown', serial 'unknown'
Registered plugin API 'weston_drm_output_api_v1' of size 24
No backlight control for output 'DSI-1'
Output DSI-1 (crtc 31) video modes:
               1024x600@60.0, preferred, current, 44.0 MHz
associating input device event1 with output DSI-1 (none by udev)
associating input device event0 with output DSI-1 (none by udev)
Output 'DSI-1' enabled with head(s) DSI-1
Compositor capabilities:
               arbitrary su**ce rotation: no
               screen capture uses y-flip: no
               presentation clock: CLOCK_MONOTONIC, id 1
               presentation clock resolution: 0.000000001 s
Loading module '/usr/lib/weston/desktop-shell.so'
launching '/usr/libexec/weston-keyboard'
Loading module '/usr/lib/libweston-5/xwayland.so'
Registered plugin API 'weston_xwayland_v1' of size 32
Registered plugin API 'weston_xwayland_su**ce_v1' of size 16
xserver listening on display :0
launching '/usr/libexec/weston-desktop-shell'
zwp_text_input_v2_send_enter + serial 4
zwp_text_input_v2_send_enter -
页: [1]
查看完整版本: 使用内核4.14.98之后,系统启动后wayland无法启动