NVIDIA Driver not loading after fed35-fed37 upgrade

Hi Jeff. I delayed this upgrade as long as I could hoping the posted advice would help.
After doing the distro upgrade I find that I boot into nouveau.
I attempted the fix in your previous reply to kittyra’s similar post.

"I would strongly suggest that for f37 you do the following.

sudo dnf remove *nvidia* --noautoremove --exclude=nvidia-gpu-firmware
sudo dnf install akmod-nvidia-470xx --disablerepo rpmfusion-nonfree-nvidia-driver --enablerepo rpmfusion-nonfree
Wait 5 minutes then run dnf list installed *nvidia*
If that last command shows kmod-nvidia as installed then reboot and the nvidia card should now properly load the nvidia driver."

Unfortunately this has failed and I still reboot into nouveau.
My secure boot is off as always.

dnf list installed *nvidia*
Error: No matching Packages to list
olin@lenolin:~$ dnf list installed *NVIDIA*
Installed Packages
akmod-nvidia.x86_64                        3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-5.19.11-100.fc35.x86_64.x86_64 3:515.76-1.fc35    @@commandline     
kmod-nvidia-5.19.14-100.fc35.x86_64.x86_64 3:520.56.06-1.fc35 @@commandline     
kmod-nvidia-6.0.12-100.fc35.x86_64.x86_64  3:520.56.06-1.fc35 @@commandline     
kmod-nvidia-6.0.5-100.fc35.x86_64.x86_64   3:520.56.06-1.fc35 @@commandline     
kmod-nvidia-6.0.7-100.fc35.x86_64.x86_64   3:520.56.06-1.fc35 @@commandline     
kmod-nvidia-6.0.8-100.fc35.x86_64.x86_64   3:520.56.06-1.fc35 @@commandline     
kmod-nvidia-6.0.9-100.fc35.x86_64.x86_64   3:520.56.06-1.fc35 @@commandline     
kmod-nvidia-6.1.10-200.fc37.x86_64.x86_64  3:525.85.05-1.fc37 @@commandline     
nvidia-gpu-firmware.noarch                 20230117-146.fc37  @updates          
nvidia-persistenced.x86_64                 3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                     3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
nvidia-xconfig.x86_64                      3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                 3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64            3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64       3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-devel.x86_64           3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64         3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64            3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64           3:525.85.05-1.fc37 @rpmfusion-nonfree-nvidia-driver

I have the cuda-fedora35 and the cuda-fedora34 repos enabled. The cuda-fedora37 does not install properly. Could my problems have something to do with the repos?
I appreciate all you help with past issues of this sort.

The nvidia drivers installed from cuda-fedora and those from rpmfusion seem to conflict.

Please try these simple stepa first and see what the results are.

sudo dnf remove kmod-nvidia-* and when that completes run sudo akmods and wait at least 5 minutes for that to complete properly.

After the second command completes run dnf list installed kmod-nvidia*. This should now show only the kmod-nvidia package for the matching running kernel.

If it does so then now reboot and tell us the final result.

Note that having the cuda-fedora repos enabled for older releases and having any packages from those repos installed may interfere with the nvidia packages from rpmfusion. You showed the cuda package from rpmfusion is installed so you should not need any thing from the cuda-fedora repos.

To verify if you do or do not have anything from the cuda-fedora repos please run dnf list installed | grep -i cuda-fedora and post the output here please.

Also, to see what is installed that is nvidia related the command should be
dnf list installed '*nvidia*'. The one you showed with ‘NVIDIA’ in all caps really is not indicative of a clean nvidia install.

1 Like

There probably was a package in the directory where that command was run that had nvidia in the name. Surround the *nvidia* with single quotes like '*nvidia*'to avoid shell globbing from interfering.

Thanks Jeff you nailed it. There were 6 fedora35 kmods still running. Your procedure
sudo dnf remove kmod-nvidia-* and sudo akmods fixed the nouveau boot problem.

I understood that I required the cuda-fedora packages to build CERN’s root application to utilized the gpu . Not certain that it is still needed. However it is clearly messed up on my machine.
There were some problems with dependencies upgrading with the cuda-fedora37 repo enabled.
Probably I should remove most leaving only a consistent cuda version.

Really appreciate your expertise!

dnf list installed | grep -i cuda-fedora
cat cuda-fedoralist.txt
cuda.x86_64                                       11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-11-5.x86_64                                  11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-11-8.x86_64                                  11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-cccl-11-5.x86_64                             11.5.62-1                              @cuda-fedora34-x86_64                                     
cuda-cccl-11-8.x86_64                             11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-command-line-tools-11-5.x86_64               11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-command-line-tools-11-8.x86_64               11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-compiler-11-5.x86_64                         11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-compiler-11-8.x86_64                         11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-cudart-11-4.x86_64                           11.4.148-1                             @cuda-fedora34-x86_64                                     
cuda-cudart-11-5.x86_64                           11.5.117-1                             @cuda-fedora34-x86_64                                     
cuda-cudart-11-8.x86_64                           11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-cudart-devel-11-5.x86_64                     11.5.117-1                             @cuda-fedora34-x86_64                                     
cuda-cudart-devel-11-8.x86_64                     11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-cuobjdump-11-5.x86_64                        11.5.119-1                             @cuda-fedora34-x86_64                                     
cuda-cuobjdump-11-8.x86_64                        11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-cupti-11-5.x86_64                            11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-cupti-11-8.x86_64                            11.8.87-1                              @cuda-fedora35-x86_64                                     
cuda-cuxxfilt-11-5.x86_64                         11.5.119-1                             @cuda-fedora34-x86_64                                     
cuda-cuxxfilt-11-8.x86_64                         11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-demo-suite-11-5.x86_64                       11.5.50-1                              @cuda-fedora34-x86_64                                     
cuda-demo-suite-11-8.x86_64                       11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-documentation-11-5.x86_64                    11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-documentation-11-8.x86_64                    11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-driver-devel-11-4.x86_64                     11.4.148-1                             @cuda-fedora34-x86_64                                     
cuda-driver-devel-11-5.x86_64                     11.5.117-1                             @cuda-fedora34-x86_64                                     
cuda-driver-devel-11-8.x86_64                     11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-gdb-11-5.x86_64                              11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-gdb-11-8.x86_64                              11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-libraries-11-5.x86_64                        11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-libraries-11-8.x86_64                        11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-libraries-devel-11-5.x86_64                  11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-libraries-devel-11-8.x86_64                  11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-memcheck-11-5.x86_64                         11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-memcheck-11-8.x86_64                         11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-nsight-11-5.x86_64                           11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-nsight-11-8.x86_64                           11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-nsight-compute-11-5.x86_64                   11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-nsight-compute-11-8.x86_64                   11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-nsight-systems-11-5.x86_64                   11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-nsight-systems-11-8.x86_64                   11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-nvcc-11-5.x86_64                             11.5.119-1                             @cuda-fedora34-x86_64                                     
cuda-nvcc-11-8.x86_64                             11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-nvdisasm-11-5.x86_64                         11.5.119-1                             @cuda-fedora34-x86_64                                     
cuda-nvdisasm-11-8.x86_64                         11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-nvml-devel-11-5.x86_64                       11.5.50-1                              @cuda-fedora34-x86_64                                     
cuda-nvml-devel-11-8.x86_64                       11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-nvprof-11-5.x86_64                           11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-nvprof-11-8.x86_64                           11.8.87-1                              @cuda-fedora35-x86_64                                     
cuda-nvprune-11-5.x86_64                          11.5.119-1                             @cuda-fedora34-x86_64                                     
cuda-nvprune-11-8.x86_64                          11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-nvrtc-11-5.x86_64                            11.5.119-1                             @cuda-fedora34-x86_64                                     
cuda-nvrtc-11-8.x86_64                            11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-nvrtc-devel-11-5.x86_64                      11.5.119-1                             @cuda-fedora34-x86_64                                     
cuda-nvrtc-devel-11-8.x86_64                      11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-nvtx-11-5.x86_64                             11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-nvtx-11-8.x86_64                             11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-nvvp-11-5.x86_64                             11.5.126-1                             @cuda-fedora34-x86_64                                     
cuda-nvvp-11-8.x86_64                             11.8.87-1                              @cuda-fedora35-x86_64                                     
cuda-profiler-api-11-8.x86_64                     11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-runtime-11-5.x86_64                          11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-runtime-11-8.x86_64                          11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-samples-11-5.x86_64                          11.5.56-1                              @cuda-fedora34-x86_64                                     
cuda-sanitizer-11-5.x86_64                        11.5.114-1                             @cuda-fedora34-x86_64                                     
cuda-sanitizer-11-8.x86_64                        11.8.86-1                              @cuda-fedora35-x86_64                                     
cuda-toolkit-11-4-config-common.noarch            11.4.148-1                             @cuda-fedora34-x86_64                                     
cuda-toolkit-11-5.x86_64                          11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-toolkit-11-5-config-common.noarch            11.5.117-1                             @cuda-fedora34-x86_64                                     
cuda-toolkit-11-8.x86_64                          11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-toolkit-11-8-config-common.noarch            11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-toolkit-11-config-common.noarch              11.8.89-1                              @cuda-fedora35-x86_64                                     
cuda-toolkit-config-common.noarch                 12.0.146-1                             @cuda-fedora37-x86_64                                     
cuda-tools-11-5.x86_64                            11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-tools-11-8.x86_64                            11.8.0-1                               @cuda-fedora35-x86_64                                     
cuda-visual-tools-11-5.x86_64                     11.5.2-1                               @cuda-fedora34-x86_64                                     
cuda-visual-tools-11-8.x86_64                     11.8.0-1                               @cuda-fedora35-x86_64                                     
gds-tools-11-5.x86_64                             1.1.1.25-1                             @cuda-fedora34-x86_64                                     
gds-tools-11-8.x86_64                             1.4.0.31-1                             @cuda-fedora35-x86_64                                     
libcublas-11-5.x86_64                             11.7.4.6-1                             @cuda-fedora34-x86_64                                     
libcublas-11-8.x86_64                             11.11.3.6-1                            @cuda-fedora35-x86_64                                     
libcublas-devel-11-5.x86_64                       11.7.4.6-1                             @cuda-fedora34-x86_64                                     
libcublas-devel-11-8.x86_64                       11.11.3.6-1                            @cuda-fedora35-x86_64                                     
libcufft-11-5.x86_64                              10.6.0.107-1                           @cuda-fedora34-x86_64                                     
libcufft-11-8.x86_64                              10.9.0.58-1                            @cuda-fedora35-x86_64                                     
libcufft-devel-11-5.x86_64                        10.6.0.107-1                           @cuda-fedora34-x86_64                                     
libcufft-devel-11-8.x86_64                        10.9.0.58-1                            @cuda-fedora35-x86_64                                     
libcufile-11-5.x86_64                             1.1.1.25-1                             @cuda-fedora34-x86_64                                     
libcufile-11-8.x86_64                             1.4.0.31-1                             @cuda-fedora35-x86_64                                     
libcufile-devel-11-5.x86_64                       1.1.1.25-1                             @cuda-fedora34-x86_64                                     
libcufile-devel-11-8.x86_64                       1.4.0.31-1                             @cuda-fedora35-x86_64                                     
libcurand-11-5.x86_64                             10.2.7.107-1                           @cuda-fedora34-x86_64                                     
libcurand-11-8.x86_64                             10.3.0.86-1                            @cuda-fedora35-x86_64                                     
libcurand-devel-11-5.x86_64                       10.2.7.107-1                           @cuda-fedora34-x86_64                                     
libcurand-devel-11-8.x86_64                       10.3.0.86-1                            @cuda-fedora35-x86_64                                     
libcusolver-11-5.x86_64                           11.3.2.107-1                           @cuda-fedora34-x86_64                                     
libcusolver-11-8.x86_64                           11.4.1.48-1                            @cuda-fedora35-x86_64                                     
libcusolver-devel-11-5.x86_64                     11.3.2.107-1                           @cuda-fedora34-x86_64                                     
libcusolver-devel-11-8.x86_64                     11.4.1.48-1                            @cuda-fedora35-x86_64                                     
libcusparse-11-5.x86_64                           11.7.0.107-1                           @cuda-fedora34-x86_64                                     
libcusparse-11-8.x86_64                           11.7.5.86-1                            @cuda-fedora35-x86_64                                     
libcusparse-devel-11-5.x86_64                     11.7.0.107-1                           @cuda-fedora34-x86_64                                     
libcusparse-devel-11-8.x86_64                     11.7.5.86-1                            @cuda-fedora35-x86_64                                     
libnpp-11-5.x86_64                                11.5.1.107-1                           @cuda-fedora34-x86_64                                     
libnpp-11-8.x86_64                                11.8.0.86-1                            @cuda-fedora35-x86_64                                     
libnpp-devel-11-5.x86_64                          11.5.1.107-1                           @cuda-fedora34-x86_64                                     
libnpp-devel-11-8.x86_64                          11.8.0.86-1                            @cuda-fedora35-x86_64                                     
libnvjpeg-11-5.x86_64                             11.5.4.107-1                           @cuda-fedora34-x86_64                                     
libnvjpeg-11-8.x86_64                             11.9.0.86-1                            @cuda-fedora35-x86_64                                     
libnvjpeg-devel-11-5.x86_64                       11.5.4.107-1                           @cuda-fedora34-x86_64                                     
libnvjpeg-devel-11-8.x86_64                       11.9.0.86-1                            @cuda-fedora35-x86_64                                     
nsight-compute-2021.2.0.x86_64                    2021.2.0.15-1                          @cuda-fedora33-x86_64                                     
nsight-compute-2021.3.1.x86_64                    2021.3.1.4-1                           @cuda-fedora34-x86_64                                     
nsight-compute-2022.3.0.x86_64                    2022.3.0.22-1                          @cuda-fedora35-x86_64                                     
nsight-systems-2021.2.4.x86_64                    2021.2.4.12_a25c8fd-0                  @cuda-fedora33-x86_64                                     
nsight-systems-2021.3.3.x86_64                    2021.3.3.2_b99c4d6-0                   @cuda-fedora34-x86_64                                     
nsight-systems-2022.4.2.x86_64                    2022.4.2.50_32196742v0-0               @cuda-fedora37-x86_64

You have a lot of packages installed from cuda-fedora34 and cuda-fedora35. It seems possible that there may be problems related to the age of those packages when running fedora 37. Note that most things cuda related use the GPU for computing and since the cuda packages have not been updated while the gpu drivers have been, there are potential problems.

I am glad that at least the update of the drivers to the rpmfusion version fixed the GPU problem for you.