You are not logged in.

#1 2021-10-15 23:37:28

lirannl
Member
Registered: 2021-10-15
Posts: 10

Wayland doesn't appear as an option on first login per boot

Graphics: AMD + Nvidia 470 DKMS (5800HS + GTX1650)
Display server: Wayland (I have no issues with the Nvidia driver!)
DE: Gnome 41
DM: GDM
Linux: 5.14

Note: I cannot try using Nouveau for testing, it makes my laptop completely freeze.
What I've tried:
Here's my /usr/lib/udev/rules.d/61-gdm.rules:

# disable Wayland on Hi1710 chipsets
#ATTR{vendor}=="0x19e5", ATTR{device}=="0x1711", RUN+="/usr/lib/gdm-runtime-config set daemon WaylandEnable false"
# disable Wayland when using the proprietary nvidia driver
#DRIVER=="nvidia", RUN+="/usr/lib/gdm-runtime-config set daemon WaylandEnable false"
# disable Wayland if modesetting is disabled
#IMPORT{cmdline}="nomodeset", RUN+="/usr/lib/gdm-runtime-config set daemon WaylandEnable false"

/etc/gdm/custom.conf:

# GDM configuration storage

[daemon]
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=true

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
#Enable=true

Every time I reboot my computer and try to login, there's only one DE option (it's not listed because it's only one) - Gnome (Xorg). I have to log into it, on X11, then I can log out, and on subsequent login attempts (until I reboot), I have both Gnome and Gnome (Xorg), and I can log into a working wayland session, but it automatically disables all of my extensions (which I can re-enable, but they shouldn't turn off to begin with).

This doesn't happen if I uninstall the Nvidia driver, but I want to use my dGPU.

Manually restarting gdm after boot (by dropping into a tty) also works, but shouldn't gdm wait to start until all of the wayland stuff is ready?

Any suggestions on what I should try so that I don't have to log into an xorg session on first login?

Last edited by lirannl (2021-10-16 00:29:14)

Offline

#2 2021-10-16 06:41:04

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

Offline

#3 2021-10-19 23:18:35

lirannl
Member
Registered: 2021-10-15
Posts: 10

Re: Wayland doesn't appear as an option on first login per boot

Offline

#4 2021-10-20 06:27:31

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

Re: Wayland doesn't appear as an option on first login per boot

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#5 2021-10-21 21:20:27

Fingel
Member
Registered: 2009-02-28
Posts: 105

Re: Wayland doesn't appear as an option on first login per boot

I have this same problem, but adding the Nvidia modules to /etc/mkinitcpio.conf has made Wayland completely disappear as an option to log in to Gnome with, whereas before if I logged into X11 and then logged out, I could choose Wayland as an option.

/etc/mkinitcpio.conf:

MODULES=(btrfs nvidia nvidia_modeset nvidia_uvm nvidia_drm)
BINARIES=(/usr/bin/btrfs)
FILES=()
HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)

I did run mkinitcpio -P after modifying the config.

Something I'm missing here?

Last edited by Fingel (2021-10-21 21:21:39)

Offline

#6 2021-10-22 06:43:59

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

Re: Wayland doesn't appear as an option on first login per boot

lirannl wrote:

Manually restarting gdm after boot (by dropping into a tty) also works

Fingel wrote:

I have this same problem

True?

If so, did you maybe forget to mount the /boot partition and updated the wrong initramfs?
=> System journal?

Offline

Board footer

Powered by FluxBB