Wayland stopped working with latest F40 update

I just applied the latest update to Fedora 40. On the next boot I noticed that gnome felt laggy - I realised that it’s actually running an X11 session, and not Wayland.

I have an AMD 6700 XT GPU, and previously have been using Wayland happily for over a year.

According to journalctl -b _UID=42 I have GPU errors on startup:

Started dbus-broker.service - D-Bus User Message Bus.
Ready
dbus-daemon[1586]: [session uid=42 pid=1586] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=42 pid=1587 comm="/usr/libexec/gnom>
dbus-daemon[1586]: [session uid=42 pid=1586] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
gnome-session-binary[1587]: WARNING: Could not check if unit gnome-session-wayland@gnome-login.target is active: Error calling StartServiceByName for org.fr>
WARNING: Could not check if unit gnome-session-wayland@gnome-login.target is active: Error calling StartServiceByName for org.freedesktop.systemd1: Process >
Running GNOME Shell (using mutter 46.0) as a Wayland display server
Made thread 'KMS thread' realtime scheduled
Device '/dev/dri/card1' prefers shadow buffer
Added device '/dev/dri/card1' (amdgpu) using atomic mode setting.
Failed to initialize accelerated iGPU/dGPU framebuffer sharing: No EGL display
Created gbm renderer for '/dev/dri/card1'
Boot VGA GPU /dev/dri/card1 selected as primary
Failed to setup: The GPU /dev/dri/card1 chosen as primary is not supported by EGL.
gnome-session-binary[1587]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Unrecoverable failure in required component org.gnome.Shell.desktop
dbus-daemon[1586]: [session uid=42 pid=1586] Activating service name='ca.desrt.dconf' requested by ':1.2' (uid=42 pid=1587 comm="/usr/libexec/gnome-session->
dbus-daemon[1586]: [session uid=42 pid=1586] Successfully activated service 'ca.desrt.dconf'
(--) Log file renamed from "/var/lib/gdm/.local/share/xorg/Xorg.pid-1656.log" to "/var/lib/gdm/.local/share/xorg/Xorg.0.log"
X.Org X Server 1.20.14
X Protocol Version 11, Revision 0

The relevant errors seem to be: Failed to initialize accelerated iGPU/dGPU framebuffer sharing: No EGL display and Failed to setup: The GPU /dev/dri/card1 chosen as primary is not supported by EGL. before gnome crashes and X11 starts up.

Any ideas to try and fix this? I tried a dnf downgrade to gnome-shell and mutter which didn’t fix it. I also tried booting into my older Kernel 6.9.x and it didn’t help.

Thanks!

I have solved this for the most part. I had previously manually installed the amdgpu drivers to get local LLM inference working on my GPU. It seems like the latest update now defaulted to these drivers instead of mesa. By removing everything amdgpu related from dnf, it now successfully boots into Wayland.

2 Likes