F39 - NVIDIA Drivers for older kernel

HI there. Absolute noob to the linux-environment.

I have reinstalled Fedora at least 12 times in the last 4 days (dual-boot) after trying to install Nvidia drivers. But this is merely due to not understanding what is/was happening. Each installment and searching the internet got me learning more and more, so it wasn’t a waste.

I have a 3060Ti and installed the latest 550-driver from Nvidia. It works, but my problem at the moment is that I have flickering issues and extremely slow rendering of google earth in Vivaldi-browser with kernel 6.7.6-200. Kernel 6.5.6.300 works somewhat smooth, but I cannot install Nvidia to check if it will improve performance.

So this is what I’m doing:

  • Install Fedora and update → Kernel 6.7 get’s installed → impossible for me to boot in, simply not booting → boot back to 6.5 and reinstall 6.7 manually → I can get into 6.7 → open Vivaldi and google earth → extremely slow rendering of google earth and Vivaldi flickering when I use other applciations → I go back to 6.5

  • Booted in 6.5 → install akmod-Nvidia driver → I see during installation that it installs it for 6.7 → sudo reboot → I login into 6.5 → I get 1024*768. No way to get it back top 1080, unless I uninstall nvidia. → I boot into 6.7 → lspci -n -n -k | grep -A 2 -e VGA -e 3D → Nvidia → extremely slow rendering of google earth and Vivaldi flickering when I use other applications … … …

I don’t know what to do anymore. I want back to 6.5 where I don’t have the flickering issues, but want to use Nvidia in the hope I get better graphical performances.

Where can I find older drivers that will work proper with 6.5 kernel? Is there a repo list I can download and install from?

Thanks in advance.

NOTE: I must say that getting me to learn how things work was actually fun, but it’s starting to become annoying and demotivating. The only thing that keeps me going is that I want to get rid of Windows, but I wonder if it’s worth all the frustrations (to come).

:thinking:

Did you get the Nvidia driver from the Nvidia website or from the Third Party Repo in the Software Center, it is packaged by the Distro.

Thanks for the reply.

I have tried using: sudo dnf install akmod-nvidia
I have tried using: sudo dnf module install nvidia-driver:latest-dkms

Both with same result. I did not use the “Software” feature.

There’s 3 methods on this site, Which did you chose?

ermmm… I’m pretty sure I mentioned that. Let me copy them:

  • udo dnf install akmod-nvidia
  • sudo dnf module install nvidia-driver:latest-dkms

Go ahead and uninstall the drivers via the method you used. Once you have uninstalled the driver, simply go to the software center and install it by enabling the repository.

sudo dnf update -y 
sudo dnf install akmod-nvidia 

Here is the How To page of RPMFusion

How To Install Nvidia Drivers on Fedora

https://rpmfusion.org/Howto/NVIDIA

and that should do it.

if you have Secure boot, and need it, there would be more steps for you to do to sign your Secure boot key.

Thanks for the reply.
You are telling me to do the same thing I’ve already done. Why?
I have RPM non-free already working. Wat is different on the website you linked with the one that I linked? I am really confused atm. What is it I am missing here?

Are you sure the driver is loaded? Also do you have secure boot enabled? As an aside, make sure you have nvidia-gpu-firmware installed.

Secure boot is disabled, otherwise it wouldn’t install at all.

nvidia-gpu-firmware → First time I heard of that. Never seen that mentioned in any of the articles I read. Where do I install that or how do I check I have that installed? I can’t find anything related to that. ONly thing I can find is: nvidia-gpu-firmware - Fedora Packages

Also pretty sure I mention that the driver is loaded: lspci -n -n -k | grep -A 2 -e VGA -e 3D → Nvidia

I’m gonna ping the Nvidia RPMFusion guy here, @computersavvy if they have a moment to stop by and help. I have to leave early. :wave:t5:

Thanks for willing to help.

To check for an rpm you can do rpm -q <package-name> or rpm -qa | grep <package-name>

To install use sudo dnf install nvidia-gpu-firmware.

Are you sure that you do not have any of the driver code from the nvdia.com website installed?

What does sudo dnf list '*nvidia*' show?

Also what does sudo inxi -Gxx show?
(Install inxi if you do not already have it installed).

Thank you for the reply:

I have not installed anything besides the packages from RPM. Everything I’ve done is stated in my first message. Nothing more.

jay@fedora:~$ dnf list installed '*nvidia*'
Installed Packages
kmod-nvidia-latest-dkms.x86_64             3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-driver.x86_64                       3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-driver-NVML.x86_64                  3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-driver-NvFBCOpenGL.x86_64           3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-driver-cuda.x86_64                  3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-driver-cuda-libs.x86_64             3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-driver-devel.x86_64                 3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-driver-libs.x86_64                  3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-gpu-firmware.noarch                 20240220-1.fc39               @updates             
nvidia-kmod-common.noarch                  3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-libXNVCtrl.x86_64                   3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-libXNVCtrl-devel.x86_64             3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-modprobe.x86_64                     3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-persistenced.x86_64                 3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-settings.x86_64                     3:550.54.14-1.fc39            @cuda-fedora39-x86_64
nvidia-xconfig.x86_64                      3:550.54.14-1.fc39            @cuda-fedora39-x86_64

jay@fedora:~$ nvidia-smi
Sat Mar 2 19:27:50 2024
±----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.54.14 Driver Version: 550.54.14 CUDA Version: 12.4 |
|-----------------------------------------±-----------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3060 Ti Off | 00000000:09:00.0 On | N/A |
| 30% 40C P8 18W / 200W | 204MiB / 8192MiB | 25% Default |
| | | N/A |
±----------------------------------------±-----------------------±---------------------+

±----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2456 G /usr/libexec/Xorg 108MiB |
| 0 N/A N/A 2745 G /usr/bin/gnome-shell 23MiB |
| 0 N/A N/A 2933 G /usr/bin/gnome-software 42MiB |
±----------------------------------------------------------------------------------------+
jay@fedora:~$

inxi: command not found

jay@fedora:~$ sudo dnf list '*nvidia*' s
Last metadata expiration check: 3:29:07 ago on za 02 mrt 2024 16:19:38 CET.
Installed Packages
kmod-nvidia-latest-dkms.x86_64                             3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-driver.x86_64                                       3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-driver-NVML.x86_64                                  3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-driver-NvFBCOpenGL.x86_64                           3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-driver-cuda.x86_64                                  3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-driver-cuda-libs.x86_64                             3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-driver-devel.x86_64                                 3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-driver-libs.x86_64                                  3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-gpu-firmware.noarch                                 20240220-1.fc39                     @updates                       
nvidia-kmod-common.noarch                                  3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-libXNVCtrl.x86_64                                   3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-libXNVCtrl-devel.x86_64                             3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-modprobe.x86_64                                     3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-persistenced.x86_64                                 3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-settings.x86_64                                     3:550.54.14-1.fc39                  @cuda-fedora39-x86_64          
nvidia-xconfig.x86_64                                      3:550.54.14-1.fc39                  @cuda-fedora39-x86_64
jay@fedora:~$ sudo inxi -Gxx 
Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti] driver: nvidia v: 550.54.14
    arch: Ampere pcie: speed: 5 GT/s lanes: 16 bus-ID: 09:00.0
    chip-ID: 10de:2486
  Device-2: Logitech HD Pro Webcam C920 driver: snd-usb-audio,uvcvideo
    type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 5-2:2 chip-ID: 046d:082d
  Display: server: X.Org v: 1.20.14 with: Xwayland v: 23.2.4
    compositor: gnome-shell v: 45.4 driver: X:
    loaded: modesetting,nouveau,nvidia unloaded: fbdev,vesa alternate: nv
    gpu: nvidia display-ID: :1 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96
  Monitor-1: DP-0 pos: left res: 1920x1080 dpi: 90 diag: 623mm (24.52")
  Monitor-2: DP-2 pos: primary,right res: 1920x1080 dpi: 90
    diag: 623mm (24.52")
  Monitor-3: None-1-1 size-res: N/A
  API: OpenGL v: 4.6.0 vendor: nvidia v: 550.54.14 glx-v: 1.4
    direct-render: yes renderer: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
  API: EGL Message: EGL data requires eglinfo. Check --recommends.

I don’t know what Screen 1: 0 s-res:3840*1080 is. It appeared after installing the driver(s)

Looks like the nouveau driver is being used, not the nvidia driver.
I do not have an nvidia system check on anymore, so I am going from memory.

Try sudo akmods --force to rebuild the drivers and reboot.
You can check what kernel module is loaded with sudo lsmod and look for nvidia or nouveau to see what is being used.

I always use these

Sudo dnf remove ‘kmod-nvidia-*’ then sudo akmods --force

After those
sudo reboot

This has always worked for me when having issues to load Nvidia drivers

Alright, thank you both. I’ll try the --force first, if that doesn’t work I’ll try Marko’s solution. I’ll reply asap.

The commands failed, so I reinstalled the nvidia drivers and rebooted → tried to use kernel 6.7 → wouldn’t boot into desktop → went back to 6.5 → sudo dnf install akmod-nvidia -y → went to 6.7 → only 1 screen was working, wasn’t able to get both monitors working → back to 6.5 (both working again) → removed drivers again → still in 6.5 → sudo dnf install akmod-nvida -y → after installation: sudo akmods --force

jay@fedora:~$ sudo akmods --force
Checking kmods exist for 6.5.6-300.fc39.x86_64             [  OK  ]
Files needed for building modules against kernel
6.5.6-300.fc39.x86_64 could not be found as the following
directories are missing:
/usr/src/kernels/6.5.6-300.fc39.x86_64/
/lib/modules/6.5.6-300.fc39.x86_64/build/Is the correct ker[FAILED]l package installed?
Checking kmods exist for 6.7.6-200.fc39.x86_64             [  OK  ]

sudo reboot → booted into 6.7 → only 1 screen working on 1600 * 900 (not 1920 * 1080) → sudo dnf remove kmod-nvidia-*

Removed:
  kmod-nvidia-6.7.6-200.fc39.x86_64-3:550.54.14-1.fc39.x86_64

sudo akmods --force

jay@fedora:~$ sudo akmods --force
Checking kmods exist for 6.7.6-200.fc39.x86_64             [  OK  ]
Building and installing nvidia-kmod                        [  OK  ]

sudo reboot → booted into 6.7 → saw boot screens working → booted into desktop → unable to get my other screen to work, it’s disabled somehow → sudo inxi -Gxx

Screen-1: 0 s-res: 3840x1080 s-dpi: 96 <-- no idea what this is
Monitor-1: DP-1 note: disabled pos: right model: Dell AW2521HFA
    res: 1920x1080 dpi: 90 diag: 623mm (24.5")
Monitor-2: DP-2 note: disabled pos: primary,left model: Dell AW2521HFA
    res: 1920x1080 dpi: 90 diag: 623mm (24.5")

Well, I’m done for today. I’ll try a fresh install tomorrow if I’m in the mood, and see how far I’ll get then. I give up for now. Been frustrating enough for 1 day. Even logging in to the forum again is a pain. It takes ages and I’ve had over 3 “system error”'s trying to log in already, plus 1 gateway-timeout.

Thank you all so far for helping.

All of those packages are installed from the nvidia site (cuda-fedora39-x86_64)

My suggestion (yes I am partial to rpmfusion) is to remove all nvidia packages that are installed from the cuda-fedora39 repo then install the nvidia drivers only from rpmfusion.

First run dnf repolist and see if you have the rpmfusion-nonfree-nvidia-driver repo enabled.
If so then run sudo dnf remove \*nvidia\* --exclude nvidia-gpu-firmware to remove the currently installed packages then install the packages from rpmfusion with sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda --disablerepo cuda-fedora39-x86_64. Verify that the packages to be installed are coming from the rpmfusion repo before telling dnf to continue.