You are not logged in.

#1 2025-05-26 06:00:21

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

SOLVED | Nvidia drivers from pacman cause failure to boot

Salutations.  Throughout my time using Arch, I have had a persistent problem that happens after I install Nvidia drivers through pacman, following the steps listed on the wiki page NVIDIA.

I have an NVIDIA GTX 1070 graphics card.  This uses the Pascal architecture, NV130, which released between NV110, Maxwell; and NV190, Lovelace.  According to the chart on the wiki page, this means I should use the packages nvidia, nvidia-lts, or nvidia-dkms.

I have tried nvidia and nvidia-dkms each.  I also downloaded nvidia-utils, nvidia-settings, and installed the necessary packages for Xorg.

I removed all instances of 'kms' in /etc/mkinitcpio.conf (wiki says to do so from the HOOKS array, but I'm not clear on what we're doing here), regenerated the initial ramdisk with 'mkinitcpio -P', and after running nvidia-xconfig, rebooted.  Now, every time I reboot, the system freezes on a message in the form:

Nvidia drivers from pacman cause failure to boot, freezing at "/dev/[root partition]: clean, [a]/[\b] files, [c]/[d] blocks"

Any ideas?  In the past my workaround has been installing drivers straight from NVIDIA's website, but I know that this is not recommended.

Last edited by pooplinux (2025-06-10 13:54:37)

Offline

#2 2025-05-26 06:56:59

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

Can you still boot the multi-user.target (2nd link below) - in doubt along "nomodeset"?
Othwise, unless you can ssh into the system) reboot it by frenetically pressing ctrl+alt+del or the https://wiki.archlinux.org/title/Keyboa … el_(SysRq) (needs to be explicitly enabled at the bootloader!) and access the journal from some live distr or the install iso, https://wiki.archlinux.org/title/System … al_to_view
Please post your complete system journal for the current (or previous  "… -b -1 …") boot:

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

installing drivers straight from NVIDIA's website, but I know that this is not recommended

That's an understatement. "Dumbfuck idea" is a better description tongue

Offline

#3 2025-05-26 10:48:51

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

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

Are you sure it "freezes"?

You may have multiple issues, but for certain your Pascal GPU will require the following kernel parameters applied:

nvidia_drm.modeset=1 nvidia_drm.fbdev=0

See:

https://gitlab.archlinux.org/archlinux/ … /issues/16

Offline

#4 2025-05-28 04:08:50

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

Since adding the kernel parameters in tekstryder's post, I have been able to pass the "clean, a/b files... etc" message by waiting a few minutes until it throws an error, which flashes by in a fraction of a second before it is replaced by the login screen.

Now, though I can get into the system without using SysRq, running nvidia-xconfig or startx results in all monitors going dark and reading 'no signal'.  The former produces yet another too-fast-to-read error message.

Here's a system log for a previous boot.  On the user end, I waited for a login screen, logged in, ran nvidia-xconfig, the screen went dark, and I hit 'reset' on my PC case.

System Log

0x0 is very nifty.  Thanks for introducing me to it, seth!

Offline

#5 2025-05-28 06:04:26

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

running nvidia-xconfig

Don't. Remove the generated /etc/X11/xorg.conf  and then please also post your Xorg log, https://wiki.archlinux.org/title/Xorg#General

Also maybe remove the "quiet" parameter for the time being (because of the boot messages, it will not fix anything)

Offline

#6 2025-05-29 10:53:43

ernesto159
Member
From: France
Registered: 2022-02-08
Posts: 10

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

pooplinux wrote:

I removed all instances of 'kms' in /etc/mkinitcpio.conf (wiki says to do so from the HOOKS array, but I'm not clear on what we're doing here), regenerated the initial ramdisk with 'mkinitcpio -P', and after running nvidia-xconfig, rebooted.

You removed the kms hook, but have you tried adding the nvidia modules to the initramfs?

See this: https://wiki.archlinux.org/title/NVIDIA#Early_loading

Offline

#7 2025-06-03 02:43:39

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

Thanks all.  I removed the 'quiet' parameter from /etc/default/grub and regenerated the GRUB configuration file.

I added the nvidia, nvidia_modeset, nvidia_uvm, and nvidia_drm modules to the MODULES array in /etc/mkinitcpio.conf, and regenerated the initramfs.

Here is my Xorg log.

Offline

#8 2025-06-03 02:54:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,747

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

You're using an ISO? With a kernel from last Sept? What in the world is this?

Online

#9 2025-06-03 06:41:29

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

[   853.853] (==) Using config file: "/etc/X11/xorg.conf"

You're still enforcing the config, remove that file.

[   853.885] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[   853.885] (EE) NVIDIA:     system's kernel log for additional error messages and
[   853.885] (EE) NVIDIA:     consult the NVIDIA README for details.
lsmod | grep -E '(nvidia|nouveau)'
modinfo nvidia
pacman -Qs nvidia
dkms status

With the geriatric kernel, you'll have to use dkms, it requires linux-headers (for your kernel) and IDK whether the 570xx kernel will actually build on it, so check/post the dkms build log.

That being said, you probably want to address #8 first before wasting too much effort on working around a questionable system setup.

Offline

#10 2025-06-04 04:10:45

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

Scimmia wrote:

You're using an ISO? With a kernel from last Sept? What in the world is this?

I gathered the Xorg log by chrooting into the system from the live medium.  I thought the Xorg log would have been from the last time I actually used X, aka the last time I ran startx, which was when the system was booted from the actual install location.

seth wrote:

You're still enforcing the config, remove that file.

Bizarre, I thought I did.  I'll give it another go.

Offline

#11 2025-06-04 05:08:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,747

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

pooplinux wrote:

I thought the Xorg log would have been from the last time I actually used X, aka the last time I ran startx

It is. How was this system installed?

Online

#12 2025-06-04 05:28:24

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

The log

[   853.846] (==) Log file: "/var/log/Xorg.0.log", Time: Sat May 24 22:22:22 2025

also was a couple of days old at the time you were posting it (so it's possible that you removed the config, but have not been starting the X11 server since or were eg. using startx what will put the xorg log into ~/.local/share/xorg/ )
… did you maybe at some point try to startx as root from a chroot out of the install iso and the relevant logs actually *are* in ~/.local/share/xorg/ ?

Offline

#13 2025-06-08 01:07:27

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

/etc/X11/ still contains no config file.  Only the xinit directory.  I have no idea why a nonexistent config was still being enforced.  [Edit: I think it's because the Xorg log is misleading; see the bolded line below.]

I would not be surprised if at some point, I foolishly tried to startx as root from a chroot out of the install iso.  However ~/.local/share/Xorg.0.log is empty.

Scimmia, to my recollection I installed by following the Wiki's installation guide.

pacman -Syu successfully updated nvidia-dkms to 575.57.08.  dkms status confirms it is installed.

linux-headers has been installed for a while now.

As a sanity check, here is an up-to-date system journal and Xorg log, produced from within the installed system.

System log: http://0x0.st/8gww.txt
Xorg log: http://0x0.st/8YV_.txt

What the hell?  Despite having run startx many times since, the log still reads as being from May 24th, and displays my current system as the archiso.  Installed is 6.14.10.arch1-1.  It seems startx crashes my system (black screen, 'no signal') before even producing a log.

(On the off-chance it has any bearing on anything -- and I don't know why it would -- since my last post I disabled Trusted Platform Module via UEFI (technically switching from Firmware TPM to Discrete TPM) as mentioned here, as an alternative to masking the device in systemctl, in order to speed up booting.)

Last edited by pooplinux (2025-06-08 01:16:30)

Offline

#14 2025-06-08 06:04:32

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

[   853.846] (==) Log file: "/var/log/Xorg.0.log", Time: Sat May 24 22:22:22 2025

Despite having run startx many times

That's not where xinit stores the log => ~/.local/share/xorg/

Offline

#15 2025-06-08 22:10:59

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

seth wrote:

That's not where xinit stores the log => ~/.local/share/xorg/

pooplinux wrote:

However ~/.local/share/Xorg.0.log is empty.

Gotcha.  The log file exists, but is empty, so there is nothing to share.

Last edited by pooplinux (2025-06-08 22:18:56)

Offline

#16 2025-06-08 22:47:32

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

startx > ~/wtf.startx 2>&1

and post ~/wtf.startx

Offline

#17 2025-06-09 01:14:57

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

The resulting file is sadly empty.

Offline

#18 2025-06-09 07:29:11

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

??
Is this after a reboot w/ the power button?
Do you get any output just running

/usr/bin/Xorg -nolisten tcp "$@" vt$XDG_VTNR

on the console login?

Offline

#19 2025-06-10 02:09:55

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

Great news!  I tried a different monitor setup (both HDMI rather than one HDMI and one DVI), and now my monitors don't lose signal after running startx, and we get an actually meaningful log.

First off I was informed I forgot to install Xterm.  Good Lord, that's embarassing.  Took care of that, and now startx brings me into a cluster of three terminal windows against a black screen, as well as a mouse cursor.  Hovering over the black regions of the screen turns the mouse cursor into an X.  I have installed i3 Window Manager (i3-wm) but this arrangement isn't quite right -- the windows have no top bars to move them around, and I'm unable to use any mod key commands such as mod+shift+e, which should open a dialog to exit i3.  I am able to open Firefox, but not to move the window around.

Latest Xorg log here.

Last edited by pooplinux (2025-06-10 02:41:36)

Offline

#20 2025-06-10 13:23:36

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

cluster of three terminal windows against a black screen, as well as a mouse cursor.  Hovering over the black regions of the screen turns the mouse cursor into an X

Perfectly normal for the default xinitrc (if you install TWM, you also get a windowmanager, xclock will get you a clock…)

the windows have no top bars to move them around

No, i3 is a tiling WM smile
OPenbox or icewm might feel more familiar here.

The Xorg log looks unsuspicious, you can boot, you can launch X11 - so where are we at?

Offline

#21 2025-06-10 13:54:05

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

Yes, I've used i3 in the past; if memory serves right you can still click and drag windows by a top bar to move them to other monitors.  I'll look into adjusting the configuration.  Still unsure why mod key commands are unresponsive, but all this is a different issue so I'll mark this as solved.

Thanks for helping out a newbie!  Cheers all.

Offline

#22 2025-06-10 14:14:17

seth
Member
Registered: 2012-09-03
Posts: 64,477

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

https://i3wm.org/docs/userguide.html#_r … ng_exiting
About the titlebar, do you simply need to install a font? (iirc i3 doesn't drag one in)

Offline

#23 2025-06-11 00:31:05

pooplinux
Member
From: Chair
Registered: 2024-12-02
Posts: 13

Re: SOLVED | Nvidia drivers from pacman cause failure to boot

User guide set me straight.  All is well.  Thanks seth!

Offline

Board footer

Powered by FluxBB