You are not logged in.

#1 2023-08-22 19:27:29

wemmons
Member
Registered: 2023-08-22
Posts: 4

Failed to initialize the NVIDIA kernel module

I am aware of 2014 post but I believe my issue is something completely different.
When running 'xinit' I get an error no screens found. After looking through the Xorg logs I found this

[   387.775] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[   387.775] (EE) NVIDIA:     system's kernel log for additional error messages and
[   387.775] (EE) NVIDIA:     consult the NVIDIA README for details.
[   387.775] (EE) No devices detected.

I have an nvidia rtx 3070 so to installed the driver I followed NVIDIA article I installed the nvidia package, I did not find a "kms" HOOK but regenerated the initramfs and rebooted.

Here is the full Xorg log
Here is the full boot log (produced from journalctl -b). There were some error towards the end of this log coming from a sata drive but to my knowledge this is unimportant (pretty sure the error is coming from a drive from another boot)

Offline

#2 2023-08-22 19:58:29

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

Re: Failed to initialize the NVIDIA kernel module

[   375.499] (==) Using config file: "/etc/X11/xorg.conf"
[   375.499] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   375.500] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   375.522] (==) ServerLayout "Layout0"
[   375.522] (**) |-->Screen "Screen0" (0)
[   375.522] (**) |   |-->Monitor "Monitor0"
[   375.522] (**) |   |-->Device "Device0"
[   375.522] (**) |-->Input Device "Keyboard0"
[   375.522] (**) |-->Input Device "Mouse0"

Autodetection is avoided by the static config in /etc/X11/xorg.conf - unrelated to the situation at hand you want to remove that file.

The sda drive is falling apart and I'm not sure that's actually harmless because

Aug 22 10:31:44 archlinux systemd-modules-load[264]: Failed to insert module 'nvidia_uvm': Input/output error

But let's see:

pacman -Qikk nvidia nvidia-utils

In any event, the nvidia kernel modules don't get loaded at all.

Offline

#3 2023-08-22 20:15:57

wemmons
Member
Registered: 2023-08-22
Posts: 4

Re: Failed to initialize the NVIDIA kernel module

I ran "pacman -Qikk nvidia nvidia-utils > out.txt" so I can get the results on to a flashdrive so I can access them on another boot.

nvidia: 14 total files, 1 altered file
nvidia-utils: 230 total files, 0 altered files

Full output
I think part of the problem might be the drive because when running the command I got a bunch of failed command: READ FPDMA QUEUED and I/O errors. (I am unsure how to get export the full output)
This is a new install so while unpreferred if the issue isnt work aroundalbe (seeing as most of the drive appears to be working) would it just be easier to install arch on a different drive?
Thought I should also mention that I used nvidia-xconfig

Last edited by wemmons (2023-08-22 20:22:51)

Offline

#4 2023-08-22 20:25:00

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

Re: Failed to initialize the NVIDIA kernel module

Ther IO errors are from the kernel and in the dmesg, for the full Qikk output you'd redirect stderr into stdout

pacman -Qikk nvidia nvidia-utils > out.txt 2>&1

Can you explicitly

modprobe nvidia

?

Edit:

Thought I should also mention that I used nvidia-xconfig

Yes, I know. The strong suggestion was to not do that, but it's not the cause of the present situation. It's just generally a bad idea.

Edit: the system is installed on sda2, though?
You'll most likely have to replace that disk, the errors don't look like a cable-problem sad

Last edited by seth (2023-08-22 20:29:52)

Offline

#5 2023-08-22 20:51:13

wemmons
Member
Registered: 2023-08-22
Posts: 4

Re: Failed to initialize the NVIDIA kernel module

pacman -Qikk nvidia nvidia-utils > out.txt 2>&1

this produces the same text file so I took a picture of the error IMG_1276.jpg

modprobe nvidia

"I/0 error, sector 32869480 op Ox0: (RBAD) flags Ox0 phys_seg 1 prio class 2
ERROR: could not insert 'nvidia'Input/output error"

the system is installed on sda2, though?

That is where / is mounted but /boot is sda1 and /home is sda2

Offline

#6 2023-08-22 20:54:52

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

Re: Failed to initialize the NVIDIA kernel module

Yes, and that drive is falling apart, https://wiki.archlinux.org/title/SMART
Make sure to rescue all valuable data from it before anything else.

Offline

#7 2023-08-22 20:56:58

wemmons
Member
Registered: 2023-08-22
Posts: 4

Re: Failed to initialize the NVIDIA kernel module

Will do Thanks

Offline

Board footer

Powered by FluxBB