GDM - how to add a session that isn't in the list?

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
848
Reaction score
697
Credits
5,632
Until recently I was using LightDM with Cinnamon but due to some problems with waking up from suspend, I moved to GDM (again). That didn't fix the problem bc it turned out the problem was in the driver for this particular GPU. But LightDM also has another problem - no obvious way to switch sessions, whereas with GDM it's obvious. But I discovered it doesn't show all the sessions available for Cinnamon. From version 6.0 the Cinnamon devs have added an experimental support for Wayland, so I wanna try it. But when I exit the current Xorg session and click the gear icon on GDM, the Wayland session isn't there - only the Xorg session and "Software rendering" are there. However, when I go to /usr/share/cinnamon-session/sessions I can see 3 session files: GPU session (Xorg), "Software Rendering" AND a Wayland session file. But that Wayland session isn't being displayed in GDM.

So the question is: how do I add the Wayland session to the sessions list of GDM?

I did a lot of searching in the past hours about that but I couldn't find anything. I'm open to suggestions at this point.
 


When I still had an Nvidia gpu I had to do the following to get the Wayland session for Gnome to show up with GDM.
# ln -s /dev/null /etc/udev/rules.d/61-gdm.rules
Then restart gdm and see if your Cinnamon Wayland session shows up. That was about half a year ago, so things might have changed but it's still worth trying.
 
Last edited:
When I still had an Nvidia gpu I had to do the following to get the Wayland session for Gnome to show up with GDM.

Then restart gdm and see if your Cinnamon Wayland session shows up. That was about half a year ago, so things might have changed but it's still worth trying.
In my case (Arch) it turned out that this file was in /usr/lib/udev/rules.d. And since I'm curious by default, I decided to see what was inside it and noticed this:

Code:
# Disable wayland when nvidia modeset is disabled

So I just added another entry in grub with Arch (one entry without modeset and another WITH modeset enabled - in case the modeset entry doesn't work for whatever reason, I'll able to boot into a working system). I'll try that later cuz I gotta get out now, but I decided to stop by and share what I found so far thanks to your suggestion.
 

Members online


Top