[Solved] Cannot start wayland from gdm
In previous versions of Fedora I've been using gnome-xorg for the desktop session. So in e.g. Fedora 27 I've selected to login from gdm with an xorg session. I've upgraded to Fedora 28, but can't remember what I did to still continue running xorg. After using Fedora 28 for a while I wanted to try wayland again. But now there is no option in gdm to select wayland (I know it is supposed to be default). And even though I set WaylandEnable=true in /etc/gdm/custom.conf, it doesn't start wayland. The only way to start wayland is to open another console and run "dbus-run-session -- gnome-shell --display-server --wayland". This works. I also have nvidia drivers from negativo17 installed and use nvidia-drm.modeset=1 in kernel command line.
Somehow gdm isn't even trying to launch a wayland session when logging in. Is there a way to force it somehow?
I also upgraded the system to Fedora 29, but the problem is still the same.
There are no errors in the journal and only gdm-x-session entries about starting xorg. Nothing about wayland.
With gdm debugging on I get:
So it is requesting an X11 login?
and later:
It doesn't seem to have any impact if leaving or keeping "nvidia-drm.modeset=1" on the kernel command line.
@johanh related -> How_to_debug_Wayland_problems and troubleshooting
I've been looking at those. I can start wayland separately, but I would like to be able to launch a wayland session from gdm. Now this doesn't happen, it always defaults to xorg without even trying. I'm suspecting that the gdm session on this PC somehow is configured to always run xorg. Maybe reinstalling gdm? Or is there some session/configuration files for gdm?
Before starting a gnome-shell session, gdm also says:
gdm[1611]: GdmSession: checking if file 'gnome.desktop' is wayland session: no