I’m on a Kde spin install of Fedora 37.
Last update (6.2.7-200.fc37.x86_64) completely messed up my Nvidia settings and drivers, and I have a hard time installing them again.
I followed this tutorial for a fresh install : https://www.linuxcapable.com/how-to-install-nvidia-drivers-on-fedora-linux/
Here are the steps:
sudo dnf autoremove nvidia* --purge
but the --purge option doesn’t exist… anyway, I continued
I added the Nvidia CUDA Repo:
sudo dnf config-manager --add-repo
https://developer.download.nvidia.com/compute/cuda/repos/fedora37/x86_64/cuda-fedora37.repo
installed the dependencies:
sudo dnf install kernel-headers kernel-devel tar bzip2
make automake gcc gcc-c++ pciutils elfutils-libelf-devel
libglvnd-opengl libglvnd-glx libglvnd-devel acpid pkgconfig dkms
and finally installed the drivers:
sudo dnf module install nvidia-driver:latest-dkms
I rebooted but the installation didn’t work. nvidia-settings
talked about some “core failure” but I don’t remember the exact output.
So I tried the other solution.
I first uninstalled nvidia:
sudo dnf autoremove nvidia*
I imported the repos:
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
and
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
Although they were already imported because my previous nvidia setup was via rpm.
Then
sudo dnf install akmod-nvidia
I tried
sudo dnf install xorg-x11-drv-nvidia-cuda
But it fails, reporting this:
All matches were filtered out by modular filtering
for argument: xorg-x11-drv-nvidia-cuda
Error: Unable to find a match: xorg-x11-drv-nvidia-cuda
I rebooted and it doesn’t work. My system doesn’t recognize my screens and nvidia-settings
is not installed. If I install it, it opens but doesn’t recognize anything either.
My graphic card is a GeForce RTX 3070
lspci -vnn | grep VGA
returns:
2d:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104
[GeForce RTX 3070] [10de:2484] (rev a1) (prog-if 00 [VGA controller])
I should say it worked perfectly fine before the last update and I don’t know why I’m not able to re-install the Nvidia drivers.
Am I doing something wrong? Is there somewhere some guidelines that I can follow to reinstall those drivers? Can I prevent this from happening in the future?