There are some steps that is not documented in the RPMFusion's installation guide. Here's how I install NVIDIA driver on Fedora 41.
- Update all packages and reboot
- Install
akmod-nvidiafrom RPMFusion, optionally with packages for CUDA or NVENC. - For some reason, after akmod installation, I didn't see modeset=1 on kernel option, so:
#!/bin/bash
sudo grubby --update-kernel=ALL --args='nvidia-drm.modeset=1'- Create file
/etc/dracut.conf.d/nvidia.confwith the following content:
add_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "
install_items+=" /etc/modprobe.d/nvidia.conf "
- Create file
/etc/modprobe.d/nvidia.confwith the following content:
options nvidia_drm modeset=1
- Wait until akmod done building the drivers.
- Rebuild initramfs
sudo dracut --regenerate-all --force - The system is ready to reboot.
The script has not been tested.
#!/bin/bash
sudo dnf install akmod-nvidia \
xorg-x11-drv-nvidia-cuda xorg-x11-drv-nvidia-cuda-libs \
xorg-x11-drv-nvidia-power \
nvidia-vaapi-driver libva-utils vdpauinfo
sudo grubby --update-kernel=ALL --args='nvidia-drm.modeset=1'
cat << EOF | sudo tee /etc/dracut.conf.d/nvidia.conf
add_drivers+=" nvidia nvidia_modeset nvidia_uvm nvidia_drm "
install_items+=" /etc/modprobe.d/nvidia.conf "
EOF
cat << EOF | sudo tee /etc/modprobe.d/nvidia.conf
options nvidia_drm modeset=1
EOF
while pgrep akmod; do
sleep 5
done
sudo dracut --regenerate-all --force
The process remains very similar if not the same for NVIDIA proprietary driver installed with akmod from RPMFusion.
I'm not sure about that status and usability on
akmod-nvidia-openthough. This needs GPU with GSP firmware (GTX 16/RTX 20 series or later) and my GTX 1070 is not supported.Anyway, you should read RPMFusion documentation about NVIDIA drivers. It has more detail on which driver should pair with which GPU.