NVIDIA driver fails to install in Fedora 34

I am trying to install NVIDIA drivers in Fedora 34 since I am having nouveau crashes giving global system freezes (!!!). I am following the instructions here:

https://rpmfusion.org/Howto/NVIDIA

The output of /sbin/lspci | grep -e 'VGA\|3D' is

   01:00.0 VGA compatible controller: NVIDIA Corporation GK106 [GeForce GTX 645 OEM] (rev a1)

So I did sudo dnf install akmod-nvidia and then sudo dnf install xorg-x11-drv-nvidia-cuda. 30 packages installed without any problem.

Yet, after 10 minutes I tried modinfo -F version nvidia and got the devil

    modinfo: ERROR: Module nvidia not found.

I tried rebooting, and got tons of crashes, so I reverted to the nouveau driver.

Yes, SECURE BOOT is disabled, and dnf list installed '*nvidia*' gives me nothing before the above procedure.

It looks like you have an older graphic card.You need to install the 390 drivers on rpmfusion.

Mine is a GeForce GTX 645 . According to the rpmfusion site, the 390 drivers are for GeForce 400/500 only.

No?

You can check out Nvidia’s site and see but I’m pretty sure you need the 390 drivers and also it wouldn’t hurt to install or make sure you have kernel-devel installed as well.

kernel-devel is installed together with the akmod.

According to NVIDIA, this is the driver for the 645:

https://us.download.nvidia.com/XFree86/Linux-x86_64/470.63.01/NVIDIA-Linux-x86_64-470.63.01.run

I guess this is the last one.

You might try and read the post NVIDIA Auto Installer for Fedora now works with Fedora 34 and see if you can find some help there.I haven’t used it I’ve always just used rpmfusion the way you tried and didn’t have any issues.

@straycat, the linked installer does the same thing - albeit in a streamlined manner and with sane defaults so it becomes accessible for automated and convenient installations.

1 Like

So how to see where the problem is…?

I always used a high definition text console instead of the graphical boot. After installing akmod-nvidia and rebooting, the console was VGA. Waited 10 seconds in the login prompt, and then saw a message about akmods logout, the console switched to high definition, showing the following:

Sep 18 16:02:31 Orion kernel: Console: switching to colour dummy device 80x25
Sep 18 16:02:31 Orion kernel: nouveau 0000:01:00.0: NVIDIA GK106 (0e6040a1)
[   39.836959] nouveau 0000:01:00.0: bios: version 80.06.41.00.0a
[   39.837481] nouveau 0000:01:00.0: fb: 1024 MiB GDDR5
Sep 18 16:02:31 Orion kernel: nouveau 0000:01:00.0: bios: version 80.06.41.00.0a
Sep 18 16:02:31 Orion kernel: nouveau 0000:01:00.0: fb: 1024 MiB GDDR5
[   40.507952] nouveau 0000:01:00.0: DRM: VRAM: 1024 MiB
[   40.507958] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[   40.507962] nouveau 0000:01:00.0: DRM: TMDS table version 2.0
[   40.507963] nouveau 0000:01:00.0: DRM: DCB version 4.0
[   40.507965] nouveau 0000:01:00.0: DRM: DCB outp 00: 01000f02 00020030
[   40.507967] nouveau 0000:01:00.0: DRM: DCB outp 01: 02000f00 00000000
[   40.507969] nouveau 0000:01:00.0: DRM: DCB outp 02: 08011f82 00020010
[   40.507971] nouveau 0000:01:00.0: DRM: DCB outp 03: 02822fa6 0f420010
[   40.507972] nouveau 0000:01:00.0: DRM: DCB outp 04: 02022f62 00020010
[   40.507974] nouveau 0000:01:00.0: DRM: DCB conn 00: 00001030
[   40.507975] nouveau 0000:01:00.0: DRM: DCB conn 01: 00010161
[   40.507977] nouveau 0000:01:00.0: DRM: DCB conn 02: 00002246
[   40.509640] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
[   40.510839] snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_co
mponent_bind_ops [nouveau])
[   40.632735] nouveau 0000:01:00.0: DRM: allocated 1680x1050 fb: 0xa0000, bo 00
00000064bf02c1
[   40.632869] fbcon: nouveaudrmfb (fb0) is primary device
[   40.757707] Console: switching to colour frame buffer device 210x65
[   40.848008] nouveau 0000:01:00.0: [drm] fb0: nouveaudrmfb frame buffer device
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: VRAM: 1024 MiB
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: TMDS table version 2.0
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB version 4.0
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB outp 00: 01000f02 00020030
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB outp 01: 02000f00 00000000
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB outp 02: 08011f82 00020010
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB outp 03: 02822fa6 0f420010
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB outp 04: 02022f62 00020010
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB conn 00: 00001030
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB conn 01: 00010161
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: DCB conn 02: 00002246
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
Sep 18 16:02:32 Orion kernel: snd_hda_intel 0000:01:00.1: bound 0000:01:00.0 (ops nv50_audio_component_bind_ops [nouveau])
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: DRM: allocated 1680x1050 fb: 0xa0000, bo 0000000064bf02c1
Sep 18 16:02:32 Orion kernel: fbcon: nouveaudrmfb (fb0) is primary device
Sep 18 16:02:32 Orion kernel: Console: switching to colour frame buffer device 210x65
Sep 18 16:02:32 Orion kernel: nouveau 0000:01:00.0: [drm] fb0: nouveaudrmfb frame buffer device
[   40.862937] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0
Sep 18 16:02:32 Orion kernel: [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0

So nouveau was still there. So, I did a sudo dnf remove xorg-x11-drv-nouveau and rebooted.

Yet, after the reboot… same thing! Nouveau is still there, and modinfo -F version nvidia still gives me that there is no module nvidia.

In particular, now I am running KDE “normally”, without xorg-x11-drv-nouveau or any other RPM package matching nouveau, yet with nouveau working.

This is the output of lsmod | grep -i nouveau:

nouveau              2400256  12
mxm_wmi                16384  1 nouveau
i2c_algo_bit           16384  1 nouveau
drm_ttm_helper         16384  1 nouveau
ttm                    77824  2 drm_ttm_helper,nouveau
drm_kms_helper        290816  1 nouveau
wmi                    36864  4 dell_smbios,dell_wmi_descriptor,mxm_wmi,nouveau
drm                   630784  10 drm_kms_helper,drm_ttm_helper,ttm,nouveau
video                  57344  1 nouveau

This is getting stranger and stranger…

A lot of hype and bloat about NVidia … Nouveau drivers work perfectly with support of NVidia, not all features but … Cuda is a C++ extension for high level graphic cards for high level graphic rendering that can be used in AI/ML context but today favored by Python libraries/frameworks … unless using a vintage device, just stay with default configuration and explore after, if necessary.

Certainly not my case.

As I wrote above, Nouveau drivers are crashing badly my Fedora. See here:
https://unix.stackexchange.com/questions/668341/android-studio-freezing-fedora-nouveau-and-kernel-crash?noredirect=1#comment1261550_668341

A device is a combination of CPU, GPU, memory being hardware linked by drivers to OS allowing app to consume ressources … explore further, Fedora is just OS in the chain, Nouveau opensource drivers backed by NVidia are sufficient for ‘basic’ use but don’t support everything that Ampere hardware architecture has to offer …

In general it is the software the first thing to check for crashes, not the hardware.

I am a long time (i.e., old…) Fedora user (since Red Hat), and I have never ever changed the default driver in any of my computers. In particular, Nouveau. Now the kernel is reporting that nouveau is crashing. So I am trying to check if it is Nouveau’s fault by changing drivers. If crashes persist after switching to other drivers, then I can be (almost) sure it is not the driver’s fault.

Since you are having issues with the nouveau driver then you should consider trying what has already been suggested. Use the auto installer mentioned above to install the nvidia drivers. After the install is complete and you have allowed time for the kernel module to be built and installed then reboot to allow the nvidia driver to load.

Note that you should also do a full “dnf upgrade” to get the latest kernel so when you reboot you will have the newer kernel (currently 5.13.16 for fedora 34) and the matching nvidia drivers.

I would guess that would fix the issue with the nouveau driver.

1 Like

Software … true but modern devices have DevOps mindset deeply encroached for good reasons. EFI framework was launched by Intel in 1998, BIOS is in flash memory, MAX 10 chips are everywhere by Altera/Intel or similar FPGA with Xilinx or others. Firmware updates are launched in the background to fix this and that … firmware is software having deep effect on hardware, no blame, no shame to all developers => if something crashes suddenly keep in mind system thinking exploring both sides as hardware is no longer static … hello to tomorrow with DPC++ and SYCL.

I did not follow the advice about the autoinstaler because of @t0xic0der answer to @straycat 's post: the linked installer does the same thing .

But you were right: using the auto installer indeed solved the issue. It installed the same 27 packages that the dnf install akmod-nvidia did, except it used other repo: while dnf install akmod-nvidia used 187MB, the auto-installer used +800. And a dnf repolist shows one more repo:

  RPM Fusion for Fedora 34 - Nonfree - NVIDIA Driver

So I guess this repo has different drivers than that of RPM Fusion for Fedora 34 - Nonfree . I was unable to find this mentioned in the rpmfusion page.

This does not come as a surprise. Rpmfusion repos usually have this kind of problems. You can check this now, if you try to dnf update libaom : ffmpeg, avidemux, mencoder and mplayer from rpmfusion would give conflicts.

Anyway, Nvidia driver up and running, nouveau disabled.
For further reference, this is what I did:

dnf install dnf-plugins-core
dnf copr enable t0xic0der/nvidia-auto-installer-for-fedora
dnf install nvautoinstall
nvautoinstall --rpmadd        // Without this installation failed!
nvautoinstall --driver

Thanks!

1 Like

It is not that the rpmfusion repo has an issue. It is that only installing the akmod-nvidia package leaves out some dependencies that are needed for some hardware and the nvautoinstall process pulls in all the needed packages.

I usually do the install manually from rpmfusion when I am doing a clean install of fedora and my command pulls in more than simply installing akmod-nvidia requires. As you can see the nvautoinstall similarly pulls in additional packages.

1 Like

Of course I don’t know what the auto-installer what really did in the background, but, in my case, both methods installed the exact same 27 packages, but got them from different repos. While dnf install akmod-nivida installed versions 3:470.63.01-1 of the driver from rpmfusion-nonfree (and kernel-devel 5.13.16), the auto-installed installed the older version 465.24.02-4 from rpmfusion-nonfree-nvidia-driver (and kernel-devel 5.13.15).

Of course I tried the first command without the repo rpmfusion-nonfree-nvidia-driver, from which I got the newer 470 version.

I guess the problem was that dnf installed kernel-devel 5.13.15, while the auto-installer got the kernel-devel 5.13.16, which is the kernel version I’m using. It never occurred to me that dnf was installing a kernel-devel from other kernel! Maybe if I’d have installed first kernel-devel 5.13.16 by hand everything would have worked…

Look at the packages got from both commands:

$ dnf install akmod-nivida

 Package                         Arch       Version                                     Repository                           Size
==================================================================================================================================
Installing:
 akmod-nvidia                    x86_64     3:470.63.01-1.fc34                          rpmfusion-nonfree-nvidia-driver      27 k
Installing dependencies:
 akmods                          noarch     0.5.6-27.fc34                               fedora                               23 k
 bison                           x86_64     3.7.4-2.fc34                                fedora                              925 k
 egl-wayland                     x86_64     1.1.7-1.fc34                                updates                              32 k
 elfutils-libelf-devel           x86_64     0.185-2.fc34                                updates                              27 k
 fakeroot                        x86_64     1.25.3-2.fc34                               fedora                               89 k
 fakeroot-libs                   x86_64     1.25.3-2.fc34                               fedora                               40 k
 flex                            x86_64     2.6.4-7.fc34                                fedora                              313 k
 kernel-devel                    x86_64     5.13.16-200.fc34                            updates                              15 M
 kmodtool                        noarch     1-42.fc34                                   fedora                               13 k
 koji                            noarch     1.26.0-1.fc34                               updates                             191 k
 libglvnd-gles                   x86_64     1:1.3.3-1.fc34                              updates                              33 k
 nvidia-settings                 x86_64     3:470.63.01-1.fc34                          rpmfusion-nonfree-nvidia-driver     1.7 M
 openssl-devel                   x86_64     1:1.1.1l-1.fc34                             updates                             2.2 M
 python3-cached_property         noarch     1.5.2-2.fc34                                fedora                               21 k
 python3-gssapi                  x86_64     1.6.9-3.fc34                                fedora                              462 k
 python3-koji                    noarch     1.26.0-1.fc34                               updates                             302 k
 python3-progressbar2            noarch     3.52.1-2.fc34                               fedora                               55 k
 python3-pygit2                  x86_64     1.5.0-1.fc34                                fedora                              204 k
 python3-requests-gssapi         noarch     1.2.3-1.fc34                                fedora                               27 k
 python3-utils                   noarch     2.4.0-3.fc34                                fedora                              194 k
 rpmdevtools                     noarch     9.5-1.fc34                                  updates                              91 k
 xemacs-filesystem               noarch     21.5.34-39.20200331hge2ac728aa576.fc34      fedora                              9.5 k
 xorg-x11-drv-nvidia             x86_64     3:470.63.01-3.fc34                          rpmfusion-nonfree-nvidia-driver      19 M
 xorg-x11-drv-nvidia-kmodsrc     x86_64     3:470.63.01-3.fc34                          rpmfusion-nonfree-nvidia-driver      24 M
 xorg-x11-drv-nvidia-libs        x86_64     3:470.63.01-3.fc34                          rpmfusion-nonfree-nvidia-driver     143 M
Installing weak dependencies:
 python3-rpmautospec             noarch     0.2.5-1.fc34                                updates                              38 k

Transaction Summary
==================================================================================================================================
Install  27 Packages....

while the auto-installer gave:

 Package                            Architecture  Version                                          Repository                Size
==================================================================================================================================
Installing:
 akmod-nvidia                       x86_64        3:465.24.02-1.fc34                               rpmfusion-nonfree         27 k
Installing dependencies:
 akmods                             noarch        0.5.6-27.fc34                                    fedora                    23 k
 bison                              x86_64        3.7.4-2.fc34                                     fedora                   925 k
 egl-wayland                        x86_64        1.1.7-1.fc34                                     updates                   32 k
 elfutils-libelf-devel              x86_64        0.185-2.fc34                                     updates                   27 k
 fakeroot                           x86_64        1.25.3-2.fc34                                    fedora                    89 k
 fakeroot-libs                      x86_64        1.25.3-2.fc34                                    fedora                    40 k
 flex                               x86_64        2.6.4-7.fc34                                     fedora                   313 k
 kernel-devel                       x86_64        5.13.15-200.fc34                                 updates                   15 M
 kmodtool                           noarch        1-42.fc34                                        fedora                    13 k
 koji                               noarch        1.26.0-1.fc34                                    updates                  191 k
 libglvnd-gles                      x86_64        1:1.3.3-1.fc34                                   updates                   33 k
 nvidia-settings                    x86_64        3:465.24.02-1.fc34                               rpmfusion-nonfree        1.7 M
 openssl-devel                      x86_64        1:1.1.1l-1.fc34                                  updates                  2.2 M
 python3-cached_property            noarch        1.5.2-2.fc34                                     fedora                    21 k
 python3-gssapi                     x86_64        1.6.9-3.fc34                                     fedora                   462 k
 python3-koji                       noarch        1.26.0-1.fc34                                    updates                  302 k
 python3-progressbar2               noarch        3.52.1-2.fc34                                    fedora                    55 k
 python3-pygit2                     x86_64        1.5.0-1.fc34                                     fedora                   204 k
 python3-requests-gssapi            noarch        1.2.3-1.fc34                                     fedora                    27 k
 python3-utils                      noarch        2.4.0-3.fc34                                     fedora                   194 k
 rpmdevtools                        noarch        9.5-1.fc34                                       updates                   91 k
 xemacs-filesystem                  noarch        21.5.34-39.20200331hge2ac728aa576.fc34           fedora                   9.5 k
 xorg-x11-drv-nvidia                x86_64        3:465.24.02-4.fc34                               rpmfusion-nonfree         20 M
 xorg-x11-drv-nvidia-kmodsrc        x86_64        3:465.24.02-4.fc34                               rpmfusion-nonfree         24 M
 xorg-x11-drv-nvidia-libs           x86_64        3:465.24.02-4.fc34                               rpmfusion-nonfree        117 M
Installing weak dependencies:
 python3-rpmautospec                noarch        0.2.5-1.fc34                                     updates                   38 k

Transaction Summary
==================================================================================================================================
Install  27 Packages

BTW, I worked today several hours without a crash. :slight_smile:

I have seen several cases where the rpmfusion-nonfree-nvidia-driver packages had problems and the ones from rpmfusion-nonfree did not.

I don’t know the difference except the nvidia-driver repo can be installed directly from gnome software on fedora and the other rpmfusion repos cannot.

Cannot explain why you would have gotten the 465 drivers instead of the 470 drivers since the 470 drivers are current on rpmfusion and have been for some time.
I note a difference in the kernel-devel package as well.

For me the 5.13.15 kernel was installed on Wed the 15th and the 5.13.16. kernel was installed on Fri the 17th with doing daily automated updates.

I am not sure what you mean. In this address

http://download1.rpmfusion.org/nonfree/fedora/releases/34/Everything/x86_64/os/Packages/a/

the only akmod-nvidia are the 465 and 390. The 470 is only here:

http://download1.rpmfusion.org/nonfree/fedora/nvidia-driver/34/x86_64/a/

Therefore standard rpmfusion repo has old and different drivers. I am not surprised, at all.