Hi, I’m new to Fedora, and I’m having trouble installing the nvidia driver.
Based on guides I found on online for secure boot and nvidia driver install, I did the following:
sudo kmodgenca -a
sudo mokutil --import /etc/pki/akmods/certs/public_key.der
reboot # then imported the key in the special EFI window
sudo dnf install akmod-nvidia
At the last step, I was monitoring processes from another terminal using htop
, and after the install completed, for a moment I see a few processes started by akmods, be then the whole htop interface turned non responsive, q
and Ctrl+C
both does nothing.
Then using top
I found all akmods processes have disappeared.
modinfo -F version nvidia
still returns modinfo: ERROR: Module nvidia not found.
sudo akmods --force
just hangs with no output and doesn’t exit and had to be interrupted with Ctrl+C
At this step I’m at a loss, since all nvidia driver install issues I found online at least can get some output with akmods --force
.
Does anyone know whats going on?
My GPU is a RTX4080spuer.
Some more added context
It seems once I tried to install the driver, some other apps that requires hardware info also hang, not just htop
. So far I found neofetch
and inxi
both hang as well.
Though top
and the gnome system monitor works fine.
We have no clue from the info provided.
Please show us the output of mokutil --sb-state
, dnf list installed \*nvidia\*
, and lsmod | grep -iE "nvidia|nouveau"
Post each of those separately using the preformatted text tags using the </>
button on the toolbar so we can see the formatting the same as on your screen.
With those 3 commands we should be able to at least get a start on understanding the current config.
Once we have this additional info we may be able to determine the path forward.
1 Like
Ok, this is very weird. I tried to install the driver multiple times, for the first three times due to incomplete installation, I broke the OS and had to reinstall it for every attempt.
For the fourth attempt, I had to leave after configuring for secure boot which meant the OS went to suspension. After I returned and woke the system, I decided to go for the last attempt, and it worked without issue.
I did the exact the process for the third and fourth attempt, the only difference was the computer went into suspension. Maybe the suspension change some internal state in the OS? I’m not sure.
Here’s the output you asked for, though everything seems to be working right now.
ythan@fedora:~$ mokutil --sb-state
SecureBoot enabled
ythan@fedora:~$ dnf list installed \*nvidia\*
Installed Packages
akmod-nvidia.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.7.9-200.fc39.x86_64.x86_64 3:550.54.14-1.fc39 @@commandline
nvidia-gpu-firmware.noarch 20240312-1.fc39 @updates
nvidia-modprobe.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64 3:550.54.14-1.fc39 @rpmfusion-nonfree-nvidia-driver
ythan@fedora:~$ lsmod | grep -iE "nvidia|nouveau"
nvidia_drm 126976 16
nvidia_modeset 1605632 12 nvidia_drm
nvidia_uvm 6651904 0
nvidia 60362752 166 nvidia_uvm,nvidia_modeset
video 77824 2 i915,nvidia_modeset
All that seems normal.
Glad it is now working for you.
Generally what has always worked for me is to
- perform the install.
- do a full system upgrade using
dnf upgrade
- reboot
- configure the system for signing the modules by installing akmods and performing the steps you described to import the key into the bios, including the reboot.
- install the nvidia drivers.
- reboot
With this sequence I seldom have any problems with the drivers.
1 Like
I do genuinely think the suspension did something. Last week I tried endeavourOS, and it also had issue installing nvidia driver 550.
And in the last attempt, I repeated their offical driver install process which I tried before but also failed with similar symptoms, the computer also went into suspension before I started. And it succedded.
Back then I attributed the diffrence in result to a kernal update. But now that I had two different distros fail the same driver install, and both only succeded after the system went into suspension. I think there’s something weird going on.
Of course I think it also has something to do with my gpu being relatively new, so there might be some incompatability. But it is still quite paculiar…