sudo akmods --kernel kernel-0:6.13.5-200.fc41.x86_64 --force --rebuild
ERROR: kernel or kernel-devel required for kernel-0:6.13.5-200.fc41.x86_64
kernel.x86_64 6.12.15-200.fc41 updates
kernel.x86_64 6.13.4-200.fc41 updates
kernel.x86_64 6.13.5-200.fc41 updates
kernel-core.x86_64 6.12.15-200.fc41 updates
kernel-core.x86_64 6.13.4-200.fc41 updates
kernel-core.x86_64 6.13.5-200.fc41 updates
kernel-devel.x86_64 6.12.15-200.fc41 updates
kernel-devel.x86_64 6.13.4-200.fc41 updates
kernel-devel.x86_64 6.13.5-200.fc41 updates
kernel-devel-matched.x86_64 6.13.5-200.fc41 updates
kernel-headers.x86_64 6.13.3-200.fc41 updates-testing
kernel-modules.x86_64 6.12.15-200.fc41 updates
kernel-modules.x86_64 6.13.4-200.fc41 updates
kernel-modules.x86_64 6.13.5-200.fc41 updates
kernel-modules-core.x86_64 6.12.15-200.fc41 updates
kernel-modules-core.x86_64 6.13.4-200.fc41 updates
kernel-modules-core.x86_64 6.13.5-200.fc41 updates
kernel-modules-extra.x86_64 6.12.15-200.fc41 updates
kernel-modules-extra.x86_64 6.13.4-200.fc41 updates
kernel-modules-extra.x86_64 6.13.5-200.fc41 updates
kernel-srpm-macros.noarch 1.0-24.fc41 fedora
kernel-tools.x86_64 6.13.5-200.fc41 updates
kernel-tools-libs.x86_64 6.13.5-200.fc41 updates
also selecting the 6.13.5
kernel continues to black screen while my monitor is connected from my gpu, how can i install nvidia-kmod-570.124.04-1.fc41 | Build Info | koji
this testing nvidia driver had this issue before while updateing to 3.13.4 kernel same issue akmods not building and selecting the new kernel leads to black screen. solved it by updating to 570 driver yeah i know there’s upstream bug solved in parsing kernel versions patched in 570. i checked /etc/src/akmods and there’s only two files named nvidia-kmod-570.86.16-3.fc41.src.rpm and nvidia-kmod.latest
dnf list --installed *\nvidia\*
kmod-nvidia-6.12.15-200.fc41.x86_64.x86_64 3:570.86.16-3.fc41 @commandline
kmod-nvidia-6.13.4-200.fc41.x86_64.x86_64 3:570.86.16-3.fc41 @commandline
libva-nvidia-driver.x86_64 0.0.13^20241108git259b7b7-2.fc41 updates
nvidia-gpu-firmware.noarch 20241210-1.fc41 updates
nvidia-modprobe.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-updates
nvidia-settings.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
type or paste code here
i ran udo rpmbuild --rebuild --define='_smp_build_ncpus 4' --define='kernels 6.13.5-200.fc41.x86_64' https://koji.rpmfusion.org/kojifiles/packages/nvidia-kmod/570.86.16/3.fc41/src/nvidia-kmod-570.86.16-3.fc41.src.rpm > filess.txt
here’s a line that caugt my eye
# BTF [M] nvidia-modeset.ko
if [ ! -f /usr/src/kernels/6.13.5-200.fc41.x86_64/vmlinux ]; then printf "Skipping BTF generation for %s due to unavailability of vmlinux\n" nvidia-modeset.ko 1>&2; else LLVM_OBJCOPY="objcopy" pahole -J -j4 --btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func,decl_tag_kfuncs --lang_exclude=rust --btf_features=distilled_base --btf_base /usr/src/kernels/6.13.5-200.fc41.x86_64/vmlinux nvidia-modeset.ko; /usr/src/kernels/6.13.5-200.fc41.x86_64/tools/bpf/resolve_btfids/resolve_btfids -b /usr/src/kernels/6.13.5-200.fc41.x86_64/vmlinux nvidia-modeset.ko; fi;
Your list of installed nvidia packages is missing 2 that are normal and one of those is critical to manage building the drivers.
It is mandatory to have the akmod-nvidia
or akmod-nvidia-open
package installed since those are what control building and installing the kmod-nvidia-… packages
The error line you posted reveals that it is the 6.13.5 kernel for which the driver is failing so you must install the akmod-nvidia package before the driver can be built for that kernel. sudo dnf install akmod-nvidia
The error message seems to indicate that the kernel-devel package is not installed for the 6.13.5 kernel, though it must have been with the 6.12.15 & 6.13.4 kernels or the kmod-packages for those kernels would not exist. Installing the akmod-nvidia package should pull in any missing dependencies at the same time (kernel-devel included)
The second package I mentioned is the xorg-x11-drv-nvidia-cuda
package that many if not most, users also install.
I first suggest that you get the driver with the 570.86.16 version functioning, then after that reconsider if you really want to try installing a not yet released version from koji. The updated version will be released by rpmfusion as soon as it is built & properly passes testing at rpmfusion. The 570.124.04 version is not yet even into the rpmfusion testing repo.
I’m seeing something similar here. 570.86 works fine on 6.13.4 but not on 6.13.5
6.13.4 :
nerkho@fedyra:~$ uname -a
Linux fedyra 6.13.4-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Feb 22 16:09:10 UTC 2025 x86_64 GNU/Linux
nerkho@fedyra:~$ dnf list --installed *\nvidia\*
Installed packages
akmod-nvidia.x86_64 3:570.86.16-3.fc41 rpmfusion-nonfree-updates
kmod-nvidia-6.12.15-200.fc41.x86_64.x86_64 3:565.77-1.fc41 @commandline
kmod-nvidia-6.13.4-200.fc41.x86_64.x86_64 3:570.86.16-3.fc41 @commandline
kmod-nvidia-6.13.5-200.fc41.x86_64.x86_64 3:570.86.16-3.fc41 <unknown>
nvidia-modprobe.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-updates
nvidia-settings.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.i686 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.i686 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-xorg-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
nerkho@fedyra:~$ nvidia-smi
Sun Mar 2 10:43:35 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 570.86.16 Driver Version: 570.86.16 CUDA Version: 12.8 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4070 Ti Off | 00000000:01:00.0 On | N/A |
| 0% 37C P0 34W / 285W | 691MiB / 12282MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2478 G /usr/bin/gnome-shell 281MiB |
| 0 N/A N/A 3352 G /usr/lib64/firefox/firefox 243MiB |
| 0 N/A N/A 4787 C+G /usr/bin/gnome-text-editor 23MiB |
| 0 N/A N/A 4809 G /usr/bin/Xwayland 3MiB |
| 0 N/A N/A 5274 C+G /usr/bin/ptyxis 55MiB |
+-----------------------------------------------------------------------------------------+
6.13.15
nerkho@fedyra:~$ uname -a
Linux fedyra 6.13.5-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Feb 27 15:07:31 UTC 2025 x86_64 GNU/Linux
nerkho@fedyra:~$ dnf list --installed *\nvidia\*
Installed packages
akmod-nvidia.x86_64 3:570.86.16-3.fc41 rpmfusion-nonfree-updates
kmod-nvidia-6.12.15-200.fc41.x86_64.x86_64 3:565.77-1.fc41 @commandline
kmod-nvidia-6.13.4-200.fc41.x86_64.x86_64 3:570.86.16-3.fc41 @commandline
kmod-nvidia-6.13.5-200.fc41.x86_64.x86_64 3:570.86.16-3.fc41 <unknown>
nvidia-modprobe.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-updates
nvidia-settings.x86_64 3:570.86.16-1.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.i686 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.i686 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-xorg-libs.x86_64 3:570.86.16-5.fc41 rpmfusion-nonfree-nvidia-driver
nerkho@fedyra:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
In your case i will try reinstall kernel sudo dnf reinstall kernel/*
I would also suggest rebuilding the driver with
sudo akmods --rebuild --force --kernels 6.13.5-200.fc41.x86_64
This shows it probably did not get built properly (maybe as a result of a reboot too quickly?)