[Common Issue Talk] Upgrading to Fedora 44 breaks Nvidia driver for older GPUs (GeForce 10xx and older)

This works

leigh@leigh-pc:~$ sudo dnf swap *-nvidia-* *-nvidia-580xx --allowerasing
Updating and loading repositories:
Repositories loaded.
Package                                                                Arch           Version                                                                 Repository                                       Size
Removing:
 kmod-nvidia-7.0.10-201.fc44.x86_64                                    x86_64         3:610.43.02-1.fc44                                                      @commandline                                 11.8 MiB
 kmod-nvidia-7.0.8-200.fc44.x86_64                                     x86_64         3:610.43.02-1.fc44                                                      @commandline                                 11.8 MiB
 kmod-nvidia-7.0.9-205.fc44.x86_64                                     x86_64         3:610.43.02-1.fc44                                                      @commandline                                 11.8 MiB
 libva-nvidia-driver                                                   x86_64         0:0.0.17-1.fc44                                                         updates                                     112.5 KiB
 xorg-x11-drv-nvidia-cuda                                              x86_64         3:610.43.02-1.fc45                                                      @commandline                                  6.4 MiB
 xorg-x11-drv-nvidia-cuda-libs                                         i686           3:610.43.02-1.fc45                                                      @commandline                                353.1 MiB
 xorg-x11-drv-nvidia-cuda-libs                                         x86_64         3:610.43.02-1.fc45                                                      @commandline                                481.1 MiB
 xorg-x11-drv-nvidia-kmodsrc                                           x86_64         3:610.43.02-1.fc45                                                      @commandline                                 96.5 MiB
 xorg-x11-drv-nvidia-libs                                              i686           3:610.43.02-1.fc45                                                      @commandline                                216.4 MiB
 xorg-x11-drv-nvidia-libs                                              x86_64         3:610.43.02-1.fc45                                                      @commandline                                320.5 MiB
 xorg-x11-drv-nvidia-power                                             x86_64         3:610.43.02-1.fc45                                                      @commandline                                  4.4 MiB
 xorg-x11-drv-nvidia-xorg-libs                                         x86_64         3:610.43.02-1.fc45                                                      @commandline                                  8.9 MiB
Removing dependent packages:
 akmod-nvidia                                                          x86_64         3:610.43.02-1.fc45                                                      @commandline                                 99.3 KiB
 xorg-x11-drv-nvidia                                                   x86_64         3:610.43.02-1.fc45                                                      @commandline                                165.1 MiB
Removing unused dependencies:
 egl-wayland2                                                          i686           0:1.0.1-1.fc44                                                          updates-testing                             101.3 KiB
 nvidia-persistenced                                                   x86_64         3:610.43.02-1.fc45                                                      @commandline                                 54.2 KiB
 nvidia-settings                                                       x86_64         3:610.43.02-1.fc45                                                      @commandline                                  4.4 MiB
Installing:
 akmod-nvidia-580xx                                                    x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                    99.0 KiB
 kmod-nvidia-580xx                                                     x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                     0.0   B
 xorg-x11-drv-nvidia-580xx                                             x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                   169.4 MiB
Installing dependencies:
 nvidia-settings-580xx                                                 x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                     4.4 MiB
 xorg-x11-drv-nvidia-580xx-cuda-libs                                   x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                   345.6 MiB
 xorg-x11-drv-nvidia-580xx-kmodsrc                                     x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                    86.8 MiB
 xorg-x11-drv-nvidia-580xx-libs                                        i686           3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                   175.3 MiB
 xorg-x11-drv-nvidia-580xx-libs                                        x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                   443.3 MiB
 xorg-x11-drv-nvidia-580xx-xorg-libs                                   x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                    19.4 MiB
Installing weak dependencies:
 xorg-x11-drv-nvidia-580xx-power                                       x86_64         3:580.159.03-1.fc44                                                     rpmfusion-nonfree-updates                     2.3 MiB

Transaction Summary:
 Installing:        10 packages
 Removing:          17 packages

Total size of inbound packages is 431 MiB. Need to download 12 KiB.
After this operation, 446 MiB will be freed (install 1 GiB, remove 2 GiB).
Is this ok [y/N]: y
[ 1/10] xorg-x11-drv-nvidia-580xx-3:580.159.03-1.fc44.x86_64                                                                                                               100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 2/10] nvidia-settings-580xx-3:580.159.03-1.fc44.x86_64                                                                                                                   100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 3/10] xorg-x11-drv-nvidia-580xx-libs-3:580.159.03-1.fc44.x86_64                                                                                                          100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 4/10] akmod-nvidia-580xx-3:580.159.03-1.fc44.x86_64                                                                                                                      100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 5/10] xorg-x11-drv-nvidia-580xx-kmodsrc-3:580.159.03-1.fc44.x86_64                                                                                                       100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 6/10] xorg-x11-drv-nvidia-580xx-libs-3:580.159.03-1.fc44.i686                                                                                                            100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 7/10] xorg-x11-drv-nvidia-580xx-xorg-libs-3:580.159.03-1.fc44.x86_64                                                                                                     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 8/10] xorg-x11-drv-nvidia-580xx-cuda-libs-3:580.159.03-1.fc44.x86_64                                                                                                     100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[ 9/10] xorg-x11-drv-nvidia-580xx-power-3:580.159.03-1.fc44.x86_64                                                                                                         100% |   0.0   B/s |   0.0   B |  00m00s
>>> Already downloaded
[10/10] kmod-nvidia-580xx-3:580.159.03-1.fc44.x86_64                                                                                                                       100% |  96.1 KiB/s |  12.1 KiB |  00m00s
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[10/10] Total                                                                                                                                                              100% |  18.5 KiB/s |  12.1 KiB |  00m01s
Running transaction
[ 1/29] Verify package files                                                                                                                                               100% |   8.0   B/s |  10.0   B |  00m01s
[ 2/29] Prepare transaction                                                                                                                                                100% |  56.0   B/s |  27.0   B |  00m00s
[ 3/29] Installing xorg-x11-drv-nvidia-580xx-cuda-libs-3:580.159.03-1.fc44.x86_64                                                                                          100% | 626.2 MiB/s | 345.6 MiB |  00m01s
[ 4/29] Installing xorg-x11-drv-nvidia-580xx-kmodsrc-3:580.159.03-1.fc44.x86_64                                                                                            100% | 904.5 MiB/s |  86.8 MiB |  00m00s
[ 5/29] Installing xorg-x11-drv-nvidia-580xx-libs-3:580.159.03-1.fc44.i686                                                                                                 100% | 580.3 MiB/s | 175.3 MiB |  00m00s
[ 6/29] Installing xorg-x11-drv-nvidia-580xx-libs-3:580.159.03-1.fc44.x86_64                                                                                               100% | 620.0 MiB/s | 443.3 MiB |  00m01s
[ 7/29] Installing xorg-x11-drv-nvidia-580xx-3:580.159.03-1.fc44.x86_64                                                                                                    100% | 582.3 MiB/s | 169.4 MiB |  00m00s
[ 8/29] Installing nvidia-settings-580xx-3:580.159.03-1.fc44.x86_64                                                                                                        100% | 158.7 MiB/s |   4.4 MiB |  00m00s
[ 9/29] Installing akmod-nvidia-580xx-3:580.159.03-1.fc44.x86_64                                                                                                           100% |   4.6 MiB/s |  99.4 KiB |  00m00s
[10/29] Installing kmod-nvidia-580xx-3:580.159.03-1.fc44.x86_64                                                                                                            100% |  17.3 KiB/s | 124.0   B |  00m00s
[11/29] Installing xorg-x11-drv-nvidia-580xx-xorg-libs-3:580.159.03-1.fc44.x86_64                                                                                          100% | 472.1 MiB/s |  19.4 MiB |  00m00s
[12/29] Installing xorg-x11-drv-nvidia-580xx-power-3:580.159.03-1.fc44.x86_64                                                                                              100% |  33.8 MiB/s |   2.3 MiB |  00m00s
[13/29] Removing akmod-nvidia-3:610.43.02-1.fc45.x86_64                                                                                                                    100% | 250.0   B/s |   2.0   B |  00m00s
[14/29] Removing kmod-nvidia-7.0.8-200.fc44.x86_64-3:610.43.02-1.fc44.x86_64                                                                                               100% |   1.0   B/s |   7.0   B |  00m07s
[15/29] Removing kmod-nvidia-7.0.10-201.fc44.x86_64-3:610.43.02-1.fc44.x86_64                                                                                              100% |   1.0   B/s |   7.0   B |  00m07s
>>> Running %preun scriptlet: xorg-x11-drv-nvidia-power-3:610.43.02-1.fc45.x86_64
>>> Finished %preun scriptlet: xorg-x11-drv-nvidia-power-3:610.43.02-1.fc45.x86_64
>>> Scriptlet output:
>>> Removed '/etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service'.
>>> Removed '/etc/systemd/system/systemd-suspend-then-hibernate.service.wants/nvidia-suspend-then-hibernate.service'.
>>> Removed '/etc/systemd/system/multi-user.target.wants/nvidia-powerd.service'.
>>> Removed '/etc/systemd/system/systemd-suspend.service.wants/nvidia-resume.service'.
>>> Removed '/etc/systemd/system/systemd-suspend-then-hibernate.service.wants/nvidia-resume.service'.
>>> Removed '/etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service'.
>>> Removed '/etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service'.
>>> 
[16/29] Removing xorg-x11-drv-nvidia-power-3:610.43.02-1.fc45.x86_64                                                                                                       100% | 656.0   B/s |  21.0   B |  00m00s
[17/29] Removing nvidia-settings-3:610.43.02-1.fc45.x86_64                                                                                                                 100% |   1.0 KiB/s |  14.0   B |  00m00s
[18/29] Removing xorg-x11-drv-nvidia-kmodsrc-3:610.43.02-1.fc45.x86_64                                                                                                     100% |   3.0   B/s |   3.0   B |  00m01s
[19/29] Removing xorg-x11-drv-nvidia-3:610.43.02-1.fc45.x86_64                                                                                                             100% |   1.6 KiB/s |  90.0   B |  00m00s
[20/29] Removing xorg-x11-drv-nvidia-cuda-3:610.43.02-1.fc45.x86_64                                                                                                        100% | 611.0   B/s |  11.0   B |  00m00s
[21/29] Removing kmod-nvidia-7.0.9-205.fc44.x86_64-3:610.43.02-1.fc44.x86_64                                                                                               100% |   1.0   B/s |   7.0   B |  00m07s
[22/29] Removing xorg-x11-drv-nvidia-xorg-libs-3:610.43.02-1.fc45.x86_64                                                                                                   100% | 666.0   B/s |   6.0   B |  00m00s
[23/29] Removing xorg-x11-drv-nvidia-cuda-libs-3:610.43.02-1.fc45.i686                                                                                                     100% |   2.0 KiB/s |  22.0   B |  00m00s
[24/29] Removing xorg-x11-drv-nvidia-libs-3:610.43.02-1.fc45.x86_64                                                                                                        100% |   2.6 KiB/s |  42.0   B |  00m00s
[25/29] Removing xorg-x11-drv-nvidia-libs-3:610.43.02-1.fc45.i686                                                                                                          100% |   1.6 KiB/s |  24.0   B |  00m00s
[26/29] Removing egl-wayland2-0:1.0.1-1.fc44.i686                                                                                                                          100% | 833.0   B/s |  10.0   B |  00m00s
[27/29] Removing xorg-x11-drv-nvidia-cuda-libs-3:610.43.02-1.fc45.x86_64                                                                                                   100% | 568.0   B/s |  29.0   B |  00m00s
[28/29] Removing nvidia-persistenced-3:610.43.02-1.fc45.x86_64                                                                                                             100% | 270.0   B/s |  10.0   B |  00m00s
[29/29] Removing libva-nvidia-driver-0:0.0.17-1.fc44.x86_64                                                                                                                100% |   4.0   B/s |   8.0   B |  00m02s
Complete!

As the expert here, would you generally recommend that over the 2 step approach?
One issue I see is that xorg-x11-drv-nvidia-cuda is removed but not re-installed with that command.

EDIT: It’s also not re-installing egl-wayland from your example. When I do it separately, on my system, it will re-install egl-gbm, egl-x11 in addition to that.

That isn’t the same as egl-wayland.

The two step method is much more reliable.

Do not use sudo akmods && sudo reboot because akmods currently always reurns 0.
See this BZ: akmods command: improve the logs, fix exit code