"Nvidia kernel module missing, falling back to nouveau" after upgrading to kernel 6.12.4 | F40

After updating to kernel 6.12.4 from 6.11.11 i got this error: Nvidia kernel module missing, falling back to nouveau. Due to this error, i got huge performance problems of course. This is not a fresh install.

I have installed nvidia with RPM fusion ressources.
Secure boot is diabled.

What did i do to solve this?

  1. Reinstalled kernel (2 times):

    • Switched back to old kernel
    • Deleted the new one
    • Reinstalled the new one
    • Waited at least 10 minutes to let nvidia built itself
    • Rebooted
  2. Rebuilding akmods

    • Used sudo akmods --force --rebuild after first time reinstalled kernel, Failed
    • Did same after second time, but now : sudo: akmods: command not found

Nothing is wrong with the old kernel. Any suggestion? I don’t want to reinstall all the nividia drivers, it will mess my projects.

edit: I see in the lastest entries there are some problem with this kernel version but are there a solution?

Ok i fixed this.

Seems like upgrading to Fedora 41 fixed the problem. I am telling you how to do that so it might help someone.

How i did:

  • Switch back to old kernel in the grub menu
  • Remov the new kernel in terminal
    • you can use uname -r to see the kernel version you are using
    • you can use rpm -qa kernel to see all the kernel versions you have
    • use sudo dnf remove kernel*6.12.4* to remove the new (problematic) kernel - type the kernel version you want to remove
  • go for setting > system > sofware updates > download fedora 41
  • after download update system with fedora 41
  • after updating sudo dnf update
  • wait 5 minutes and reboot
  • hopefully everything works fine
  • Updating to Fedora 41 automaticly updates kernel too

Kernel 6.12.4 might not working with Fedora 40 for now. Hope it helps those who needs.

1 Like

I had a system that seemed to have problems with an upgrade to 6.12.4 and nvidia.

The solution was very simple.
sudo akmods --force --rebuild --kernel 6.12.4-200.fc41.x86_64
followed by a reboot.

1 Like

Thanks for the info. In my case I also tried that but ended up same results. Only way for me to solve this was upgrading to F41.