Score:0

Ubuntu Wayland session won't start

ga flag

I installed Ubuntu 22.04 few weeks ago, and I didn't test Wayland that time. I never actually edit anything in the gdm3 configuration (only edited the wallpaper and appearance). Then I want to use Wayland to use Waydroid, but the session immediately crashed. I checked journalctl and found some errors related to 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]: org.gnome.Shell@wayland.service: Failed with result 'protocol'.
systemd[2045]: Failed to start GNOME Shell on Wayland.

I think it's somehow related to my AMD GPU (or either NVIDIA GPU, because at the first line it shows "Added device 'dev/dri/card0' (amdgpu)), but when I try using X11 (Xorg) it was working fine. I also tried doing the solution from here, and it also didn't work Anyone can help?

David avatar
cn flag
Add this info to the question with edit not as a comment.
nyomanmc avatar
ga flag
Did tried editing but apparently the edit didn't apply
Score:0
pw flag

Respect to Waydroid you can use it inside a Weston session according this thread, that way if Wayland fails or if you choose to going back to xorg still having a way to run it (the script needs a bit of work, I test the command manually).

nyomanmc avatar
ga flag
Yes that works and I still use that fallback solution, but I also do want the default ubuntu (gnome) wayland to work. Can you help me with that?
ltapia avatar
pw flag
I'm afraid not (personal preference of xorg) but hope others can and for that clarification its needed, I use integrated AMD with 22.04 myself and getting drivers to work was a long task, but you said that its working.
ltapia avatar
pw flag
I suggest if you can add more to the question: what gpu? what installation process you follow? and what is "works" (eg. xorg load and login but wayland not )? or if you already fixed it let us know
nyomanmc avatar
ga flag
The thing I meant "works" is the Weston session that you suggest me, and for the gpu I have integrated AMD GPU and discrete NVIDIA RTX 3050.@ltapia
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.