Hi there,
everytime I make a kernel update, I need to reinstall nvidia drivers, so I think dkms is not working properly.
I’m using the closed-source drivers, because my cutting software needs them, so I cant use akmod or cuda drivers.
sudo depmod -a
doesn’t solve this problem.
I need to reinstall the full driver and need to execute sudo /usr/sbin/dkms install --no-depmod -m nvidia -v 535.98 -k 6.4.11-200.fc38.x86_64 --force
to get it to work.
Hope anyone can help me.
Thank you in advanced! 
That makes sense because it seems you may have installed directly from nvidia.
If you were to remove those drivers and instead install them from rpmfusion following the instructions here they would automatically be updated with every driver or kernel update.
It only requires enabling the 3rd party repos within the gnome software app then following the steps given in that link.
1 Like
thank you for your reply, but isn’t dkms responsible to build the corresponding kernels/modules after a kernel update?
So this should also work with the official nvidia drivers, as I read.
Never use the drivers directly from nvidia so i cannot answer that about dkms. I know the ones from rpmfusion are tweaked and just work
for me on fedora. They are built with akmods, including signing the modules for use with secure boot.
1 Like