You are not logged in.

#1 2022-03-28 15:17:29

boocheus
Member
Registered: 2022-03-28
Posts: 21

{SOLVED] Unable to log into Wayland with Nvidia + gnome.

I used to be able to log into Wayland with Nvidia but along the way, somthing broke it.
Here is the log. https://pastebin.com/tyMn1PwR

Last edited by boocheus (2022-04-03 19:03:30)

Offline

#2 2022-03-28 16:31:54

seth
Member
Registered: 2012-09-03
Posts: 60,544

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

https://wiki.archlinux.org/title/NVIDIA#Early_loading - kernel parameter and initramfs additions.
If it still fails, please post "sudo journalctl -b", no excerpt, and no "-x" (that's just spam that makes the journal hard to read)

Offline

#3 2022-03-28 19:08:03

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

seth wrote:

https://wiki.archlinux.org/title/NVIDIA#Early_loading - kernel parameter and initramfs additions.
If it still fails, please post "sudo journalctl -b", no excerpt, and no "-x" (that's just spam that makes the journal hard to read)

Thank you very much. This has solved my issue.
Incase anyone stumbles upon this with the same issue. This is what I did.

I added a pacman hook for nvidia with the following:

sudo gedit /etc/pacman.d/hooks/nvidia.hook

[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia

[Action]
Description=Update Nvidia module in initcpio
Depends=mkinitcpio
When=PostTransaction
Exec=/usr/bin/mkinitcpio -P.


Then I created the nvidia-modprobe utility automatically invoking the nvidia-modprobe via

sudo gedit /etc/udev/rules.d/70-nvidia.rules

ACTION=="add", DEVPATH=="/bus/pci/drivers/nvidia", RUN+="/usr/bin/nvidia-modprobe -c0 -u".


Then I ran:

sudo gedit /etc/mkinitcpio.conf

MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm).

If any existing modules are in the brackets, leave them there.

Finally I ran sudo mkinitcpio -P and rebooted.

Last edited by boocheus (2022-04-03 11:43:01)

Offline

#4 2022-03-28 20:30:42

seth
Member
Registered: 2012-09-03
Posts: 60,544

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

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 2022-04-02 20:20:37

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

seth wrote:

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.

The issue has come back. Here is the log.
https://pastebin.com/tyMn1PwR

I tried redoing the steps i mentioned prior but to no avail.

Offline

#6 2022-04-02 20:58:07

seth
Member
Registered: 2012-09-03
Posts: 60,544

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

Apr 02 21:14:14 archlinux kernel: [drm:drm_new_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000600] Failed to grab modeset ownership

Did you possibly configure https://wiki.archlinux.org/title/GDM#Use_Xorg_backend and what if you don't?

Offline

#7 2022-04-02 21:46:30

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

seth wrote:
Apr 02 21:14:14 archlinux kernel: [drm:drm_new_set_master [drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000600] Failed to grab modeset ownership

Did you possibly configure https://wiki.archlinux.org/title/GDM#Use_Xorg_backend and what if you don't?

No I did not. This is what is in the file.

# GDM configuration storage

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

[security]

[xdmcp]

[chooser]

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

Also what you mean "and what if you dont" you want me to undo the steps i did to fix the issue prior?

Last edited by boocheus (2022-04-03 11:41:38)

Offline

#8 2022-04-03 07:11:33

seth
Member
Registered: 2012-09-03
Posts: 60,544

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

"what if you dont" configure it to run on X11.
So, then why is GDM running on X11?

lsinitcpio /boot/initramfs-linux-xanmod.img | grep nvidia

and I could see possible interference from libvirtd/kvm, so you might try to disable that service and see whether that reproduces sane boots (you can still start it later, during the session)

Edit: and please also use code tags, https://bbs.archlinux.org/help.php#bbcode - edit your previous posts itr.

Last edited by seth (2022-04-03 07:12:38)

Offline

#9 2022-04-03 11:53:26

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

seth wrote:

"what if you dont" configure it to run on X11.
So, then why is GDM running on X11?

lsinitcpio /boot/initramfs-linux-xanmod.img | grep nvidia

and I could see possible interference from libvirtd/kvm, so you might try to disable that service and see whether that reproduces sane boots (you can still start it later, during the session)

Edit: and please also use code tags, https://bbs.archlinux.org/help.php#bbcode - edit your previous posts itr.

I disabled libvirtd but still wayland wont work. Here is the log https://pastebin.com/F5EmJDVy

Also, what do you mean by

seth wrote:

why is GDM running on X11. .

I installed arch with X11 first but im really confused by what you are talking about.
Should I change what GDM is running on? Can you tell me how?

Last edited by boocheus (2022-04-03 12:25:08)

Offline

#10 2022-04-03 12:57:42

seth
Member
Registered: 2012-09-03
Posts: 60,544

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

Apr 03 12:48:25 archlinux systemd[1]: Started Session 1 of User gdm.
Apr 03 12:48:25 archlinux gdm-launch-environment][972]: pam_env(gdm-launch-environment:session): deprecated reading of user environment enabled
Apr 03 12:48:25 archlinux audit[972]: USER_START pid=972 uid=0 auid=120 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_loginuid,pam_keyinit,pam_succeed_if,pam_permit,pam_systemd,pam_env acct="gdm" exe="/usr/lib/gdm-session-worker" hostname=archlinux addr=? terminal=/dev/tty1 res=success'
Apr 03 12:48:27 archlinux /usr/lib/gdm-x-session[2387]: (--) Log file renamed from "/var/lib/gdm/.local/share/xorg/Xorg.pid-2387.log" to "/var/lib/gdm/.local/share/xorg/Xorg.0.log"

GDM runs on X11, not on wayland. And it doesn't even attempt to.
You could try to explicitly enable "WaylandEnable=true" and please also post an older journal from when logging into a wayland session was assumingly working.

Last edited by seth (2022-04-03 12:59:42)

Offline

#11 2022-04-03 13:06:46

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

seth wrote:
Apr 03 12:48:25 archlinux systemd[1]: Started Session 1 of User gdm.
Apr 03 12:48:25 archlinux gdm-launch-environment][972]: pam_env(gdm-launch-environment:session): deprecated reading of user environment enabled
Apr 03 12:48:25 archlinux audit[972]: USER_START pid=972 uid=0 auid=120 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_loginuid,pam_keyinit,pam_succeed_if,pam_permit,pam_systemd,pam_env acct="gdm" exe="/usr/lib/gdm-session-worker" hostname=archlinux addr=? terminal=/dev/tty1 res=success'
Apr 03 12:48:27 archlinux /usr/lib/gdm-x-session[2387]: (--) Log file renamed from "/var/lib/gdm/.local/share/xorg/Xorg.pid-2387.log" to "/var/lib/gdm/.local/share/xorg/Xorg.0.log"

GDM runs on X11, not on wayland. And it doesn't even attempt to.
You could try to explicitly enable "WaylandEnable=true" and please also post an older journal from when logging into a wayland session was assumingly working.

I tried doing that and it didnt work, also I dont know where I would find such a journal.

Offline

#12 2022-04-03 13:10:45

seth
Member
Registered: 2012-09-03
Posts: 60,544

Offline

#13 2022-04-03 14:58:14

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

Log is too big to send anywhere, can you give me your email?

Offline

#14 2022-04-03 15:22:13

seth
Member
Registered: 2012-09-03
Posts: 60,544

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

No - and the log won't be too big either.

sudo journalctl -b -5 # assuming it worked 5 boots ago

Offline

#15 2022-04-03 17:42:42

boocheus
Member
Registered: 2022-03-28
Posts: 21

Re: {SOLVED] Unable to log into Wayland with Nvidia + gnome.

I just realized the issue...

Haha its so simple. I experimented with kde and hated it so i nuked it off my machine.

I must have uninstalled some needed dependencies for wayland becuase it was working while i was using kde. Which was only for 1 day.

Ill see if i can fix this without a reinstall but i wont hold my hopes up. Ill update the title when ive fixed the issue

Edit; ill have to resintall. Ill consider this fixed.

Last edited by boocheus (2022-04-03 19:03:16)

Offline

Board footer

Powered by FluxBB