[SOLVED]Failed to initialize the NVIDIA kernel module

[SOLVED]Failed to initialize the NVIDIA kernel module

Postby broncosman » Sep 2nd, '23, 09:55

Ever since I installed the latest update, I haven't been able to use the NVIDIA driver. On boot, the driver fails to load up and it has to fall back to nouveau.

The error in the Xorg log is

Code: Select all
(EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[  1126.291] (EE) NVIDIA:     system's kernel log for additional error messages and
[  1126.291] (EE) NVIDIA:     consult the NVIDIA README for details.


modprobe nvidia turns up with "modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.1.45-desktop-1.mga8". But dkms-nvidia-current is installed. I've tried uninstalling and reinstalling the driver many times, to no avail. Please help.
Last edited by broncosman on Sep 4th, '23, 11:04, edited 1 time in total.
broncosman
 
Posts: 6
Joined: Sep 1st, '23, 00:15

Re: Failed to initialize the NVIDIA kernel module

Postby doktor5000 » Sep 2nd, '23, 16:13

Hi there, it would help if you would post what card you actually have and what packages you have currently installed:
Code: Select all
lspcidrake -v | grep -i vga
rpm -qa | grep -iE "nvidia|kernel" | sort
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Failed to initialize the NVIDIA kernel module

Postby broncosman » Sep 2nd, '23, 17:37

Sure.

Code: Select all
Card:NVIDIA GeForce 635 series and later: NVIDIA Corporation|GP107 [GeForce GTX 1050] [DISPLAY_VGA] (vendor:10de device:1c81 subv:1043 subd:203b) (rev: a1)


Code: Select all
dkms-nvidia-current-470.161.03-1.mga8.nonfree
kernel-desktop-5.15.106-2.mga8-1-1.mga8
kernel-desktop-5.15.110-2.mga8-1-1.mga8
kernel-desktop-5.15.11-3.mga8-1-1.mga8
kernel-desktop-5.15.117-2.mga8-1-1.mga8
kernel-desktop-5.15.120-2.mga8-1-1.mga8
kernel-desktop-5.15.122-1.mga8-1-1.mga8
kernel-desktop-5.15.126-1.mga8-1-1.mga8
kernel-desktop-5.15.88-1.mga8-1-1.mga8
kernel-desktop-5.15.98-1.mga8-1-1.mga8
kernel-desktop-6.1.45-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.106-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.110-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.117-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.120-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.122-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.126-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.32-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.35-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.41-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.4-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.43-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.46-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.50-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.55-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.58-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.62-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.6-2.mga8-1-1.mga8
kernel-desktop-devel-5.15.65-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.74-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.79-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.82-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.88-1.mga8-1-1.mga8
kernel-desktop-devel-5.15.98-1.mga8-1-1.mga8
kernel-desktop-devel-5.4.10-1.mga7-1-1.mga7
kernel-desktop-devel-5.4.12-1.mga7-1-1.mga7
kernel-desktop-devel-5.4.17-1.mga7-1-1.mga7
kernel-desktop-devel-5.4.6-2.mga7-1-1.mga7
kernel-desktop-devel-5.5.14-1.mga7-1-1.mga7
kernel-desktop-devel-5.5.15-3.mga7-1-1.mga7
kernel-desktop-devel-5.5.4-1.mga7-1-1.mga7
kernel-desktop-devel-5.5.6-2.mga7-1-1.mga7
kernel-desktop-devel-5.5.9-1.mga7-1-1.mga7
kernel-desktop-devel-5.6.14-2.mga7-1-1.mga7
kernel-desktop-devel-5.6.6-1.mga7-1-1.mga7
kernel-desktop-devel-5.6.8-1.mga7-1-1.mga7
kernel-desktop-devel-5.7.14-1.mga7-1-1.mga7
kernel-desktop-devel-5.7.19-1.mga7-1-1.mga7
kernel-desktop-devel-5.7.19-3.mga7-1-1.mga7
kernel-desktop-devel-latest-5.15.126-1.mga8
kernel-desktop-latest-5.15.126-1.mga8
kernel-firmware-20201218-1.mga8
kernel-firmware-nonfree-20230110-1.mga8.nonfree
kernel-userspace-headers-5.15.126-1.mga8
lib64kplatokernel16-3.1.0-4.mga7
lib64kplatokernel17-3.2.2-3.mga8
lib64nvidia-egl-wayland1-1.1.5-3.mga8
nvidia-current-cuda-opencl-470.161.03-1.mga8.nonfree
nvidia-current-doc-html-470.161.03-1.mga8.nonfree
nvidia-current-utils-470.161.03-1.mga8.nonfree
virtualbox-kernel-5.15.120-desktop-2.mga8-7.0.10-1.mga8
virtualbox-kernel-6.1.45-desktop-1.mga8-7.0.10-2.5.mga8
virtualbox-kernel-desktop-latest-7.0.10-2.5.mga8
x11-driver-video-nvidia-current-470.161.03-1.mga8.nonfree
broncosman
 
Posts: 6
Joined: Sep 1st, '23, 00:15

Re: Failed to initialize the NVIDIA kernel module

Postby doktor5000 » Sep 3rd, '23, 12:05

Well, you have kernel-desktop-6.1.45-1.mga8-1-1.mga8 installed but not the respective kernel-desktop-devel package installed.
Although the latest regular kernel update is kernel-desktop-6.1.6-1.mga8, so you probably had some backports or testing repositories installed.

So booting some older kernel up to kernel-desktop-devel-5.15.126 should still work.

With "latest update" in your post, what are you referring to? Did you try an upgrade to Mageia 9?
Also please post the output of
Code: Select all
urpmq --list-media active --list-url
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Failed to initialize the NVIDIA kernel module

Postby broncosman » Sep 3rd, '23, 13:17

Sorry for being unclear about the update - I just meant that this happened after running the updates, I was not upgrading the OS.

I have tried booting up in an older kernel, and it always says that it's building the nvidia driver, and then hangs. I also tried installing the driver on 5.15.126 in MCC and the install fails.

Here are my active repos:

Code: Select all
Core Release http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/core/release
Core Updates http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/core/updates
Nonfree Release http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/nonfree/release
Nonfree Updates http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/nonfree/updates
Core 32bit Release http://mirrors.kernel.org/mageia/distrib/8/i586/media/core/release
Core 32bit Updates http://mirrors.kernel.org/mageia/distrib/8/i586/media/core/updates
Nonfree 32bit Release http://mirrors.kernel.org/mageia/distrib/8/i586/media/nonfree/release
Nonfree 32bit Updates http://mirrors.kernel.org/mageia/distrib/8/i586/media/nonfree/updates
Core Release (distrib1) http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/core/release
Core Updates (distrib3) http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/core/updates
Nonfree Release (distrib11) http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/nonfree/release
Nonfree Updates (distrib13) http://mirrors.kernel.org/mageia/distrib/8/x86_64/media/nonfree/updates
Core 32bit Release (distrib31) http://mirrors.kernel.org/mageia/distrib/8/i586/media/core/release
Core 32bit Updates (distrib32) http://mirrors.kernel.org/mageia/distrib/8/i586/media/core/updates
Nonfree 32bit Release (distrib36) http://mirrors.kernel.org/mageia/distrib/8/i586/media/nonfree/release
Nonfree 32bit Updates (distrib37) http://mirrors.kernel.org/mageia/distrib/8/i586/media/nonfree/updates


EDIT - I just tried installing it from the software center instead and it threw this up as the reason why it can't install : "- x11-driver-video-nvidia-current-470.161.03-1.mga8.nonfree.x86_64 (due to unsatisfied kmod(nvidia-current.ko)[== 470.161.03])"

Hmm, what does this mean? Thank you.
broncosman
 
Posts: 6
Joined: Sep 1st, '23, 00:15

Re: Failed to initialize the NVIDIA kernel module

Postby doktor5000 » Sep 3rd, '23, 15:38

Hmmm, hard to tell.
The "unsatisfied kmod(nvidia-current.ko)[== 470.161.03])" comes from the dkms-nvidia-current-470.161.03 package which provides the facilities to build that kernel module. Cf. http://sophie.zarb.org/rpms/f7de9ffccc6 ... 26c4f/deps

As you have two sets of repositories from the same mirror, I'd suggest to remove all of them, and configure a new set, maybe from a different mirror which is marked as up-to-date here: https://mirrors.mageia.org/status
See https://wiki.mageia.org/en/Installing_a ... dia_Mirror
Then afterwards, run drakx11 and select the proprietary driver, answer yes and then save (do NOT use the test button) and quit, then reboot.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18061
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Failed to initialize the NVIDIA kernel module

Postby broncosman » Sep 4th, '23, 03:59

That seems to have worked. Thank you!! :D
broncosman
 
Posts: 6
Joined: Sep 1st, '23, 00:15

Re: Failed to initialize the NVIDIA kernel module

Postby morgano » Sep 4th, '23, 09:48

Nice :)

Now please edit the headline of your first post in this thread, so it begins with "[SOLVED]".

Thank you.
At home & work Mandriva since 2006, Mageia 2011. Thinkpad T40, T43, T60, T400, T510, Dell M4400, M6300, Acer Aspire 7. Workstation using LVM, LUKS, VirtualBox, BOINC
morgano
 
Posts: 1493
Joined: Jun 15th, '11, 17:51
Location: Kivik, Sweden


Return to Video

Who is online

Users browsing this forum: No registered users and 1 guest