You are not logged in.

#1 2023-10-27 16:34:10

master_icono
Member
Registered: 2023-10-27
Posts: 2

[SOLVED] Unable to Start GNOME Wayland Session from GDM

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:

  1. Kernel Parameters: Added

    nvidia_drm.modeset=1

    to kernel parameters. Confirmed with cat /proc/cmdline.

  2. Module Loading: Added nvidia, nvidia_modeset, nvidia_uvm, and nvidia_drm modules via mkinitcpio and regenerated initramfs. Confirmed modules are loaded.

  3. GDM Configuration: Made sure

    WaylandEnable=false

    is commented out in /etc/gdm/custom.conf.

  4. Environment Variables: Set

    GBM_BACKEND=nvidia-drm

    and

    __GLX_VENDOR_LIBRARY_NAME=nvidia

    . Verified with echo $GBM_BACKEND and echo $__GLX_VENDOR_LIBRARY_NAME.

  5. Additional NVIDIA Settings: Followed the Arch Wiki suggestions to set

    NVreg_PreserveVideoMemoryAllocations=1

    and enabled the NVIDIA systemd services nvidia-suspend.service, nvidia-hibernate.service, and nvidia-resume.service.

  6. Udev Rules: Created a symlink to /dev/null at

    /etc/udev/rules.d/61-gdm.rules

    to override the default rules.

  7. Custom .desktop File: Attempted to create a custom .desktop file replicating the manual start command, but it doesn't appear in the session list.

  8. 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

#2 2023-10-27 19:15:12

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,635

Re: [SOLVED] Unable to Start GNOME Wayland Session from GDM

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.st

Offline

#3 2023-10-28 18:50:40

tekstryder
Member
Registered: 2013-02-14
Posts: 582

Re: [SOLVED] Unable to Start GNOME Wayland Session from GDM

master_icono wrote:

Environment Variables: Set

GBM_BACKEND=nvidia-drm

and

__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

#4 2023-10-29 08:36:19

master_icono
Member
Registered: 2023-10-27
Posts: 2

Re: [SOLVED] Unable to Start GNOME Wayland Session from GDM

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

Board footer

Powered by FluxBB