Installing Nvidia drivers on Fedora KDE plasma 34,35,36,37 with ubuntu-drivers tool ported over

Hello

Skip to MY QUESTION if you don’t want to know the background story/

Before I ask my question, please understand this is my first post and I am NOOB, I know nothing about the under belly of linux.

I’ve been using fedora for 3yr plus years and love it, but I upgrade to a new PC with NVIDIA 3060 video card.

I can not get nvidia video drivers to install on any version of Fedora KDE plamsa. I’ve try every online how to guide published.

MY QUESTION.

With LinuxMint (ubuntu) there is a tool/utility called “ubuntu-drivers”

Does any one know if this tool has been ported over to fedora?
to help install nvidia drivers

Why I’m I asking, b/c I want to run fedora, but only on Linux Mint can I get nvidia drivers to work!!!

Found here on
https://help.ubuntu.com/community/NvidiaDriversInstallation

As far as the tool being ported I have no clue.

However, it is very easy to install the nvidia drivers on fedora whether using Workstation, KDE, or any of the other spins. It is much better to use the native fedora related tools such as dnf than to try importing from a totally different distro that even uses a different package manager.

Simply look here and follow instructions.
https://rpmfusion.org/Configuration
and
https://rpmfusion.org/Howto/NVIDIA

Those instructions do require using the command line but that simply means you need to open a terminal once logged into the machine.

Jeff V

Well I’ve tried all the How To Guides to install NVIDIA, it does not work.

I’m still looking if someone know if the LinuxMint (ubuntu) tool/utility called “ubuntu-drivers” has been ported over to fedora.

Please not reply if you are going to say I don’t know.

Thanks

Hi,

Its very doubtful that this will get ported over to fedora (or even rhel), the underlying python relies on the apt package manager to determine and install th required nvidia driver.

I suggest trying this instead:

Regards Tom.

Please show us the output of each of these commands.
lsmod | grep -iE 'nvidia|nouveau'
dnf list installed \*nvidia\*
dnf repolist
and sudo dnf install akmod-nvidia
Your statement tells us you have tried all the guides, but do not tell us the results of each command. The commands I asked for will tell us the current situation so we can work from that point.

1 Like

Jeff

Just to let you know here is my Nvidia card running on Linux Mint (ubuntu)

I remove my acct name and hostname

-----:

~$ nvidia-smi
Tue Oct 25 20:03:41 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 510.85.02    Driver Version: 510.85.02    CUDA Version: 11.6     |
|-------------------------------+----------------------+----------------------+
| 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 ...  Off  | 00000000:2B:00.0  On |                  N/A |
|ERR!   35C    P0    31W / 170W |    444MiB / 12288MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      2681      G   /usr/lib/xorg/Xorg                290MiB |
|    0   N/A  N/A      3622      G   cinnamon                           35MiB |
|    0   N/A  N/A      4361      G   /usr/lib/firefox/firefox          115MiB |
+-----------------------------------------------------------------------------+
$ uname -a
Linux ------ 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ lsmod | grep -iE 'nvidia|nouveau'
nvidia_uvm           1216512  0
nvidia_drm             69632  5
nvidia_modeset       1150976  8 nvidia_drm
nvidia              39137280  421 nvidia_uvm,nvidia_modeset
drm_kms_helper        311296  1 nvidia_drm
drm                   622592  9 drm_kms_helper,nvidia,nvidia_drm

Here is the cmd inxi -Fzx

$ sudo inxi -Fzx
[sudo] password for -----:              
System:
  Kernel: 5.15.0-52-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Cinnamon 5.4.12 Distro: Linux Mint 21 Vanessa
    base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop Mobo: Micro-Star model: MPG B550I GAMING EDGE WIFI (MS-7C92)
    v: 1.0 serial: <filter> UEFI: American Megatrends LLC. v: 1.B0
    date: 09/14/2022
CPU:
  Info: 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP arch: Zen 3
    rev: 0 cache: L1: 768 KiB L2: 6 MiB L3: 64 MiB
  Speed (MHz): avg: 2262 high: 3700 min/max: 2200/4950 boost: enabled
    cores: 1: 2200 2: 2200 3: 2200 4: 2200 5: 2200 6: 2200 7: 2200 8: 2200
    9: 2200 10: 2200 11: 2200 12: 3700 13: 2200 14: 2200 15: 2200 16: 2200
    17: 2200 18: 2200 19: 2200 20: 2200 21: 2200 22: 2200 23: 2200 24: 2200
    bogomips: 177587
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] vendor: ASUSTeK
    driver: nvidia v: 510.85.02 bus-ID: 2b:00.0
  Device-2: Logitech HD Webcam C910 type: USB
    driver: snd-usb-audio,uvcvideo bus-ID: 1-6:2
  Display: server: X.Org v: 1.21.1.3 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia resolution: 3840x2160
  OpenGL: renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
    v: 4.6.0 NVIDIA 510.85.02 direct render: Yes

Screenshots nvidia control panel

Today again I wasted another 3 or 4 hours downloading Fedora 36 KDE, burning image to usb
installing and updating, reboot then installing NVIDIA Auto Installer just to find out it does not work.

Tom

Thanks for show me an alternate way to install Nvidia drivers on Fedora KDE.

Unfortunately the script was successful but after the reboot my fedora 36 kde did not work.

I will not be using the NVIDIA Auto Installer, since it install 3GB which is larger then fedora 36 iso.

Plus it installs java17 little old and I don’t trust the t0xic0derrepo after the 3GB plus download.

Call me paranoid but you gave me another reason to like ubuntu, the “ubuntu-drivers” tool is support and trusted my Canonical.

Thanks

That should just work:

If it doesn’t, we need to know what’s happening:

1 Like

Your post #6 shows that the nvidia driver is installed and functional, with version 510.85 which has been replaced long ago on fedora. That does however have no bearing on fedora which is a different OS with a different kernel.

You have an nvidia Geforce RTX 3060 which was not supported properly until nvidia 515 and now is better supported with the current 520.64 driver.

Please first do the install & boot of fedora, then do the install of the nvidia drivers as noted above, then reboot. Send us the result of those commands requested above after the driver install and reboot but before you do a full update. Use the </> Preformatted text tags available on the toolbar above to format each post.
Please also post the output of dnf repolist. Note that I have edited post 6 and added those tags to format the display as seen on your screen.

After we have seen the status with the result of the install of nvidia drivers and the reboot then you may consider to finally upgrade fedora to the latest kernel and software sudo dnf upgrade --refresh.

Note that nothing you have posted from mint is usable here except the fact you have the Geforce RTX 3060 gpu. Very few of the details posted from ubuntu have bearing on fedora since the installer and the package managers are totally different and my instructions and your question are based on a fedora OS.

1 Like

Jeff

Fresh Install Only -- NO UPDATE or UPGRADE per instructions

-------~]$ uname -a
Linux fedora 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[------- ~]$ 
[-------~]$ lsmod | grep -iE 'nvidia|nouveau'
nouveau              2412544  4
video                  57344  1 nouveau
drm_ttm_helper         16384  1 nouveau
ttm                    81920  2 drm_ttm_helper,nouveau
mxm_wmi                16384  1 nouveau
wmi                    32768  3 wmi_bmof,mxm_wmi,nouveau
[------- ~]$ 
[------- ~]$ 
[------- ~]$ dnf list installed \*nvidia\*
Error: No matching Packages to list
[------- ~]$ 
[------- ~]$ dnf repolist
repo id                                                                                             repo name
fedora                                                                                              Fedora 36 - x86_64
fedora-cisco-openh264                                                                               Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                                                                      Fedora Modular 36 - x86_64
updates                                                                                             Fedora 36 - x86_64 - Updates
updates-modular                                                                                     Fedora Modular 36 - x86_64 - Updates

[------- ~]$ sudo dnf install akmod-nvidia
Last metadata expiration check: 0:07:15 ago on Wed 26 Oct 2022 11:37:50 AM PDT.
No match for argument: akmod-nvidia
Error: Unable to find a match: akmod-nvidia

Update the repolist for rpmfusion

[------- ~]$ dnf repolist
repo id                                                                                             repo name
fedora                                                                                              Fedora 36 - x86_64
fedora-cisco-openh264                                                                               Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                                                                      Fedora Modular 36 - x86_64
rpmfusion-free                                                                                      RPM Fusion for Fedora 36 - Free
rpmfusion-free-updates                                                                              RPM Fusion for Fedora 36 - Free - Updates
rpmfusion-nonfree                                                                                   RPM Fusion for Fedora 36 - Nonfree
rpmfusion-nonfree-updates                                                                           RPM Fusion for Fedora 36 - Nonfree - Updates
updates                                                                                             Fedora 36 - x86_64 - Updates
updates-modular                                                                                     Fedora Modular 36 - x86_64 - Updates
[------- ~]$ 


[------- ~]$ sudo dnf install akmod-nvidia
RPM Fusion for Fedora 36 - Free                                                                                                                                                            1.1 MB/s | 676 kB     00:00    
RPM Fusion for Fedora 36 - Free - Updates                                                                                                                                                  640 kB/s | 335 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree                                                                                                                                                         256 kB/s | 252 kB     00:00    
RPM Fusion for Fedora 36 - Nonfree - Updates                                                                                                                                               139 kB/s |  87 kB     00:00    
Dependencies resolved.

After Install of akmod-nvidia --- NO reboot has been performed

------- ~]$ uname -a
Linux fedora 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[------- ~]$
[------- ~]$ lsmod | grep -iE 'nvidia|nouveau'
nouveau              2412544  4
video                  57344  1 nouveau
drm_ttm_helper         16384  1 nouveau
ttm                    81920  2 drm_ttm_helper,nouveau
mxm_wmi                16384  1 nouveau
wmi                    32768  3 wmi_bmof,mxm_wmi,nouveau
[------- ~]$
[------- ~]$ dnf list installed \*nvidia\*
Installed Packages
akmod-nvidia.x86_64                                                                                         3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
kmod-nvidia-5.19.16-200.fc36.x86_64.x86_64                                                                  3:520.56.06-1.fc36                                                                   @@commandline
nvidia-settings.x86_64                                                                                      3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                                                                                  3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                                        3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                                          3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                                                                             3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                                                                            3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
[------- ~]$
[------- ~]$ dnf repolist
repo id                                                                                             repo name
fedora                                                                                              Fedora 36 - x86_64
fedora-cisco-openh264                                                                               Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                                                                      Fedora Modular 36 - x86_64
rpmfusion-free                                                                                      RPM Fusion for Fedora 36 - Free
rpmfusion-free-updates                                                                              RPM Fusion for Fedora 36 - Free - Updates
rpmfusion-nonfree                                                                                   RPM Fusion for Fedora 36 - Nonfree
rpmfusion-nonfree-updates                                                                           RPM Fusion for Fedora 36 - Nonfree - Updates
updates                                                                                             Fedora 36 - x86_64 - Updates
updates-modular                                                                                     Fedora Modular 36 - x86_64 - Updates

[-------~]$ sudo nvidia-smi
[sudo] password for -------:
sudo: nvidia-smi: command not found

Should I reboot now!!!

Waiting for the go head to reboot

Fresh Install Only -- NO UPDATE or UPGRADE per Jeff instructions

------- ~]$ uname -a
Linux fedora 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[------- ~]$
[------- ~]$ lsmod | grep -iE 'nvidia|nouveau'
nouveau              2412544  4
video                  57344  1 nouveau
drm_ttm_helper         16384  1 nouveau
ttm                    81920  2 drm_ttm_helper,nouveau
mxm_wmi                16384  1 nouveau
wmi                    32768  3 wmi_bmof,mxm_wmi,nouveau
[------- ~]$
[------- ~]$
[------- ~]$ dnf list installed \*nvidia\*
Error: No matching Packages to list
[------- ~]$
[------- ~]$ dnf repolist
repo id                                                                                             repo name
fedora                                                                                              Fedora 36 - x86_64
fedora-cisco-openh264                                                                               Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                                                                      Fedora Modular 36 - x86_64
updates                                                                                             Fedora 36 - x86_64 - Updates
updates-modular                                                                                     Fedora Modular 36 - x86_64 - Updates
[------- ~]$
[------- ~]$


[------- ~]$ sudo dnf install akmod-nvidia
Last metadata expiration check: 0:07:15 ago on Wed 26 Oct 2022 11:37:50 AM PDT.
No match for argument: akmod-nvidia
Error: Unable to find a match: akmod-nvidia

Update the repolist for rpmfusion

[------- ~]$ dnf repolist
repo id                                                                                             repo name
fedora                                                                                              Fedora 36 - x86_64
fedora-cisco-openh264                                                                               Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                                                                      Fedora Modular 36 - x86_64
rpmfusion-free                                                                                      RPM Fusion for Fedora 36 - Free
rpmfusion-free-updates                                                                              RPM Fusion for Fedora 36 - Free - Updates
rpmfusion-nonfree                                                                                   RPM Fusion for Fedora 36 - Nonfree
rpmfusion-nonfree-updates                                                                           RPM Fusion for Fedora 36 - Nonfree - Updates
updates                                                                                             Fedora 36 - x86_64 - Updates
updates-modular                                                                                     Fedora Modular 36 - x86_64 - Updates
[------- ~]$


[------- ~]$ sudo dnf install akmod-nvidia
RPM Fusion for Fedora 36 - Free                                                                                                                                                            1.1 MB/s | 676 kB     00:00
RPM Fusion for Fedora 36 - Free - Updates                                                                                                                                                  640 kB/s | 335 kB     00:00
RPM Fusion for Fedora 36 - Nonfree                                                                                                                                                         256 kB/s | 252 kB     00:00
RPM Fusion for Fedora 36 - Nonfree - Updates                                                                                                                                               139 kB/s |  87 kB     00:00
Dependencies resolved.

Complete!

After Install of akmod-nvidia --- NO reboot has been performed

------- ~]$ uname -a
Linux fedora 5.17.5-300.fc36.x86_64 #1 SMP PREEMPT Thu Apr 28 15:51:30 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[------- ~]$
[------- ~]$ lsmod | grep -iE 'nvidia|nouveau'
nouveau              2412544  4
video                  57344  1 nouveau
drm_ttm_helper         16384  1 nouveau
ttm                    81920  2 drm_ttm_helper,nouveau
mxm_wmi                16384  1 nouveau
wmi                    32768  3 wmi_bmof,mxm_wmi,nouveau
[------- ~]$
[------- ~]$ dnf list installed \*nvidia\*
Installed Packages
akmod-nvidia.x86_64                                                                                         3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
kmod-nvidia-5.19.16-200.fc36.x86_64.x86_64                                                                  3:520.56.06-1.fc36                                                                   @@commandline
nvidia-settings.x86_64                                                                                      3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                                                                                  3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                                                                        3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                                                                          3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                                                                             3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-power.x86_64                                                                            3:520.56.06-1.fc36                                                                   @rpmfusion-nonfree-updates
[------- ~]$
[------- ~]$ dnf repolist
repo id                                                                                             repo name
fedora                                                                                              Fedora 36 - x86_64
fedora-cisco-openh264                                                                               Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                                                                      Fedora Modular 36 - x86_64
rpmfusion-free                                                                                      RPM Fusion for Fedora 36 - Free
rpmfusion-free-updates                                                                              RPM Fusion for Fedora 36 - Free - Updates
rpmfusion-nonfree                                                                                   RPM Fusion for Fedora 36 - Nonfree
rpmfusion-nonfree-updates                                                                           RPM Fusion for Fedora 36 - Nonfree - Updates
updates                                                                                             Fedora 36 - x86_64 - Updates
updates-modular                                                                                     Fedora Modular 36 - x86_64 - Updates
[------- ~]$
[------- ~]$ sudo nvidia-smi
[sudo] password for -------:
sudo: nvidia-smi: command not found
[------- ~]$

No reboot has been performed.

Waiting on the go head to reboot!!!

I rebooted the PC

It failed again!!!

After the clean install and the reboot, tell us how it “failed again”
What are you seeing that leads to that conclusion? Details please.

I also see you did not install nvidia-gpu-firmware nor xorg-x11-drv-nvidia-cuda. Without the firmware the driver cannot function.

You should now do the update as well so all packages are properly updated.

Nouveau drivers work perfectly … otherwise strange fairy tales … simply go to NVIDIA site and download propriety driver being careful about the specific version of your hardware.

Please DO NOT do this. The RUN files provided officially on the site are distro-agnostic and are likely to leave behind a bunch of residual files when upgrades or uninstallations take place.

Please stick to the drivers made available on RPM Fusion as they are tailor-packaged for Fedora Linux and they can be installed, upgraded and removed seamlessly without any repercussions.

1 Like

The appropriately packaged drivers from rpmfusion have no issues, and get automatically updated with driver updates as well as kernel updates.

Installing from the nvidia .run file is a manual process and will break the driver with every kernel update until the user manually re-installs the driver

It is always recommended to use packages that are tailored specifically for fedora.

Nouveau drivers do not support hardware acceleration with nvidia GPUs, so no – they do not work perfectly. They are passable for some users.

You can install NVIDIA repository for CUDA and QODA programming tools, only for Fedora 35, having been kicked out with RHEL and Ubuntu as works but repository configuration disappears simply using it. Red Hat/CentOS/Fedora use SELinux to clean up/reverse engineer this and that, Ubuntu has misleading update information. I use Ubuntu 20.04 LTS with Quadro RTX 4000 and Intel display GPU, QODA seems fascinating …

Can install it of course, but it does not make things easy.
Use what you wish, but please do not encourage others to go down that rabbit trail that inevitably leads to irritation, frustration, and sometimes anger when the system just does not work as expected after an update.

Misinformation at best. SELinux has nothing to do with reverse engineering or clean up. It is a security framework.