You are not logged in.
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
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
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
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
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
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
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
"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
"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
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
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
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
Offline
Log is too big to send anywhere, can you give me your email?
Offline
No - and the log won't be too big either.
…
sudo journalctl -b -5 # assuming it worked 5 boots ago
Offline
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