Driver fails after ordinary os kernel upgrade

Just in case someone else hits this sort of thing:

In my case with fedora 41 cuda 12.8, I did:
dnf upgrade --refresh
this, amongst other things upgraded the os kernel from 6.12.10 to 6.12.11
At first sight it all worked, but on reboot nvidia-smi could not find the driver.

dmesg logged that the driver module should have been for 6.12.11 but was for 6.12.10

Fortunately I found a simple solution which seems to have completely fixed it with no side effects:

sudo dkms remove -m nvidia -v 570.86.15 --all
sudo dkms install -m nvidia -v 570.86.15
reboot

1 Like

Nice! It worked for me too! Weird bug, scirptles during update did not do something correctly apparently.

And again with next kernel upgrade to 6.12.13. It looks as if something about the driver version triggers this. Fortunately, after the upgrade reboot that has the driver not working, doing the previously mentioned 2 dkms commands one after the other and then a reboot fixes it again.

With the latest round of updates I received Driver Version: 570.124.06. I am currently running kernel 6.13.5-200.fc41.x86_64. After reboot, I did not need to do the remove + install detailed above. Will check again at next kernel upgrade. At present It appears the problem was associated with Nvidia driver 570.86.15 and is now fixed.

I sincerely apologize for asking such a basic question. I’m new to this forum, and I’m still not very familiar with it. I’m even unsure about how to post an article. May I kindly ask where I should click to post a topic? I truly haven’t been able to find the button.

Once again, I apologize for the inconvenience and appreciate your understanding.

Don’t worry about it, not all forums work the same way. 1st login (thats working for you as you replied to my post)
On the menu at the top to the right of search, and to the left of the login icon, choose topics. On the right you should see New Topic. Bad luck for replying to a really niche topic … could have been a while before you were answered.