I updated my system recently, and when I rebooted, the NVIDIA driver for RTX4050 was not shown, rather NV197 was shown.
So, I reverted to previous kernel version which was 6.12.15, and still it was showing NV197.
Then I reinstalled the akmod-nvidia and xorg-x11-drv-nvidia-cuda, and blacklisted the nouveau driver. After rebooting, the dkms.service failed to load.
But once it was booted in, the Graphics driver was found to be llvmpipe, and when I did systemctl status dkms.service
× dkms.service - Builds and install new kernel modules through DKMS
Loaded: loaded (/usr/lib/systemd/system/dkms.service; enabled; preset: enabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf, 50-keep-warm.conf
Active: failed (Result: exit-code) since Fri 2025-03-14 16:07:33 IST; 1min 47s ago
Invocation: 418b5049ec524d389eaf42b7837fb123
Docs: man:dkms(8)
Process: 1320 ExecStart=/usr/sbin/dkms autoinstall --verbose --kernelver 6.12.15-200.fc41.x86_64 (code=exited, status=11)
Main PID: 1320 (code=exited, status=11)
Mem peak: 2.3G
CPU: 5min 34.233s
Mar 14 16:07:33 fedora dkms[9191]: Error! Bad return status for module build on kernel: 6.12.15-200.fc41.x86_64 (x86_64)
Mar 14 16:07:33 fedora dkms[9191]: Consult /var/lib/dkms/nvidia-open/570.124.06/build/make.log for more information.
Mar 14 16:07:33 fedora dkms[1320]: Autoinstall on 6.12.15-200.fc41.x86_64 succeeded for module(s) openrazer-driver.
Mar 14 16:07:33 fedora dkms[1320]: Autoinstall on 6.12.15-200.fc41.x86_64 failed for module(s) nvidia-open(10).
Mar 14 16:07:33 fedora dkms[9192]: Error! One or more modules failed to install during autoinstall.
Mar 14 16:07:33 fedora dkms[9192]: Refer to previous errors for more information.
Mar 14 16:07:33 fedora systemd[1]: dkms.service: Main process exited, code=exited, status=11/n/a
Mar 14 16:07:33 fedora systemd[1]: dkms.service: Failed with result 'exit-code'.
Mar 14 16:07:33 fedora systemd[1]: Failed to start dkms.service - Builds and install new kernel modules through DKMS.
Mar 14 16:07:33 fedora systemd[1]: dkms.service: Consumed 5min 34.233s CPU time, 2.3G memory peak.
so, I did cat /var/lib/dkms/nvidia-open/570.124.06/build/make.log
and this was the output.
# command: make -C /lib/modules/6.12.15-200.fc41.x86_64/build M=/var/lib/dkms/nvidia-open/570.124.06/build clean
make: Entering directory '/usr/src/kernels/6.12.15-200.fc41.x86_64'
/var/lib/dkms/nvidia-open/570.124.06/build/Makefile:23: utils.mk: No such file or directory
make[2]: *** No rule to make target 'utils.mk'. Stop.
make[1]: *** [/usr/src/kernels/6.12.15-200.fc41.x86_64/Makefile:1982: _clean_/var/lib/dkms/nvidia-open/570.124.06/build] Error 2
make: *** [Makefile:236: __sub-make] Error 2
make: Leaving directory '/usr/src/kernels/6.12.15-200.fc41.x86_64'
I made sure that all these tools are installed kernel-devel kernel-headers gcc make dkms elfutils-libelf-devel akmod-nvidia xorg-x11-drv-nvidia-cuda
But still I am getting this error, and not able to get the NVIDIA Graphics Driver back.
Here are my system specifications:
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.11.4-301.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7435HS
Memory: 23.1 GiB of RAM
Graphics Processor: NV197
Manufacturer: LENOVO
Product Name: 83JC
System Version: LOQ 15ARP9
My system’s Secure Boot was always off.