F42 Issues with NVIDIA Driver

Hello, I recently updated my laptop to F42, and I’m not able to install the drivers for NVIDIA.

My laptop is an Acer Predator PH315-51.
Processor is i7 8th gen
NVIDIA Card is GTX 1060 6gb

NVIDIA-SMI shows this output:

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

When running

sudo dmesg | grep -i nvidia

I got this output.

[ 0.000000] Command line: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.14.2-300.fc42.x86_64 root=UUID=34799f52-c770-47e4-9215-95b9c7f7abec ro rootflags=subvol=root rd.luks.uuid=luks-914901be-e1e4-4602-ae01-21c4d7312a64 rhgb quiet mitigations=off i915.modeset=1 nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau video=vesafb:mtrr:3
[ 0.048489] Kernel command line: BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.14.2-300.fc42.x86_64 root=UUID=34799f52-c770-47e4-9215-95b9c7f7abec ro rootflags=subvol=root rd.luks.uuid=luks-914901be-e1e4-4602-ae01-21c4d7312a64 rhgb quiet mitigations=off i915.modeset=1 nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau video=vesafb:mtrr:3
[ 10.206099] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 10.207840] nvidia 0000:01:00.0: enabling device (0106 → 0107)
[ 10.208035] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[ 10.208057] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
NVRM: nvidia.ko because it does not include the required GPU
NVRM: www.nvidia.com.
[ 10.208173] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[ 10.208196] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 10.208197] NVRM: None of the NVIDIA devices were initialized.
[ 10.208512] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[ 10.256770] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input27
[ 10.256850] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input28
[ 10.256887] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input29
[ 10.256920] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input30
[ 10.553149] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 10.553898] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none
[ 10.553915] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
NVRM: nvidia.ko because it does not include the required GPU
NVRM: www.nvidia.com.
[ 10.553979] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[ 10.553993] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 10.553994] NVRM: None of the NVIDIA devices were initialized.
[ 10.554121] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[ 11.435106] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 11.436608] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none
[ 11.436634] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
NVRM: nvidia.ko because it does not include the required GPU
NVRM: www.nvidia.com.
[ 11.436754] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[ 11.436779] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 11.436780] NVRM: None of the NVIDIA devices were initialized.
[ 11.437096] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[ 19.076361] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 19.077307] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none
[ 19.077327] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
NVRM: nvidia.ko because it does not include the required GPU
NVRM: www.nvidia.com.
[ 19.077391] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[ 19.077412] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 19.077413] NVRM: None of the NVIDIA devices were initialized.
[ 19.077629] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[ 19.372752] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 19.373855] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none
[ 19.373898] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
NVRM: nvidia.ko because it does not include the required GPU
NVRM: www.nvidia.com.
[ 19.374003] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[ 19.374031] NVRM: The NVIDIA probe routine failed for 1 device(s).
[ 19.374033] NVRM: None of the NVIDIA devices were initialized.
[ 19.374250] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[ 19.678743] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[ 19.679681] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none

note: This is show a lot of times, but I cut the main message to not show a lot of lines.

For the install I did run this commands:

 sudo dnf update -y # and reboot if you are not on the latest kernel
 sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead
 sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support

Hi!

Did you upgrade from 41? Did the drivers being installed and worked previously?
There are a lot of things which might went wrong.

I would recommend you trying this solution.

Yes, I was using F41 before, but the drivers itself were working, but the instalation was using the .img file provided from NVIDIA which also couldn’t be installed now.

The only working way is to install them via RPM Fusion.

Yes, I’ve trying to install it using RPM fusion, but all the time I restart my laptop it goes back to the nouveau drivers.


sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda                               1316ms  Mon 21 Apr 2025 02:33:42 PM -03
Updating and loading repositories:
Repositories loaded.
gpg: WARNING: No valid encryption subkey left over.
Package                                Arch    Version                                 Repository                             Size
Installing:
 akmod-nvidia                          x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver    92.2 KiB
 xorg-x11-drv-nvidia-cuda              x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver     6.2 MiB
Installing dependencies:
 nvidia-modprobe                       x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver    50.9 KiB
 nvidia-persistenced                   x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver    54.4 KiB
 nvidia-settings                       x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver     4.4 MiB
 xorg-x11-drv-nvidia                   x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver   190.5 MiB
 xorg-x11-drv-nvidia-cuda-libs         i686    3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver   188.6 MiB
 xorg-x11-drv-nvidia-cuda-libs         x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver   273.5 MiB
 xorg-x11-drv-nvidia-kmodsrc           x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver    75.1 MiB
 xorg-x11-drv-nvidia-libs              i686    3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver   162.2 MiB
 xorg-x11-drv-nvidia-libs              x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver   361.9 MiB
 xorg-x11-drv-nvidia-xorg-libs         x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver    19.4 MiB
Installing weak dependencies:
 xorg-x11-drv-nvidia-power             x86_64  3:570.133.07-1.fc42                     rpmfusion-nonfree-nvidia-driver   233.7 KiB

Transaction Summary:
 Installing:        13 packages

Total size of inbound packages is 437 MiB. Need to download 437 MiB.
After this operation, 1 GiB extra will be used (install 1 GiB, remove 0 B).
Is this ok [y/N]: y
[ 1/13] akmod-nvidia-3:570.133.07-1.fc42.x86_64                                           100% |  73.7 KiB/s |  41.0 KiB |  00m01s
[ 2/13] nvidia-modprobe-3:570.133.07-1.fc42.x86_64                                        100% |  40.4 KiB/s |  31.8 KiB |  00m01s
[ 3/13] nvidia-persistenced-3:570.133.07-1.fc42.x86_64                                    100% |  28.6 KiB/s |  35.6 KiB |  00m01s
[ 4/13] xorg-x11-drv-nvidia-power-3:570.133.07-1.fc42.x86_64                              100% | 119.6 KiB/s | 106.2 KiB |  00m01s
[ 5/13] xorg-x11-drv-nvidia-cuda-3:570.133.07-1.fc42.x86_64                               100% | 578.5 KiB/s |   2.3 MiB |  00m04s
[ 6/13] xorg-x11-drv-nvidia-xorg-libs-3:570.133.07-1.fc42.x86_64                          100% | 485.0 KiB/s |   2.3 MiB |  00m05s
[ 7/13] nvidia-settings-3:570.133.07-1.fc42.x86_64                                        100% | 206.9 KiB/s |   1.7 MiB |  00m08s
[ 8/13] xorg-x11-drv-nvidia-cuda-libs-3:570.133.07-1.fc42.i686                            100% |   1.9 MiB/s |  42.0 MiB |  00m23s
[ 9/13] xorg-x11-drv-nvidia-cuda-libs-3:570.133.07-1.fc42.x86_64                          100% |   1.7 MiB/s |  48.4 MiB |  00m28s
[10/13] xorg-x11-drv-nvidia-3:570.133.07-1.fc42.x86_64                                    100% |   2.6 MiB/s | 148.5 MiB |  00m57s
[11/13] xorg-x11-drv-nvidia-libs-3:570.133.07-1.fc42.i686                                 100% | 591.7 KiB/s |  39.9 MiB |  01m09s
>>> Curl error (7): Could not connect to server for http://mirror.epn.edu.ec/rpmfusion/nonfree/fedora/nvidia-driver/42/x86_64/x/xo
>>> Curl error (6): Could not resolve hostname for http://mirror.uta.edu.ec/rpmfusion/nonfree/fedora/nvidia-driver/42/x86_64/x/xor
[12/13] xorg-x11-drv-nvidia-kmodsrc-3:570.133.07-1.fc42.x86_64                            100% | 536.8 KiB/s |  74.8 MiB |  02m23s
[13/13] xorg-x11-drv-nvidia-libs-3:570.133.07-1.fc42.x86_64                               100% | 519.8 KiB/s |  76.9 MiB |  02m31s
----------------------------------------------------------------------------------------------------------------------------------
[13/13] Total                                                                             100% |   2.9 MiB/s | 436.9 MiB |  02m32s
Running transaction
[ 1/15] Verify package files                                                              100% |   3.0   B/s |  13.0   B |  00m04s
[ 2/15] Prepare transaction                                                               100% |  16.0   B/s |  13.0   B |  00m01s
[ 3/15] Installing nvidia-modprobe-3:570.133.07-1.fc42.x86_64                             100% | 693.4 KiB/s |  52.0 KiB |  00m00s
[ 4/15] Installing xorg-x11-drv-nvidia-kmodsrc-3:570.133.07-1.fc42.x86_64                 100% | 284.5 MiB/s |  75.1 MiB |  00m00s
[ 5/15] Installing xorg-x11-drv-nvidia-cuda-libs-3:570.133.07-1.fc42.x86_64               100% | 257.3 MiB/s | 273.5 MiB |  00m01s
[ 6/15] Installing nvidia-persistenced-3:570.133.07-1.fc42.x86_64                         100% |  85.1 KiB/s |  56.0 KiB |  00m01s
[ 7/15] Installing xorg-x11-drv-nvidia-cuda-libs-3:570.133.07-1.fc42.i686                 100% | 243.1 MiB/s | 188.6 MiB |  00m01s
[ 8/15] Installing xorg-x11-drv-nvidia-libs-3:570.133.07-1.fc42.i686                      100% | 212.8 MiB/s | 162.2 MiB |  00m01s
[ 9/15] Installing xorg-x11-drv-nvidia-libs-3:570.133.07-1.fc42.x86_64                    100% | 235.5 MiB/s | 361.9 MiB |  00m02s
[10/15] Installing nvidia-settings-3:570.133.07-1.fc42.x86_64                             100% | 108.8 MiB/s |   4.4 MiB |  00m00s
[11/15] Installing xorg-x11-drv-nvidia-xorg-libs-3:570.133.07-1.fc42.x86_64               100% | 238.9 MiB/s |  19.4 MiB |  00m00s
[12/15] Installing xorg-x11-drv-nvidia-3:570.133.07-1.fc42.x86_64                         100% |  73.7 MiB/s | 190.5 MiB |  00m03s
[13/15] Installing akmod-nvidia-3:570.133.07-1.fc42.x86_64                                100% |   7.5 MiB/s |  92.6 KiB |  00m00s
[14/15] Installing xorg-x11-drv-nvidia-cuda-3:570.133.07-1.fc42.x86_64                    100% | 128.9 MiB/s |   6.2 MiB |  00m00s
[15/15] Installing xorg-x11-drv-nvidia-power-3:570.133.07-1.fc42.x86_64                   100% | 131.8 KiB/s | 235.9 KiB |  00m02s
>>> Running post-install scriptlet: xorg-x11-drv-nvidia-power-3:570.133.07-1.fc42.x86_64                                          
>>> Finished post-install scriptlet: xorg-x11-drv-nvidia-power-3:570.133.07-1.fc42.x86_64                                         
>>> Scriptlet output:                                                                                                             
>>> Created symlink '/etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service' → '/usr/lib/systemd/system/nvid
>>> Created symlink '/etc/systemd/system/systemd-suspend-then-hibernate.service.wants/nvidia-suspend-then-hibernate.service' → '/u
>>> Created symlink '/etc/systemd/system/multi-user.target.wants/nvidia-powerd.service' → '/usr/lib/systemd/system/nvidia-powerd.s
>>> Created symlink '/etc/systemd/system/systemd-suspend.service.wants/nvidia-resume.service' → '/usr/lib/systemd/system/nvidia-re
>>> Created symlink '/etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service' → '/usr/lib/systemd/system/nvidia-
>>> Created symlink '/etc/systemd/system/systemd-suspend-then-hibernate.service.wants/nvidia-resume.service' → '/usr/lib/systemd/s
>>> Created symlink '/etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service' → '/usr/lib/systemd/system/nvidia-s
>>>                                                                                                                               
Complete!
 ~  nvidia-smi         
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
  1. Did you wait ~5 minutes for akmod* to finish compiling?
  2. Is Secure Boot disabled or installed drivers signed?
  3. Did nouveau blacklisted in grub?
  1. Yes I did wait 30 minutes actually.
  2. Secure boot is disabled.
  3. No, I didn’t block nouveau in grub. Should I?

Changes will take effect after a full reboot on the newest kernel.

nouveau should be blacklisted automatically, though it’s better to check

Ok, I did rebooted the laptop after 30 minutes, and it still shows the error saying that there is no NVIDIA drivers, and it is falling back to nouveau.

Also, I just checked my Grub file, this is what it has.

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=“$(sed ‘s, release .*$,g’ /etc/system-release)”
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT=“console”
GRUB_CMDLINE_LINUX=“rd.luks.uuid=luks-914901be-e1e4-4602-ae01-21c4d7312a64 rhgb quiet mitigations=off i915.modeset=1 nvidia-drm.modeset=1 video=vesafb:mtrr:3 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau”
GRUB_DISABLE_RECOVERY=“true”
GRUB_ENABLE_BLSCFG=true

This part of the log sounds a bit like the detected GPU is incompatible with the installed driver. (This Ubuntu user got a similar message with an older nVidia GPU.)

Just to check, did you enable the “Open Kernel” driver as per this section of the RPMFusion docs? If you did, that would be a problem, because the open kernel driver requires a 16-series card or higher, and your 10-series card isn’t compatible.

I will try to do the open kernel thing again, but the other time I tried, it didn’t start the sddm correctly.

Aha, if you tried to do it before, then you need to reverse it.

How did you do it? By modifying /etc/rpm/macros.nvidia-kmod, or by doing sudo dnf install rpmfusion-nonfree-release-tainted && sudo dnf swap akmod-nvidia akmod-nvidia-open ?

I did this:

sudo dnf install rpmfusion-nonfree-release-tainted && sudo dnf swap akmod-nvidia akmod-nvidia-open

Can you try this:

sudo dnf remove akmod-nvidia-open rpmfusion-nonfree-release-tainted

Can you also check:

cat /etc/rpm/macros.nvidia-kmod

(you want that file to be empty or missing)

Then try:

sudo dnf reinstall akmod-nvidia xorg-x11-drv-nvidia-cuda

I’m not 100% on this as I don’t know if the previous .img file from nVidia has left any trace that needs to be cleared up. But with your 1060, you definitely need to make sure not to use the open kernel modules.

Hmm, ok understood.

The file had something on it, and I removed it.

I tried reinstalling akmod, and I still have the same issue where it goes back to the nouveau on boot.

 systemctl | grep nvidia 
 nvidia-fallback.service loaded active exited Fallback to nouveau as nvidia did not load

Ah, sorry to hear. What does sudo dmesg | grep -i nvidia look like this time? The same errors that you got before, or different?

Same erros still

[   85.773727] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[   85.773766] NVRM: The NVIDIA probe routine failed for 1 device(s).
[   85.773768] NVRM: None of the NVIDIA devices were initialized.
[   85.774179] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[  255.892384] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[  255.893450] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none
[  255.893469] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
               NVRM: nvidia.ko because it does not include the required GPU
               NVRM: www.nvidia.com.
[  255.893532] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[  255.893551] NVRM: The NVIDIA probe routine failed for 1 device(s).
[  255.893552] NVRM: None of the NVIDIA devices were initialized.
[  255.893999] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[  256.164607] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[  256.165379] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none
[  256.165407] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
               NVRM: nvidia.ko because it does not include the required GPU
               NVRM: www.nvidia.com.
[  256.165471] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[  256.165488] NVRM: The NVIDIA probe routine failed for 1 device(s).
[  256.165489] NVRM: None of the NVIDIA devices were initialized.
[  256.165633] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
[  256.417782] nvidia-nvlink: Nvlink Core is being initialized, major device number 509
[  256.418542] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=none,decodes=none:owns=none
[  256.418559] NVRM: The NVIDIA GPU 0000:01:00.0 (PCI ID: 10de:1c20)
               NVRM: nvidia.ko because it does not include the required GPU
               NVRM: www.nvidia.com.
[  256.418619] nvidia 0000:01:00.0: probe with driver nvidia failed with error -1
[  256.418634] NVRM: The NVIDIA probe routine failed for 1 device(s).
[  256.418635] NVRM: None of the NVIDIA devices were initialized.
[  256.418997] nvidia-nvlink: Unregistered Nvlink Core, major device number 509
 ~                                                 

Did uou install legacy drivers? Since you are running gtx 1060 and it is not supported on current drivers you are installing latest onea

I’ve using this commands to install the driver.

sudo dnf update -y # and reboot if you are not on the latest kernel
sudo dnf install akmod-nvidia # rhel/centos users can use kmod-nvidia instead
sudo dnf install xorg-x11-drv-nvidia-cuda #optional for cuda/nvdec/nvenc support

Remove all installed and install

dnf update -y sudo dnf install xorg-x11-drv-nvidia-390xx akmod-nvidia-390xx sudo dnf install xorg-x11-drv-nvidia-390xx-cuda #optional for cuda up to 9.2 support