I have a laptop running Fedora 42 (Wayland) that has 2 graphics cards:
- Intel UHD Graphics @ 1.50 GHz [Integrated]
- NVIDIA GeForce RTX 4060 Max-Q / Mobile [Discrete]
I have installed a GNOME extensin called Freon that I use to monitor system average and Nvidia GPU temperature. Usually this indicator shows a temperature when GPU is used and N/A
when not. Recently, I noticed that the GPU indicator started showing the sign, which appears when the extension cannot gather GPU information. Although the GPU seems to be unavailable for all applications. The issue is that I can’t identify which actions cause the error. It can just appear when I am just browsing the web (with only Zen Browser and Vesktop running) or after a gaming session.
What I tried:
The first thing that came to my mind was to reinstall the Nvidia drivers, maybe I just did a wrong installation in the past, or the update might have broken the previous settings.
I didn’t save the output, but it succeeded.
$ sudo dnf remove 'xorg-x11-drv-nvidia*' 'akmod-nvidia*' 'kmod-nvidia*' nvidia-settings nvidia-xconfig nvidia-modprobe nvidia-persistenced
$ sudo dnf autoremove
$ sudo rm -f /etc/X11/xorg.conf.d/nvidia.conf
$ sudo rm -f /etc/modprobe.d/nvidia.conf
$ sudo rm -f /etc/dracut.conf.d/nvidia.conf
$ sudo grubby --update-kernel=ALL --remove-args='rd.driver.blacklist=nouveau'
$ sudo grubby --update-kernel=ALL --remove-args='modprobe.blacklist=nouveau'
$ sudo grubby --update-kernel=ALL --remove-args='nvidia-drm.modeset=1'
$ sudo dracut --force
reboot
$ sudo dnf install kernel-devel kernel-headers gcc make dkms acpid libglvnd-glx libglvnd-opengl libglvnd-devel pkgconfig
$ sudo dnf install xorg-x11-drv-nvidia-libs.i686
$ sudo akmods --force
$ modinfo -F version nvidia
$ sudo dnf install nvidia-settings
$ sudo dnf install nvidia-vaapi-driver libva-utils vdpauinfo
$ sudo dnf install vulkan vulkan-tools
$ sudo grubby --update-kernel=ALL --args='rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1'
$ sudo mkdir -p /var/lib/dkms
$ sudo openssl req -new -x509 -newkey rsa:2048 -keyout /var/lib/dkms/mok.priv -outform DER -out /var/lib/dkms/mok.der -nodes -days 36500 -subj "/CN=DKMS module signing key"
$ sudo chmod 600 /var/lib/dkms/mok.priv
$ sudo mokutil --import /var/lib/dkms/mok.der
$ sudo tee /etc/dkms/framework.conf << EOF
sign_tool="/lib/modules/\$kernelver/build/scripts/sign-file"
mok_signing_key="/var/lib/dkms/mok.priv"
mok_certificate="/var/lib/dkms/mok.der"
EOF
reboot and enroll the key
sudo akmods --force --kernels $(uname -r)
After that, I thought the problem would go away, but it reappeared. I searched for a similar problem and found some tips that were supposed to help (but they didn’t). That time I saved the output:
eq@Lapwarmer:/$ sudo systemctl status nvidia-persistenced
[sudo] password for eq:
○ nvidia-persistenced.service - NVIDIA Persistence Daemon
Loaded: loaded (/usr/lib/systemd/system/nvidia-persistenced.service; disabled; preset: disabled)
Drop-In: /usr/lib/systemd/system/service.d
└─10-timeout-abort.conf
Active: inactive (dead)
eq@Lapwarmer:/$ sudo systemctl enable nvidia-persistenced
Created symlink '/etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service' → '/usr/lib/systemd/system/nvidia-persistenced.service'.
eq@Lapwarmer:/$ sudo systemctl start nvidia-persistenced
eq@Lapwarmer:/$ nvidia-smi -q | grep -i persistence
Persistence Mode : Enabled
eq@Lapwarmer:/$
That didn’t solve it.
Then I thought, maybe the issue is with the suspension/hibernation of the system (once GPU errored right after I wake up the laptop), so I tried those:
$ sudo systemctl enable nvidia-suspend.service
$ sudo systemctl enable nvidia-hibernate.service
$ sudo systemctl enable nvidia-resume.service
$ sudo grubby --update-kernel=ALL --args='nvidia.NVreg_PreserveVideoMemoryAllocations=1'
That didn’t solve the issue either.
My guess
My guess is that it’s all related to system constantly switching between both GPUs and because of this dGPU for whatever reason got lost by the system.
Not sure, how frequent this issue is, would glad to get any help!
Some commands I can think of (currently the Nvidia GPU is ):
eq@Lapwarmer:~$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation AD107M [GeForce RTX 4060 Max-Q / Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation AD107 High Definition Audio Controller (rev a1)
eq@Lapwarmer:~$ cat /sys/bus/pci/devices/0000:01:00.0/power/runtime_status
error
eq@Lapwarmer:~$ cat /sys/bus/pci/devices/0000:01:00.0/power/control
auto
eq@Lapwarmer:~$ dmesg | grep -i nvidia
dmesg: read kernel buffer failed: Operation not permitted
eq@Lapwarmer:~$ nvidia-smi
Unable to determine the device handle for GPU0: 0000:01:00.0: Unknown Error
No devices were found
eq@Lapwarmer:~$ journalctl -b | grep -i nvidia
Jun 17 17:47:12 Lapwarmer kernel: Command line: BOOT_IMAGE=(hd0,gpt7)/vmlinuz-6.14.11-300.fc42.x86_64 root=UUID=3f565a76-22d9-47db-91c2-d0f94646b7eb ro rootflags=subvol=root resume=UUID=52fab9b3-7901-40ce-a245-e8bb16e8e400 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 nvidia.NVreg_PreserveVideoMemoryAllocations=1
Jun 17 17:47:12 Lapwarmer kernel: Kernel command line: BOOT_IMAGE=(hd0,gpt7)/vmlinuz-6.14.11-300.fc42.x86_64 root=UUID=3f565a76-22d9-47db-91c2-d0f94646b7eb ro rootflags=subvol=root resume=UUID=52fab9b3-7901-40ce-a245-e8bb16e8e400 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 nvidia.NVreg_PreserveVideoMemoryAllocations=1
Jun 17 17:47:12 Lapwarmer dracut-cmdline[434]: Using kernel command line parameters: rd.driver.pre=btrfs BOOT_IMAGE=(hd0,gpt7)/vmlinuz-6.14.11-300.fc42.x86_64 root=UUID=3f565a76-22d9-47db-91c2-d0f94646b7eb ro rootflags=subvol=root resume=UUID=52fab9b3-7901-40ce-a245-e8bb16e8e400 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 nvidia.NVreg_PreserveVideoMemoryAllocations=1
Jun 17 14:47:15 Lapwarmer systemd[1]: Starting systemd-backlight@backlight:nvidia_wmi_ec_backlight.service - Load/Save Screen Backlight Brightness of backlight:nvidia_wmi_ec_backlight...
Jun 17 14:47:15 Lapwarmer systemd[1]: Finished systemd-backlight@backlight:nvidia_wmi_ec_backlight.service - Load/Save Screen Backlight Brightness of backlight:nvidia_wmi_ec_backlight.
Jun 17 14:47:15 Lapwarmer audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-backlight@backlight:nvidia_wmi_ec_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 17 14:47:15 Lapwarmer kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 509
Jun 17 14:47:15 Lapwarmer kernel: nvidia 0000:01:00.0: enabling device (0506 -> 0507)
Jun 17 14:47:15 Lapwarmer kernel: nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
Jun 17 14:47:15 Lapwarmer kernel: NVRM: loading NVIDIA UNIX Open Kernel Module for x86_64 575.57.08 Release Build (dvs-builder@U22-I3-H04-01-5) Sat May 24 07:03:13 UTC 2025
Jun 17 14:47:16 Lapwarmer kernel: nvidia-modeset: Loading NVIDIA UNIX Open Kernel Mode Setting Driver for x86_64 575.57.08 Release Build (dvs-builder@U22-I3-H04-01-5) Sat May 24 06:53:21 UTC 2025
Jun 17 14:47:16 Lapwarmer kernel: [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
Jun 17 14:47:17 Lapwarmer kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input23
Jun 17 14:47:17 Lapwarmer kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input24
Jun 17 14:47:17 Lapwarmer kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input25
Jun 17 14:47:17 Lapwarmer kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card0/input26
Jun 17 14:47:17 Lapwarmer systemd[1]: Starting nvidia-persistenced.service - NVIDIA Persistence Daemon...
Jun 17 14:47:17 Lapwarmer systemd[1]: Started nvidia-powerd.service - nvidia-powerd service.
Jun 17 14:47:17 Lapwarmer audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-powerd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 17 14:47:17 Lapwarmer nvidia-persistenced[1177]: Started (1177)
Jun 17 14:47:17 Lapwarmer nvidia-powerd[1168]: nvidia-powerd version:2.0 (build 1)
Jun 17 14:47:17 Lapwarmer boltd[1321]: [c3a38780-00f9-OMEN by HP Gaming Laptop 16] labeling device: HP OMEN by HP Gaming Laptop 16-wf (INTEL RPL+Nvidia RTX 4080)
Jun 17 14:47:18 Lapwarmer nvidia-powerd[1168]: DBus Connection is established
Jun 17 14:47:18 Lapwarmer kernel: nvidia-modeset: nvidia-modeset: ACPI reported no NVIDIA native backlight available; attempting to use ACPI backlight.
Jun 17 14:47:18 Lapwarmer kernel: nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-4
Jun 17 14:47:18 Lapwarmer kernel: nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device DP-4
Jun 17 14:47:18 Lapwarmer systemd[1]: Started nvidia-persistenced.service - NVIDIA Persistence Daemon.
Jun 17 14:47:18 Lapwarmer kernel: [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 0
Jun 17 14:47:18 Lapwarmer audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=nvidia-persistenced comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 17 14:47:18 Lapwarmer kernel: nvidia 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jun 17 14:47:18 Lapwarmer systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load was skipped because of an unmet condition check (ConditionPathExists=!/sys/module/nvidia).
Jun 17 14:47:19 Lapwarmer gnome-shell[1613]: Added device '/dev/dri/card0' (nvidia-drm) using atomic mode setting.
Jun 17 14:48:00 Lapwarmer gnome-shell[2654]: Added device '/dev/dri/card0' (nvidia-drm) using atomic mode setting.
Jun 17 14:48:01 Lapwarmer systemd[2398]: Started app-gnome-nvidia\x2dsettings\x2duser-2830.scope - Application launched by gnome-session-binary.
Jun 17 14:57:23 Lapwarmer kernel: nvidia 0000:01:00.0: can't suspend (nv_pmops_runtime_suspend [nvidia] returned -5)
Jun 17 15:16:15 Lapwarmer net.nokyan.Resources.desktop[8755]: INFO resources::utils::gpu > Found GPU "AD107M [GeForce RTX 4060 Max-Q / Mobile]" (Identifier: 0000:01:00.0 · PCI ID: 10de:28e0 · Category: NVIDIA)
Jun 17 15:54:23 Lapwarmer sudo[11474]: eq : TTY=pts/0 ; PWD=/home/eq ; USER=root ; COMMAND=/usr/sbin/modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia
Jun 17 15:54:27 Lapwarmer sudo[11516]: eq : TTY=pts/0 ; PWD=/home/eq ; USER=root ; COMMAND=/usr/sbin/modprobe nvidia nvidia_uvm nvidia_modeset nvidia_drm
eq@Lapwarmer:~$
I can provide any logs (just tell me how).