Nvidia drivers not working anymore after kernel 6.0.x update

After some research i found that default provided repo with nvidia driver are outdated, you need to add an full Rpm Fusion nonfree here link with instruction

After adding that you can refresh updates list in gnome apps and get a new Nvidia 520 driver that works perfect for me

I’m using the nvidia-470 kernel module (because my card is a few years old) built from rpmfusion-nonfree and it fails to build on the 6.0 kernel.
It might be related to this … 470xx drivers and linux 6.0 kernel - Linux - NVIDIA Developer Forums


Thanks - you are definitely more experienced than me in this topic and I will try to follow your advice. Unfortunatelly pressing shift during the boot time is not bringing up any menue, respectively not changing the boot process.

Thanks for your kind advice - I will definitely try to follow it!

Yes - I also use the nvidia-470 kernel module. Will have a look!

** corrected **

There was an update (akmod-nvidia-470xx-470.141.03-3) this morning in the rpmfusion non-free repo that fixed this for me.
I can now boot into kernel 6.0.5 with the nvidia driver.
$ sudo dnf update akmod-nvidia-470xx --enablerepo=rpmfusion-nonfree-updates-testing

$ rpm -qi akmod-nvidia-470xx
Name        : akmod-nvidia-470xx
Epoch       : 3
Version     : 470.141.03
Release     : 3.fc37
Architecture: x86_64
Install Date: Mon 31 Oct 2022 01:09:10 PM EDT
Group       : Unspecified
Size        : 95109
License     : Redistributable, no modification permitted
Signature   : RSA/SHA256, Sun 30 Oct 2022 06:58:03 PM EDT, Key ID 6a2af96194843c65
Source RPM  : nvidia-470xx-kmod-470.141.03-3.fc37.src.rpm
Build Date  : Sun 30 Oct 2022 06:13:05 AM EDT
Build Host  : buildvm-07.virt.rpmfusion.net
Packager    : RPM Fusion
Vendor      : RPM Fusion
URL         : https://www.nvidia.com/
Summary     : Akmod package for nvidia-470xx kernel module(s)
Description :
This package provides the akmod package for the nvidia-470xx kernel modules.

Unfortunatelly that seems not to work out for me. If I insert the relevant update command, it just react with “nothing to do”.

$ sudo dnf clean expire cache; sudo dnf update

first. That may help.

Still “nothing to do” is highlighted

What rpmfusion repo are you using.
dnf repolist will tell us that.
Also, what akmod-nvidia package is already installed?
dnf list installed akmod-nvidia and post the entire command and result.

[heikoschmid@mutter ~]$ dnf repolist
Paketquellenkennung                            Paketquellenname

fedora                                         Fedora 36 - x86_64
fedora-cisco-openh264                          Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                 Fedora Modular 36 - x86_64

rpmfusion-free                                 RPM Fusion for Fedora 36 - Free
rpmfusion-free-updates                         RPM Fusion for Fedora 36 - Free - Updates
rpmfusion-nonfree                              RPM Fusion for Fedora 36 - Nonfree
rpmfusion-nonfree-nvidia-driver                RPM Fusion for Fedora 36 - Nonfree - NVIDIA Driver

rpmfusion-nonfree-updates                      RPM Fusion for Fedora 36 - Nonfree - Updates
teams                                          teams
updates                                        Fedora 36 - x86_64 - Updates
updates-modular                                Fedora Modular 36 - x86_64 - Updates
vivaldi                                        vivaldi
[heikoschmid@mutter ~]$ 

[heikoschmid@mutter ~]$ dnf list installed akmod-nvidia
Fehler: Keine übereinstimmenden Pakete zum Auflisten

Meaning - no akmod-nvidia pakage installed…

Oh, maybe you do need to use the enablerepo=updates-testing.

$ dnf list akmod-nvidia-470xx

Installed Packages
akmod-nvidia-470xx.x86_64                           3:470.141.03-3.fc37                           @updates-testing

$ sudo dnf update --enablerepo=updates-testing akmod-nvidia-470xx

There are 2 problems there if your system requires the 470xx drivers.

  1. You have the rpmfusion-nonfree-nvidia-driver repo enabled which in the past did not contain the 470 drivers and which may conflict with the rpmfusion-nonfree repo when trying to install the proper driver.
  2. As noted, you seem to not have the nvidia packages installed. We can verify which nvidia packages are actually installed with dnf list installed \*nvidia\*

dnf list installed *nvidia*
Installierte Pakete
akmod-nvidia-470xx.x86_64 3:470.141.03-1.fc36 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-470xx-5.19.15-201.fc36.x86_64.x86_64 3:470.141.03-1.fc36 @@commandline
kmod-nvidia-470xx-5.19.16-200.fc36.x86_64.x86_64 3:470.141.03-1.fc36 @@commandline
nvidia-gpu-firmware.noarch 20221012-141.fc36 @updates
nvidia-modprobe.x86_64 3:520.56.06-1.fc36 @rpmfusion-nonfree-updates
nvidia-persistenced.x86_64 3:520.56.06-1.fc36 @rpmfusion-nonfree-updates
nvidia-settings-470xx.x86_64 3:470.141.03-1.fc36 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx.x86_64 3:470.141.03-1.fc36 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-kmodsrc.x86_64 3:470.141.03-1.fc36 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-libs.i686 3:470.141.03-1.fc36 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-libs.x86_64 3:470.141.03-1.fc36 @rpmfusion-nonfree-nvidia-driver

And if the repo is enabled, an update command will install the relevant akmod package?

yes, assuming the repo that holds the new rpm is enabled (i.e. if its in the testing repo then updates-testing is enabled). The ‘dnf clean expire-cache’ will ensure that the list of packages is using to the latest list.

you are giving instructions for F37 while the OP is on F36. Similar but not exactly the same. Updates-testing is for F37 and is the fedora repo not the rpmfusion repo, which would be rpmfusion-nonfree-updates-testing.

It would appear you have the correct version of the rpmfusion drivers installed but it failed to properly build the modules.
I suggest you

  1. Reboot to the 5.19.16 kernel
  2. remove the 6.0.5 kernel
    sudo dnf remove kernel*6.0.5*
  3. reboot
  4. reinstall the latest kernel
    sudo dnf upgrade --refresh
  5. Wait at least 5 minutes then check the modules to see if they were built.
    dnf list installed kmod-nvidia* which now should show an entry for the 6.0.5 kernel.
  6. if the kmod-nvidia-470xx-6.0.5* package now shows up then reboot to the new kernel and the drivers should properly be loaded.
1 Like

No, the instructions are applicable for both F36 and F37.
The new version is available for F36 and F37 …

Thanks Jeff - how can I reboot to the 5.19 Kernel. If I press shift after rebooting nothing is happening.