This is a short instruction I mostly wrote for myself. Here is presented a guide on how to install latest Nvidia drivers for Fedora desktop. I don't know if it will also work for "Silverblue" edition, you probably need to check full instruction from official rpmfusion sources, as this instruction mostly based on it:
https://rpmfusion.org/Howto/NVIDIA
https://rpmfusion.org/Howto/Secure%20Boot
- This method tested for Fedora 39/40 and latest NVIDIA drivers! NO matter if you use KDE or Gnome or anything else.
- In BIOS, Secure Boot is turned ON in setup mode
- Delete ALL older NVIDIA installations!
- You could also turn OFF 'quiet' boot option, for easier debugging, with following command:
sudo grubby --update-kernel=ALL --remove-args='quiet'
It is not requierment, but could ease your life in case of some errors.
free:
sudo dnf install \
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
nonfree:
sudo dnf install \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf upgrade --refresh
sudo systemctl reboot
sudo dnf install kmodtool akmods mokutil openssl
sudo kmodgenca -a
sudo mokutil --import /etc/pki/akmods/certs/public_key.der
sudo systemctl reboot
8) MOK manager will ask you, if you want to proceed with boot, or enroll the key. Pick "Enroll MOK" -> "Continue", type in a password created in (7)
sudo dnf install gcc kernel-headers kernel-devel akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs xorg-x11-drv-nvidia-libs.i686
sudo dnf install xorg-x11-drv-nvidia-cuda
modinfo -F version nvidia
It should return you driver version like this:
If it shows ERROR: Module nvidia not found - modules are still building, keep waiting.
sudo akmods --force
sudo dracut --force
Task manager app on screenshot: https://flathub.org/apps/io.missioncenter.MissionCenter
# For latest drivers (555-560) + wayland you might want to also disable GSP Firmware to reduce lags in Gnome/KDE
# source: https://forums.developer.nvidia.com/t/major-kde-plasma-desktop-frameskip-lag-issues-on-driver-555/293606
sudo grubby --update-kernel=ALL --args=nvidia.NVreg_EnableGpuFirmware=0