[SOLVED]Failed to initialize the NVIDIA kernel module

Ever since I installed the latest update, I haven't been able to use the NVIDIA driver. On boot, the driver fails to load up and it has to fall back to nouveau.
The error in the Xorg log is
modprobe nvidia turns up with "modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.1.45-desktop-1.mga8". But dkms-nvidia-current is installed. I've tried uninstalling and reinstalling the driver many times, to no avail. Please help.
The error in the Xorg log is
- Code: Select all
(EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
[ 1126.291] (EE) NVIDIA: system's kernel log for additional error messages and
[ 1126.291] (EE) NVIDIA: consult the NVIDIA README for details.
modprobe nvidia turns up with "modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.1.45-desktop-1.mga8". But dkms-nvidia-current is installed. I've tried uninstalling and reinstalling the driver many times, to no avail. Please help.