Ubuntu Wayland 会话无法启动

Ubuntu Wayland 会话无法启动

几周前我安装了 Ubuntu 22.04,那次我没有测试 Wayland。我实际上从未在 gdm3 配置中编辑任何内容(仅编辑了壁纸和外观)。然后我想使用 Wayland 来使用 Waydroid,但会话立即崩溃了。我检查了一下journalctl,发现了一些与 Wayland Session 相关的错误

gnome-shell[2248]: Added device '/dev/dri/card0' (amdgpu) using atomic mode setting.
kernel: nvidia-modeset: WARNING: GPU:0: Correcting number of heads for current head configuration (0x00)
gnome-shell[2248]: Failed to initialize accelerated iGPU/dGPU framebuffer sharing: An EGLDisplay argument does not name a valid EGL display connection.
gnome-shell[2248]: Created gbm renderer for '/dev/dri/card1'
gnome-shell[2248]: Failed to detect hardware rendering: eglMakeCurrent(): An EGLDisplay argument does not name a valid EGL display connection.
gnome-shell[2248]: Failed to initialize accelerated iGPU/dGPU framebuffer sharing: Not hardware accelerated
gnome-shell[2248]: Created gbm renderer for '/dev/dri/card0'
gnome-shell[2248]: GPU /dev/dri/card1 selected as primary
gnome-shell[2248]: Failed to setup: Unable to initialize the Clutter backend: no available drivers found.
systemd[2045]: [email protected]: Failed with result 'protocol'.
systemd[2045]: Failed to start GNOME Shell on Wayland.

我认为这与我的 AMD GPU(或 NVIDIA GPU,因为第一行显示“已添加设备‘dev/dri/card0’ (amdgpu)”)有关,但当我尝试使用 X11(Xorg)时,它运行正常。我还尝试了以下解决方案:这里,而且也不起作用有人可以帮忙吗?

答案1

对于 Waydroid,您可以在 Weston 会话中使用它此主题,这样如果 Wayland 失败或者您选择返回 xorg 仍然可以运行它(脚本需要一些工作,我手动测试命令)。

相关内容