You are not logged in.

#1 2024-06-11 21:39:07

glassyglass
Member
Registered: 2024-06-11
Posts: 15

[SOLVED] Unable to install nvidia drivers on fresh install

Hey, I've been trying to install nvidia drivers (got a gtx1060) following the guide and I've also tried this unofficial guide (separately) .
On reboot, after decrypting my drive, I get a black screen with only a non-blinking cursor on the top left and that's it. Only way to recover from this is to boot from the installation media and uninstall everything, undo the changes to mkinitcpio etc.

As for the journalctl, only relevant entries are these I believe:

Jun 11 23:30:05 deskarch systemd[1]: Started Session 1 of User gdm.
Jun 11 23:30:05 deskarch systemd[843]: Finished Update XDG user dir configuration.
Jun 11 23:30:05 deskarch systemd[843]: Reached target Main User Target.
Jun 11 23:30:05 deskarch systemd[843]: Startup finished in 199ms.
Jun 11 23:30:05 deskarch /usr/lib/gdm-x-session[854]: Unable to run X server
Jun 11 23:30:05 deskarch gdm[801]: Gdm: GdmDisplay: Session never registered, failing
Jun 11 23:30:05 deskarch gdm[801]: Gdm: on_display_added: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
Jun 11 23:30:05 deskarch systemd[1]: session-1.scope: Deactivated successfully.
Jun 11 23:30:05 deskarch gdm[801]: Gdm: Child process -854 was already dead.
Jun 11 23:30:05 deskarch gdm[801]: Gdm: GdmDisplay: Session never registered, failing
Jun 11 23:30:05 deskarch gdm[801]: Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
Jun 11 23:30:05 deskarch gdm[801]: Gdm: Child process -854 was already dead.
Jun 11 23:30:05 deskarch systemd-logind[762]: Session 1 logged out. Waiting for processes to exit.
Jun 11 23:30:05 deskarch systemd-logind[762]: Removed session 1.
Jun 11 23:30:05 deskarch systemd-logind[762]: New session 3 of user gdm.
Jun 11 23:30:05 deskarch systemd[1]: Started Session 3 of User gdm.
Jun 11 23:30:05 deskarch /usr/lib/gdm-x-session[866]: Unable to run X server
Jun 11 23:30:05 deskarch gdm[801]: Gdm: GdmDisplay: Session never registered, failing
Jun 11 23:30:05 deskarch gdm[801]: Gdm: on_display_added: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
Jun 11 23:30:05 deskarch systemd[1]: session-3.scope: Deactivated successfully.
Jun 11 23:30:05 deskarch gdm[801]: Gdm: Child process -866 was already dead.
Jun 11 23:30:05 deskarch gdm[801]: Gdm: GdmDisplay: Session never registered, failing
Jun 11 23:30:05 deskarch gdm[801]: Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
Jun 11 23:30:05 deskarch gdm[801]: Gdm: Child process -866 was already dead.
Jun 11 23:30:05 deskarch systemd-logind[762]: Session 3 logged out. Waiting for processes to exit.
Jun 11 23:30:05 deskarch systemd-logind[762]: Removed session 3.
Jun 11 23:30:05 deskarch systemd-logind[762]: New session 4 of user gdm.
Jun 11 23:30:05 deskarch systemd[1]: Started Session 4 of User gdm.
Jun 11 23:30:05 deskarch /usr/lib/gdm-x-session[878]: Unable to run X server
[... repeating ...]

I have no clue what that assertion error is and searching online hasn't been really helpful so far.

Last edited by glassyglass (2024-06-14 13:13:50)

Offline

#2 2024-06-12 02:10:12

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Post your xorg log

Offline

#3 2024-06-12 08:46:53

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Scimmia wrote:

Post your xorg log

Strangely I can't find any xorg logs anywhere. Neither under /var/log or ~/.local/share (and really sudo find / -iname "Xorg.*.log"  returns nothing).

Forgot to mention that one of the first things I did on the system was to install gnome and gdm -- not sure if this is related as afaik gdm defaults to X?

Thanks

Offline

#4 2024-06-12 09:44:39

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,083

Re: [SOLVED] Unable to install nvidia drivers on fresh install

I'm 90% sure gdm doesn't use xorg log but instead writes everything to the journal .

Please run (as root)

journalctl -b | curl -F 'file=@-' 0x0.st

It will upload the journal to 0x0,st and output a link, post that link .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2024-06-12 09:55:01

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Lone_Wolf wrote:

I'm 90% sure gdm doesn't use xorg log but instead writes everything to the journal .

Please run (as root)

journalctl -b | curl -F 'file=@-' 0x0.st

It will upload the journal to 0x0,st and output a link, post that link .

http://0x0.st/Xccq.txt here it is.

Please note that this probably contains logs for multiple tries of me trying to install the nvidia drivers in different ways as described in my first post.

Offline

#6 2024-06-12 10:14:14

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,083

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: vgaarb: deactivate vga console
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: NVIDIA GP106 (136000a1)
Jun 11 23:46:51 deskarch kernel: usb 1-3: new high-speed USB device number 2 using xhci_hcd
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: bios: version 86.06.63.00.46
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: pmu: firmware unavailable
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: fb: 6144 MiB GDDR5
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: VRAM: 6144 MiB
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: GART: 536870912 MiB
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: BIT table 'A' not found
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: BIT table 'L' not found
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: TMDS table version 2.0
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB version 4.1
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB outp 00: 01000f42 04620030
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB outp 04: 04022f82 00020030
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB outp 06: 02033f62 04620010
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB outp 07: 02844f76 04600020
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB outp 08: 02044f72 00020020
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB conn 00: 00001031
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB conn 02: 01000231
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB conn 03: 00010361
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: DCB conn 04: 00020446
Jun 11 23:46:51 deskarch kernel: nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies

Jun 11 23:46:54 deskarch /usr/lib/gdm-wayland-session[856]: dbus-daemon[856]: [session uid=120 pid=856] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=120 pid=857 comm="/usr/lib/gnome-session-binary --autostart /usr/sha")
Jun 11 23:46:54 deskarch /usr/lib/gdm-wayland-session[856]: dbus-daemon[856]: [session uid=120 pid=856] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1
Jun 11 23:46:54 deskarch gnome-session[857]: gnome-session-binary[857]: WARNING: Could not check if unit gnome-session-wayland@gnome-login.target is active: Error calling StartServiceByName for org.freedesktop.systemd1: Process org.freedesktop.systemd1 exited with status 1
Jun 11 23:46:54 deskarch gnome-session-binary[857]: WARNING: Could not check if unit gnome-session-wayland@gnome-login.target is active: Error calling StartServiceByName for org.freedesktop.systemd1: Process org.freedesktop.systemd1 exited with status 1
Jun 11 23:46:54 deskarch gnome-shell[869]: Running GNOME Shell (using mutter 46.2) as a Wayland display server

You're running wayland on the nouveau kernel module .

Please post the output of pacman -Qs nvidia .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2024-06-12 10:20:30

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Lone_Wolf wrote:

[...]
You're running wayland on the nouveau kernel module .

Please post the output of pacman -Qs nvidia .

$ sudo pacman -Qs nvidia
local/egl-wayland 2:1.1.13-2
    EGLStream-based Wayland external platform
local/libvdpau 1.5-2
    Nvidia VDPAU library
local/libxnvctrl 550.78-1
    NVIDIA NV-CONTROL X extension

(I have uninstalled everything related to nvidia currently to boot into a desktop environment)

Offline

#8 2024-06-12 10:42:06

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

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Post the journal of an affected boot, you can use "journalctl … -b n …" to access older logs, smaller values for n mean older boots (eg. "-3" for three boots ago)

Offline

#9 2024-06-12 11:00:09

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

seth wrote:

Post the journal of an affected boot, you can use "journalctl … -b n …" to access older logs, smaller values for n mean older boots (eg. "-3" for three boots ago)

This should be it https://0x0.st/XccE.txt

Offline

#10 2024-06-12 11:18:37

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

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Your nouveau session runs wayland, there's no X11 at all.
For nvidia+wayland you first and foremost have to enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter and then there's https://wiki.archlinux.org/title/GDM#Wa … DIA_driver for GDM specifically.

Offline

#11 2024-06-12 11:28:42

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

seth wrote:

Your nouveau session runs wayland, there's no X11 at all.
For nvidia+wayland you first and foremost have to enable https://wiki.archlinux.org/title/NVIDIA … de_setting - use the "nvidia_drm.modeset=1" kernel parameter and then there's https://wiki.archlinux.org/title/GDM#Wa … DIA_driver for GDM specifically.

Thank you Seth.
I've already tried to do that through the grub.cfg, so that my /etc/default/grub looks like this

...
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet splash nvidia_drm.modeset=1"
...

If I were to put this in /etc/modeprobe.d it would like something like this:

$ cat /etc/modeprobe.d/my_nvidia.conf
   options nvidia_drm modeset=1

correct?
Would it make any difference?

Only thing I haven't tried is checking / disabling my integrated graphics

Offline

#12 2024-06-12 11:35:45

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

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Yes, but you'll have to run grub-mkconfig to apply the /etc/default/grub change and the modprobe.conf might not apply if you've the nvidia modules in the initramfs and didn't regenerate the latter.

Offline

#13 2024-06-12 15:17:45

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Ok so I've tried to do everything again from almost zero and still got a black screen:

journalctl -> https://0x0.st/XcAR.txt
grub.cfg  -> https://0x0.st/XcAF.txt
/etd/default/grub -> https://0x0.st/XcAC.txt
mkinitcpio.confg -> https://0x0.st/Xcmr.txt

I had installed

nvidia nvidia-utils lib32-nvidia-utils nvidia-settings

Also tried with nvidia-lts and I've noticed that I am directly booting to linux lts kernel (6.6.32-1-lts to be exact). I do not remember setting anything to boot into that kernel, is this the default behaviour?

Only combination I haven't tried yet is installing only nvidia-lts instead of nvidia

Last edited by glassyglass (2024-06-12 15:23:13)

Offline

#14 2024-06-12 15:29:47

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,083

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Again gdm having trouble . atleast one other thread has similar issue and that's with an amd gpu .

Please append systemd.unit=multi-user.target to the kernel command line.
Configure X to start manually with startx / xinit , see https://wiki.archlinux.org/title/Xinit .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#15 2024-06-12 16:05:42

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Lone_Wolf wrote:

[...]
Configure X to start manually with startx / xinit , see https://wiki.archlinux.org/title/Xinit .

I am sorry but how would I do that ? I've installed the xorg-xinit package so far and run

 cp /etc/X11/xinit/xinitrc ~/.xinitrc 

(which i am not sure if I need)
But the rest of the instructions on the page seem to assume a shell environment

Offline

#16 2024-06-12 18:54:20

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

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Whyt does GDM not try to start a wayland session in this case?
Did you https://wiki.archlinux.org/title/GDM#Use_Xorg_backend ?

pacman -Qikk xorg-server # x11 is an optional dependency for GDM

Offline

#17 2024-06-13 00:07:42

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

No I haven't done that. I can try that.

seth wrote:
pacman -Qikk xorg-server # x11 is an optional dependency for GDM

This returns

 error: package 'xorg-server' was not found 

on my machine
---
Essentially all I've done for this machine so far is 1) follow  this guide for the installation 2) Install firefox and 3) try the nvidia driver guides. Also my /root and /home are btrfs if that makes any difference (I have btrfs-progs installed).

Offline

#18 2024-06-13 01:38:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,726

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Jun 11 23:30:05 deskarch /usr/lib/gdm-x-session[854]: Unable to run X server

GDM was, at least, trying to run on xorg. That's why I asked for the xorg log. And apparently failing because you don't have xorg installed. Install it and try again.

Last edited by Scimmia (2024-06-13 01:38:54)

Offline

#19 2024-06-13 06:04:02

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

Re: [SOLVED] Unable to install nvidia drivers on fresh install

And if you want to run GDM on wayland see https://wiki.archlinux.org/title/GDM#Wa … DIA_driver

follow  this guide [ instead of https://wiki.archlinux.org/title/Installation_guide ] for the installation

That's not a guide but something that turns you into a type-monkey - and the source of your problems.

Offline

#20 2024-06-13 17:52:14

glassyglass
Member
Registered: 2024-06-11
Posts: 15

Re: [SOLVED] Unable to install nvidia drivers on fresh install

Thank you both, that did it finally.

I've installed xorg-server, enabled it, disabled igpu graphics and finally force-enabled wayland.

Also please excuse my newbie-ness but why did I need xorg-server? Why wouldn't it work with the default wayland installation?

PS.: Also i have some issues now with i.e. guake not running properly but probably that's another story.

Offline

#21 2024-06-13 19:16:29

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

Re: [SOLVED] Unable to install nvidia drivers on fresh install

seth wrote:

And if you want to run GDM on wayland see https://wiki.archlinux.org/title/GDM#Wa … DIA_driver

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

Board footer

Powered by FluxBB