Nvidia drivers break after every update, help needed

Hello, it’s now the second update of akmod-nvidia in a row that breaks the nvidia drivers for me.

What’s weird is that everything seems to be correctly installed on akmods part, nvidia-smi is no different than normal. But if I launch a game via steam, I get 1 FPS, so it’s not using the GPU, I use an app called ‘resources’ that also shows almost no data when it’s not working, but it is detected, which not the case when I uninstalled the drivers and rebooted without reinstalling them one time.

The last time I miraculously made it work by mainly uninstalling and reinstalling kmod or akmod-nvidia and rebooting until it worked, I don’t know what was different that time.

Some of the commands I’ve tried this time:

sudo dnf install akmod-nvidia
sudo dnf install kmod-nvidia
sudo dnf remove nvidia*
sudo akmods --force --rebuild
sudo dracut --regenerate-all --force -v

and some variations of those, with a lot of rebooting, to no avail.

My GPU is a AD103 GeForce RTX 4070 TI Super
Kmod and kernel version: 6.15.8-200.fc42.x86_64
Wayland
Gnome 48
modinfo -F version nvidia output : 575.64.05

I’m not good at diagnosing these problems, any help is appreciated.

Did you followed this guide? Making sure you're not a bot!

For a full removal that command should be sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware

If the package nvidia-gpu-firmware is not seen when you run dnf list --installed \*nvidia\* then it needs to be reinstalled for the open nvidia driver to function properly.

Also, to confirm the nvidia open driver is in use (which it should be by default with that GPU) the command modinfo -F license nvidia should return Dual MIT/GPL

I ran this command sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware and nvidia-gpu-firmware was not present with dnf list --installed \*nvidia\* (there was nothing).

After doing sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda and sudo dnf nvidia-gpu-firmware and rebooting it still doesn’t work.

modinfo -F license nvidia outputs Dual MIT/GPL, and modinfo -F version nvidia 575.64.05

dnf list --installed \*nvidia\* shows

akmod-nvidia.x86_64                       3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.15.8-200.fc42.x86_64.x86_64 3:575.64.05-2.fc42 @commandline
nvidia-gpu-firmware.noarch                20250708-1.fc42    updates
nvidia-modprobe.x86_64                    3:575.64.05-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                3:575.64.05-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                    3:575.64.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64           3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686        3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64      3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64        3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686             3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64           3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64          3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-xorg-libs.x86_64      3:575.64.05-2.fc42 rpmfusion-nonfree-nvidia-driver

I have secure boot disabled

That should have been: sudo dnf install nvidia-gpu-firmware.

I don’t know if this is exclusively nvidia problem, have you installed RPM Steam or Flatpak? Does your system have hybrid graphics? What about the game reports on Linux?

Yes, that was a mistake, that’s the command I ran.

It’s also now displayed when doing dnf list --installed \*nvidia\*

Flatpak Steam

Game report is irrelevant, I played +150 hours without problems before the update, and it’s an old game, not receiving update that could break something.

It’s not the only thing that’s different. I saw last time that the app i use to monitor the system also doesn’t show values when the drivers aren’t working properly, so it’s not solely a Steam problem

Some Google Gemini info:

AKMODS (Automatic Kernel Modules) in Linux, particularly in Fedora and other RPM-based distributions, are designed to automatically rebuild kernel modules (like proprietary graphics drivers) whenever the kernel is updated. This ensures compatibility and avoids manual reinstallation of these modules.

The primary dependencies for AKMODs are:

  • Kernel Headers/Development Packages:

AKMODs need access to the kernel source or header files for the currently running kernel to compile the modules. These are typically provided by packages like kernel-devel or kernel-headers, which must match the exact version of your installed kernel.

  • Compiler and Build Tools:

A C compiler (like GCC), make, and other essential build utilities are required to compile the kernel modules. These are often part of a “development tools” group or installed individually.

  • Specific Driver/Module Source:

The source code for the kernel module you want to build (e.g., nvidia-kmod-common for NVIDIA drivers) is a core dependency, as AKMODs compile this source.

  • RPM Build Tools:

Since AKMODs generate RPM packages, tools like rpm-build are necessary for the packaging process.

  • kmod package:

The kmod package, which contains depmod, is crucial for managing kernel module dependencies and generating the /lib/modules/<KERNEL_VERSION>/modules.dep file.

Example (NVIDIA AKMOD on Fedora):

When installing akmod-nvidia on Fedora, dnf (or yum on older systems) will automatically pull in the required dependencies, which typically include:

  • kernel-devel (matching your kernel version)
  • gcc
  • make
  • nvidia-kmod-common (containing the NVIDIA driver source)
  • kmod
  • rpm-build

Note: If you are building AKMODs locally or encountering issues, ensure these core dependencies are correctly installed and match your system’s kernel version. Missing or mismatched dependencies are a common cause of AKMOD build failures.

I don’t have build failures, doing sudo akmods --force --rebuild for example is no problem and runs successfully.

Output

Checking kmods exist for 6.15.8-200.fc42.x86_64            [  OK  ]
Building and installing nvidia-kmod                        [  OK  ]
1 Like

if you run vkcube then nvidia-smi shows that process on the end?

In my case, I had to do the below to vkcube be showed in nvidia-smi.

$ __NV_PRIME_RENDER_OFFLOAD=1 vkcube

Don’t underestimate flatpak issues. You’re tinkering with the system’s graphics, but it has its own driver extension. You might have a version mismatch, switch to the RPM (recommended and supported) or update the flatpak.

2 Likes

Indeed. On a personal note, I still don’t have a good sharableprocedure for how to diagnose flatpak specific behavior. My normal way of diagnosing invovles using additional cmdline tools that aren’t yet found in the flatpak collections.

In this case, I’d recommend installing the glmark2 rpm and run various glmark2 command variations in a terminal and assess performance of the native system to form a baseline for the base system. If the framerates all look good there, then its likely not the base system.

Yes. Normally after updating the Nvidia drivers and rebooting, you need to run flatpak update to pick up the new versions of the Flatpak runtimes that can talk to the Nvidia driver.

Typically you’ll see something like this:

$ flatpak update
Looking for updates...

        ID                                                  Branch       Op       Remote        Download
 1. [✓] org.freedesktop.Platform.GL.nvidia-575-64-05        1.4          u        flathub       3.7 kB / 316.0 MB

Wow, so I just did an update of dnf (didn’t update anything relevant I think) and one of flatpak and there was indeed a Steam update available. Rebooted and now it’s fixed ! Even the resources app displays values. But I really don’t get how my ‘resources’ app is linked to how Steam handles graphics. That app hasn’t been updated in 4 months, so it’s not like I upgraded it at the same time as Steam and they each had a fix, weird…

Anyway thank you everyone and I hope I won’t be back here too soon :wink:

Is that a Flatpak app? If so then you probably picked up an update to the Flatpak runtime’s extension for the Nvidia drivers (as in my example above), not to the app itself.

For some more background see: Flathub/flatpak Nvidia installs when installing something else

1 Like

It is bad form to verbosely quote what an AI tells you. AIs only regurgitate what they find in searches and do not verify accuracy nor applicability of the verbage.

Most of what that says is garbage and often will lead you into a very deep rabbit hole and endless trouble.

Your post is a generic answer about IA, in this specific case, what is wrong with the IA answer, technically?

Edit: the deep rabbit hole is Academia helped to develop IA and now it is helping to create anti-IA to protect cientific production against IA!

Please be careful with the criticism. If we only criticize the people who make it a point to tell use they are quoting AI, then we risk creating a culture where we don’t know which responses are AI or not because we’ve taught people to hide their use of it.

I would much much rather have people feel comfortable telling us that the information came from AI, then to teach them to avoid telling us that in an effort to avoid criticism.