You are not logged in.
Issue:
I'm unable to select a GNOME Wayland session from the GDM login manager. When clicking the cogwheel icon, only X11 options are displayed. However, I can successfully start a Wayland session manually using the command
XDG_SESSION_TYPE=wayland dbus-run-session gnome-session. I've verified it's running under Wayland by checking "Windowing System" in GNOME Settings > System Details.
System Details:
Graphics Card: NVIDIA GeForce 1080 Ti
Driver Version: 535.113.01
GNOME Version: 45.0
System Status: Up-to-date
Distro: Arch Linux
What I've Tried:
Kernel Parameters: Added
nvidia_drm.modeset=1to kernel parameters. Confirmed with cat /proc/cmdline.
Module Loading: Added nvidia, nvidia_modeset, nvidia_uvm, and nvidia_drm modules via mkinitcpio and regenerated initramfs. Confirmed modules are loaded.
GDM Configuration: Made sure
WaylandEnable=falseis commented out in /etc/gdm/custom.conf.
Environment Variables: Set
GBM_BACKEND=nvidia-drmand
__GLX_VENDOR_LIBRARY_NAME=nvidia. Verified with echo $GBM_BACKEND and echo $__GLX_VENDOR_LIBRARY_NAME.
Additional NVIDIA Settings: Followed the Arch Wiki suggestions to set
NVreg_PreserveVideoMemoryAllocations=1and enabled the NVIDIA systemd services nvidia-suspend.service, nvidia-hibernate.service, and nvidia-resume.service.
Udev Rules: Created a symlink to /dev/null at
/etc/udev/rules.d/61-gdm.rulesto override the default rules.
Custom .desktop File: Attempted to create a custom .desktop file replicating the manual start command, but it doesn't appear in the session list.
Logs: Found no suspicious entries in journalctl -u gdm.service.
Seeking Help:
I've tried everything I could find but am still unable to get GNOME to start a Wayland session through GDM. Any help or additional troubleshooting steps would be greatly appreciated!
Last edited by master_icono (2023-10-29 08:37:19)
Offline
Logs: Found no suspicious entries in journalctl -u gdm.service.
Please post your complete system journal for the boot:
sudo journalctl -b | curl -F 'file=@-' 0x0.stOffline
Environment Variables: Set
GBM_BACKEND=nvidia-drmand
__GLX_VENDOR_LIBRARY_NAME=nvidia. Verified with echo $GBM_BACKEND and echo $__GLX_VENDOR_LIBRARY_NAME.
I went through this process recently with a 1050 Ti card.
One difference I note... I did not set those variables, and still get:
Oct 26 08:57:46 gnome-shell[939]: Created gbm renderer for '/dev/dri/card0'This thread never got any answer, but did you try without setting those EVs?
https://bbs.archlinux.org/viewtopic.php?id=280294
Offline
I am sure I restarted gdm about 50 times and restarted the system about 20 times while trying to find an answer. However, when I started the machine today after shutdown, everything worked as expected: the wayland entry in the login manager appeared and works as expected. Not really sure what happened because I did not change anything.
Thank you for your help, marking as solved.
Offline