Skip to content

roworu/nvidia-fedora-secureboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 

Repository files navigation

Fedora + Nvidia + Secureboot

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

Preconditions:

  1. This method tested for Fedora 39/40 and latest NVIDIA drivers! NO matter if you use KDE or Gnome or anything else.
  2. In BIOS, Secure Boot is turned ON in setup mode
  3. Delete ALL older NVIDIA installations!
  4. 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.

Processing:

1) Add rpmfusion repos:

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

2) Full update of system:

sudo dnf upgrade --refresh

3) Reboot!

sudo systemctl reboot

4) Install signing modules:

sudo dnf install kmodtool akmods mokutil openssl

5) Generate a key:

sudo kmodgenca -a

6) Import your key, and set password to it, no need for complex passwords:

sudo mokutil --import /etc/pki/akmods/certs/public_key.der

7) Reboot!

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)

9) Install NVIDIA drivers:

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

10) Also, you can install CUDA support, in case you need it and your GPU supports it:

sudo dnf install xorg-x11-drv-nvidia-cuda

11) Wait for modules to build! You can check build process via htop, or by typing:

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.

12) Recheck, that modules built for currently running kernel:

sudo akmods --force

13) Recheck boot image update:

sudo dracut --force

13) Reboot and we are done!

Screenshot from 2024-04-06 14-10-49 Task manager app on screenshot: https://flathub.org/apps/io.missioncenter.MissionCenter

upd: 14) Disable GSP Firmware

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published