GDM no wayland option

Hello I use the bazzite-gnome-nvidia image but the wayland option doesnt appear in GDM after boot and the session used is X11. I know that on generic distros you can tinker a bit with the GDM configuration however that didnt completely work for me even then. Is it possible to tinker with some configs to enable Wayland in GDM on an immutable distro like Bazzite or is there another way to do it? Thanks
Solution:
I don't know why or how but I think it's kinda solved now
Jump to solution
21 Replies
wolfyreload
wolfyreloadβ€’7mo ago
I thought that just the default was changed to X11 for the nvidia images (because wayland was giving a huge number of issues for people), let me see if I can reproduce not being able to switch.
Phunox
PhunoxOPβ€’7mo ago
It also only happens sometimes For example logging in to X11 and out, sometimes I can switch to wayland then But then Wayland Just Sets me Back to GDM so its pretty rare that I'm actually able to use it
wolfyreload
wolfyreloadβ€’7mo ago
Struggling to reproduce. Could you please run rpm-ostree status | fpaste and paste the link, I'd like to see exactly what version of bazzite you have running
Phunox
PhunoxOPβ€’7mo ago
okay thanks for trying to reproduce https://paste.centos.org/view/cec37de2
wolfyreload
wolfyreloadβ€’7mo ago
I'm rebasing to bazzite-gnome-nvidia:40-stable-20240502 and I'll see if I can reproduce. I'm on 40-stable-20240505
Phunox
PhunoxOPβ€’7mo ago
Okay thanks
wolfyreload
wolfyreloadβ€’7mo ago
I've rebased to your version, and I can switch between wayland and x11 without issue. journalctl -n 100 --no-pager have a look at the last 100 items in your event log when it fails to log you into a wayland session, hopefully there is an error message to go on
Phunox
PhunoxOPβ€’7mo ago
I think it doesnt even try to load wayland sometimes.
Phunox
PhunoxOPβ€’7mo ago
Phunox
PhunoxOPβ€’7mo ago
I hope thats the right part of the log
wolfyreload
wolfyreloadβ€’7mo ago
Guessing here but looking at the log, it looks like gnome shell is getting a fatal error and then you getting booted back to the login screen. Maybe try disable all the gnome extensions and see if you can get into a wayland session
Phunox
PhunoxOPβ€’7mo ago
Loading into the wayland session works most of the time when there's the option in the login screen, however, sometimes, the option for wayland isn't even displayed in the login screen. The problem also existed on other distros (Arch, OpenSUSE,...), however, I was not able to find a solution to it yet. Maybe it's a problem with GDM or NVIDIA in general and there's nothing to be done about it
wolfyreload
wolfyreloadβ€’7mo ago
I found this link https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1008296 it looks the wayland option isn't available in certain scenarios based on this file /etc/udev/rules.d/61-gdm.rules. What hardware are you using?
Phunox
PhunoxOPβ€’7mo ago
I have an RTX 4060Ti, a Ryzen 5 5600x and two monitors, one connected via HDMIand one connected with a DP to HDMI cable
Solution
Phunox
Phunoxβ€’7mo ago
I don't know why or how but I think it's kinda solved now
wolfyreload
wolfyreloadβ€’7mo ago
πŸ˜• That's weird... but in a good way πŸ˜† . Good news, did you do an update?
Phunox
PhunoxOPβ€’7mo ago
Yes but I'm still surprised because it worked equally bad on every distro before πŸ˜…πŸ˜‚ Thanks for your help
wolfyreload
wolfyreloadβ€’7mo ago
Probably worth pinning your current image with sudo ostree admin pin 0 then if it breaks again you always have a saved image to return to
Phunox
PhunoxOPβ€’7mo ago
good idea, thanks
M2
M2β€’7mo ago
If gdm runs in Xorg, it will only show Xsessions. In /run/gdm you should be able to see how udev determined your hardware support. If the file no-wayland gets created gdm will run in X. If gdm crashes it will also fallback to X.
Phunox
PhunoxOPβ€’7mo ago
Okay. Thanks for the info
Want results from more Discord servers?
Add your server