Nvidia kernel module missing falling back to nouveau

Hello,

I am a newcomer to the Linux world and I’m trying to address an issue with installing Nvidia drivers on my Asus TUF Gaming F15 FX506LH laptop, running Fedora 38 Workstation. I have spent a significant amount of time searching for solutions online, but have yet to find a fully satisfactory answer.

I’ve attempted two methods for installing Nvidia drivers: through GNOME Software and manually via the terminal, following recommendations from various sources. However, after both attempts, upon system boot, I am still encountering the error “Nvidia kernel module missing, falling back to nouveau”.

It’s worth noting that during these installation attempts, I might have installed unnecessary packages, as my experience with Linux is still limited.

If you have any advice that could help me resolve this issue, and if you could provide specific instructions considering my laptop model, I would greatly appreciate your support.

Thank you for your time and consideration.

[romka@fedora ~]$ nvidia-smi
bash: nvidia-smi: command not found...
Packages providing this file are:
'xorg-x11-drv-nvidia-470xx-cuda'
'xorg-x11-drv-nvidia-cuda'
'xorg-x11-drv-nvidia-340xx-cuda'
'xorg-x11-drv-nvidia-390xx-cuda'
[romka@fedora ~]$ neofetch 
             .',;::::;,'.                romka@fedora 
         .';:cccccccccccc:;,.            ------------ 
      .;cccccccccccccccccccccc;.         OS: Fedora Linux 38 (Workstation Editi 
    .:cccccccccccccccccccccccccc:.       Host: ASUS TUF Gaming F15 FX506LH_FX50 
  .;ccccccccccccc;.:dddl:.;ccccccc;.     Kernel: 6.4.12-200.fc38.x86_64 
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.    Uptime: 28 mins 
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:.   Packages: 1720 (rpm), 13 (flatpak) 
,cccccccccccccc;MMM.;cc;;WW::cccccccc,   Shell: bash 5.2.15 
:cccccccccccccc;MMM.;cccccccccccccccc:   Resolution: 1920x1080 
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc:   DE: GNOME 44.4 
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc;   WM: Mutter 
ccccc:XM0';cccc;MMM.;cccccccccccccccc'   WM Theme: Adwaita 
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;    Theme: Adwaita [GTK2/3] 
ccccc;0MNc.ccc.xMMd:ccccccccccccccc;     Icons: Adwaita [GTK2/3] 
cccccc;dNMWXXXWM0::cccccccccccccc:,      Terminal: gnome-terminal 
cccccccc;.:odl:.;cccccccccccccc:,.       CPU: Intel i5-10300H (8) @ 4.500GHz 
:cccccccccccccccccccccccccccc:'.         GPU: Intel CometLake-H GT2 [UHD Graphi 
.:cccccccccccccccccccccc:;,..            Memory: 1992MiB / 7763MiB 
  '::cccccccccccccc::;,.                  

First lets see what you currently may have installed for drivers.
dnf list installed '*nvidia*' should tell us that.

We also need to know what nvidia hardware may be installed and if secure boot may be interfering so the output of inxi -Fzxx and sudo mokutil --sb-state will tell us that.

Once we have a starting condition we can work toward a resolution.

dnf list installed ‘nvidia’:

[romka@fedora ~]$ dnf list installed '*nvidia*'
Installed Packages
akmod-nvidia-470xx.x86_64                       3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver
kmod-nvidia-470xx-6.4.12-200.fc38.x86_64.x86_64 3:470.199.02-1.fc38 @@commandline
nvidia-settings-470xx.x86_64                    3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx.x86_64                3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-kmodsrc.x86_64        3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-470xx-libs.x86_64           3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver
[romka@fedora ~]$ 

Note: It is installed 470, because i tried this version instead of actual 535. The result is the same: I see the error

[romka@fedora ~]$ inxi -Fzxx
System:
  Kernel: 6.4.12-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.4 tk: GTK v: 3.24.38 wm: gnome-shell
    dm: GDM Distro: Fedora release 38 (Thirty Eight)
Machine:
  Type: Laptop System: ASUSTeK product: ASUS TUF Gaming F15 FX506LH_FX506LH
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: FX506LH v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: FX506LH.310 date: 11/26/2021
Battery:
  ID-1: BAT1 charge: 38.3 Wh (100.0%) condition: 38.3/48.1 Wh (79.6%)
    volts: 12.6 min: 11.7 model: ASUS A32-K55 serial: N/A status: full
CPU:
  Info: quad core model: Intel Core i5-10300H bits: 64 type: MT MCP
    arch: Comet Lake rev: 2 cache: L1: 256 KiB L2: 1024 KiB L3: 8 MiB
  Speed (MHz): avg: 2287 high: 2500 min/max: 800/4500 cores: 1: 800 2: 2500
    3: 2500 4: 2500 5: 2500 6: 2500 7: 2500 8: 2500 bogomips: 39999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Gen-9.5 ports: active: eDP-1 empty: none bus-ID: 00:02.0
    chip-ID: 8086:9bc4
  Device-2: Sonix USB2.0 HD UVC WebCam driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 1-7:2 chip-ID: 322e:202c
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: eDP-1 model: Najing CEC Panda 0x004d res: 1920x1080 dpi: 142
    diag: 395mm (15.5")
  API: OpenGL v: 4.6 Mesa 23.1.6 renderer: Mesa Intel UHD Graphics (CML GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:06c8
  API: ALSA v: k6.4.12-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.78 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
    vendor: AzureWave driver: mt7921e v: kernel pcie: speed: 5 GT/s lanes: 1
    bus-ID: 03:00.0 chip-ID: 14c3:7961
  IF: wlp3s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: 3000 bus-ID: 04:00.0 chip-ID: 10ec:8168
  IF: enp4s0 state: down mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 1-14:3 chip-ID: 13d3:3563
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.2 lmp-v: 11
Drives:
  Local Storage: total: 476.94 GiB used: 6.71 GiB (1.4%)
  ID-1: /dev/nvme0n1 vendor: Micron model: 2210 MTFDHBA512QFD
    size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
Partition:
  ID-1: / size: 475.35 GiB used: 6.46 GiB (1.4%) fs: btrfs dev: /dev/nvme0n1p3
  ID-2: /boot size: 973.4 MiB used: 239.5 MiB (24.6%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 475.35 GiB used: 6.46 GiB (1.4%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 7.58 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 46.0 C pch: 53.0 C mobo: N/A
  Fan Speeds (rpm): cpu: 0
Info:
  Processes: 335 Uptime: 2m Memory: total: 8 GiB available: 7.58 GiB
  used: 2.06 GiB (27.2%) Init: systemd v: 253 target: graphical (5)
  default: graphical Compilers: gcc: 13.2.1 Packages: pm: rpm pkgs: N/A
  note: see --rpm pm: flatpak pkgs: 13 Shell: Bash v: 5.2.15
  running-in: gnome-terminal inxi: 3.3.29
[romka@fedora ~]$ 
[romka@fedora ~]$ sudo mokutil --sb-state
[sudo] password for romka: 
SecureBoot disabled
Platform is in Setup Mode
[romka@fedora ~]$ 

I do not see an nvidia gpu in the inxi output.
To confirm that please post lspci | grep VGA

If there is actually no nvidia gpu installed then removal of the nvidia drivers would be the best action.

[romka@fedora ~]$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
[romka@fedora ~]$ 

I use laptop and it has GTX1650. Probably it doesn’t appear because i installed EnvyControl and changed GPU.
UPD:
Here’s the command which i used to change gpu

[romka@fedora ~]$ sudo envycontrol -s nvidia
[sudo] password for romka: 
Switching to nvidia mode
Enable ForceCompositionPipeline: False
Enable Coolbits: False
ERROR: Could not find Nvidia GPU
Try switching to hybrid mode first!
[romka@fedora ~]$ envycontrol --query
hybrid
[romka@fedora ~]$ 

If you have disabled the nvidia gpu then it must be enabled to move forward.

If the GTX 1650 gpu is installed then we must remove the currently installed nvidia drivers and start from scratch.
sudo dnf remove \*nvidia\* will remove all the improper drivers.
dnf repolist will show what repos are currently enabled so the proper drivers can be installed.
The nvidia-gpu-firmware package is required and must be reinstalled. sudo dnf install nvidia-gpu-firmware will manage that.

Once these steps are completed and we are able to see the nvidia gpu with the lspci command then we can move forward. Until then no progress is possible.

1 Like

Whatever was done with envycontrol must be reverted and the device must be seen.

Maybe it is disabled within the bios.

[romka@fedora ~]$ sudo dnf remove \*nvidia\*
[sudo] password for romka: 
Dependencies resolved.
================================================================================
 Package      Arch   Version             Repository                        Size
================================================================================
Removing:
 akmod-nvidia-470xx
              x86_64 3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver  84 k
 kmod-nvidia-470xx-6.4.12-200.fc38.x86_64
              x86_64 3:470.199.02-1.fc38 @@commandline                     25 M
 nvidia-settings-470xx
              x86_64 3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver 4.3 M
 xorg-x11-drv-nvidia-470xx
              x86_64 3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver  55 M
 xorg-x11-drv-nvidia-470xx-kmodsrc
              x86_64 3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver  24 M
 xorg-x11-drv-nvidia-470xx-libs
              x86_64 3:470.199.02-1.fc38 @rpmfusion-nonfree-nvidia-driver 322 M

Transaction Summary
================================================================================
Remove  6 Packages

Freed space: 430 M
Is this ok [Y/n]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Erasing          : kmod-nvidia-470xx-6.4.12-200.fc38.x86_64-3:470.199.0   1/6 
  Running scriptlet: kmod-nvidia-470xx-6.4.12-200.fc38.x86_64-3:470.199.0   1/6 
  Erasing          : nvidia-settings-470xx-3:470.199.02-1.fc38.x86_64       2/6 
  Running scriptlet: xorg-x11-drv-nvidia-470xx-3:470.199.02-1.fc38.x86_64   3/6 
  Erasing          : xorg-x11-drv-nvidia-470xx-3:470.199.02-1.fc38.x86_64   3/6 
  Erasing          : akmod-nvidia-470xx-3:470.199.02-1.fc38.x86_64          4/6 
  Erasing          : xorg-x11-drv-nvidia-470xx-kmodsrc-3:470.199.02-1.fc3   5/6 
  Erasing          : xorg-x11-drv-nvidia-470xx-libs-3:470.199.02-1.fc38.x   6/6 
  Running scriptlet: xorg-x11-drv-nvidia-470xx-libs-3:470.199.02-1.fc38.x   6/6 
  Verifying        : akmod-nvidia-470xx-3:470.199.02-1.fc38.x86_64          1/6 
  Verifying        : kmod-nvidia-470xx-6.4.12-200.fc38.x86_64-3:470.199.0   2/6 
  Verifying        : nvidia-settings-470xx-3:470.199.02-1.fc38.x86_64       3/6 
  Verifying        : xorg-x11-drv-nvidia-470xx-3:470.199.02-1.fc38.x86_64   4/6 
  Verifying        : xorg-x11-drv-nvidia-470xx-kmodsrc-3:470.199.02-1.fc3   5/6 
  Verifying        : xorg-x11-drv-nvidia-470xx-libs-3:470.199.02-1.fc38.x   6/6 

Removed:
  akmod-nvidia-470xx-3:470.199.02-1.fc38.x86_64                                 
  kmod-nvidia-470xx-6.4.12-200.fc38.x86_64-3:470.199.02-1.fc38.x86_64           
  nvidia-settings-470xx-3:470.199.02-1.fc38.x86_64                              
  xorg-x11-drv-nvidia-470xx-3:470.199.02-1.fc38.x86_64                          
  xorg-x11-drv-nvidia-470xx-kmodsrc-3:470.199.02-1.fc38.x86_64                  
  xorg-x11-drv-nvidia-470xx-libs-3:470.199.02-1.fc38.x86_64                     

Complete!
[romka@fedora ~]$ 
[romka@fedora ~]$ dnf repolist
repo id                                        repo name
copr:copr.fedorainfracloud.org:phracek:PyCharm Copr repo for PyCharm owned by phracek
fedora                                         Fedora 38 - x86_64
fedora-cisco-openh264                          Fedora 38 openh264 (From Cisco) - x86_64
fedora-modular                                 Fedora Modular 38 - x86_64
google-chrome                                  google-chrome
rpmfusion-free                                 RPM Fusion for Fedora 38 - Free
rpmfusion-free-updates                         RPM Fusion for Fedora 38 - Free - Updates
rpmfusion-nonfree                              RPM Fusion for Fedora 38 - Nonfree
rpmfusion-nonfree-nvidia-driver                RPM Fusion for Fedora 38 - Nonfree - NVIDIA Driver
rpmfusion-nonfree-steam                        RPM Fusion for Fedora 38 - Nonfree - Steam
rpmfusion-nonfree-updates                      RPM Fusion for Fedora 38 - Nonfree - Updates
updates                                        Fedora 38 - x86_64 - Updates
updates-modular                                Fedora Modular 38 - x86_64 - Updates
[romka@fedora ~]$ 

UPD
The installation:

[romka@fedora ~]$ sudo dnf install nvidia-gpu-firmware
[sudo] password for romka: 
Last metadata expiration check: 0:41:10 ago on Mon 28 Aug 2023 09:53:21 PM EEST.
Dependencies resolved.
================================================================================
 Package                  Arch        Version                Repository    Size
================================================================================
Installing:
 nvidia-gpu-firmware      noarch      20230804-153.fc38      updates      1.2 M

Transaction Summary
================================================================================
Install  1 Package

Total download size: 1.2 M
Installed size: 1.2 M
Is this ok [Y/n]: y
Downloading Packages:
nvidia-gpu-firmware-20230804-153.fc38.noarch.rp 569 kB/s | 1.2 MB     00:02    
--------------------------------------------------------------------------------
Total                                           363 kB/s | 1.2 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : nvidia-gpu-firmware-20230804-153.fc38.noarch           1/1 
  Running scriptlet: nvidia-gpu-firmware-20230804-153.fc38.noarch           1/1 
  Verifying        : nvidia-gpu-firmware-20230804-153.fc38.noarch           1/1 

Installed:
  nvidia-gpu-firmware-20230804-153.fc38.noarch                                  

Complete!

Ok, the old drivers have been removed and the proper repos are seen. Now to make the card visible.

1 Like

Here you can see 2 GPUs

[romka@fedora ~]$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M (rev a1)
[romka@fedora ~]$ 

Just removed and installed what you said, and then checked again the output from lspci

Ok, then a proper install should be possible with
sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

Wait at least 5 minutes after the install then verify the modules are installed with dnf list installed kmod-nvidia-$(uname -r) If that returns the package name and version as already installed then reboot

The current driver version from rpmfusion should be 535.98.

1 Like

output from sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda

[romka@fedora ~]$ sudo dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
[sudo] password for romka: 
Last metadata expiration check: 0:51:11 ago on Mon 28 Aug 2023 09:53:21 PM EEST.
Dependencies resolved.
================================================================================
 Package           Arch   Version         Repository                       Size
================================================================================
Installing:
 akmod-nvidia      x86_64 3:535.98-1.fc38 rpmfusion-nonfree-nvidia-driver  40 k
 xorg-x11-drv-nvidia-cuda
                   x86_64 3:535.98-2.fc38 rpmfusion-nonfree-nvidia-driver 1.8 M
Installing dependencies:
 egl-gbm           x86_64 1.1.0-4.fc38    fedora                           20 k
 nvidia-persistenced
                   x86_64 3:535.98-1.fc38 rpmfusion-nonfree-nvidia-driver  35 k
 nvidia-settings   x86_64 3:535.98-1.fc38 rpmfusion-nonfree-nvidia-driver 1.6 M
 opencl-filesystem noarch 1.0-17.fc38     fedora                          7.4 k
 xorg-x11-drv-nvidia
                   x86_64 3:535.98-2.fc38 rpmfusion-nonfree-nvidia-driver 159 M
 xorg-x11-drv-nvidia-cuda-libs
                   x86_64 3:535.98-2.fc38 rpmfusion-nonfree-nvidia-driver  40 M
 xorg-x11-drv-nvidia-kmodsrc
                   x86_64 3:535.98-2.fc38 rpmfusion-nonfree-nvidia-driver  47 M
 xorg-x11-drv-nvidia-libs
                   x86_64 3:535.98-2.fc38 rpmfusion-nonfree-nvidia-driver  65 M
Installing weak dependencies:
 xorg-x11-drv-nvidia-power
                   x86_64 3:535.98-2.fc38 rpmfusion-nonfree-nvidia-driver 200 k

Transaction Summary
================================================================================
Install  11 Packages

Total download size: 314 M
Installed size: 745 M
Is this ok [Y/n]: y
Downloading Packages:
(1/11): nvidia-persistenced-535.98-1.fc38.x86_6 108 kB/s |  35 kB     00:00    
(2/11): akmod-nvidia-535.98-1.fc38.x86_64.rpm   109 kB/s |  40 kB     00:00    
(3/11): egl-gbm-1.1.0-4.fc38.x86_64.rpm          47 kB/s |  20 kB     00:00    
(4/11): opencl-filesystem-1.0-17.fc38.noarch.rp  11 kB/s | 7.4 kB     00:00    
(5/11): xorg-x11-drv-nvidia-power-535.98-2.fc38 193 kB/s | 200 kB     00:01    
(6/11): nvidia-settings-535.98-1.fc38.x86_64.rp 189 kB/s | 1.6 MB     00:08    
(7/11): xorg-x11-drv-nvidia-cuda-535.98-2.fc38. 143 kB/s | 1.8 MB     00:12    
(8/11): xorg-x11-drv-nvidia-cuda-libs-535.98-2. 215 kB/s |  40 MB     03:09    
(9/11): xorg-x11-drv-nvidia-libs-535.98-2.fc38. 285 kB/s |  65 MB     03:52    
(10/11): xorg-x11-drv-nvidia-kmodsrc-535.98-2.f 204 kB/s |  47 MB     03:54    
(11/11): xorg-x11-drv-nvidia-535.98-2.fc38.x86_ 410 kB/s | 159 MB     06:36    
--------------------------------------------------------------------------------
Total                                           808 kB/s | 314 MB     06:37     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : xorg-x11-drv-nvidia-cuda-libs-3:535.98-2.fc38.x86_    1/11 
  Installing       : xorg-x11-drv-nvidia-kmodsrc-3:535.98-2.fc38.x86_64    2/11 
  Installing       : nvidia-persistenced-3:535.98-1.fc38.x86_64            3/11 
  Running scriptlet: nvidia-persistenced-3:535.98-1.fc38.x86_64            3/11 
  Installing       : opencl-filesystem-1.0-17.fc38.noarch                  4/11 
  Installing       : egl-gbm-1.1.0-4.fc38.x86_64                           5/11 
  Installing       : xorg-x11-drv-nvidia-libs-3:535.98-2.fc38.x86_64       6/11 
  Installing       : akmod-nvidia-3:535.98-1.fc38.x86_64                   7/11 
  Running scriptlet: akmod-nvidia-3:535.98-1.fc38.x86_64                   7/11 
  Installing       : nvidia-settings-3:535.98-1.fc38.x86_64                8/11 
  Installing       : xorg-x11-drv-nvidia-power-3:535.98-2.fc38.x86_64      9/11 
  Running scriptlet: xorg-x11-drv-nvidia-power-3:535.98-2.fc38.x86_64      9/11 
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-hibernate.service → /usr/lib/systemd/system/nvidia-hibernate.service.
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-powerd.service → /usr/lib/systemd/system/nvidia-powerd.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-resume.service → /usr/lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-hibernate.service.wants/nvidia-resume.service → /usr/lib/systemd/system/nvidia-resume.service.
Created symlink /etc/systemd/system/systemd-suspend.service.wants/nvidia-suspend.service → /usr/lib/systemd/system/nvidia-suspend.service.

  Running scriptlet: xorg-x11-drv-nvidia-3:535.98-2.fc38.x86_64           10/11 
  Installing       : xorg-x11-drv-nvidia-3:535.98-2.fc38.x86_64           10/11 
  Running scriptlet: xorg-x11-drv-nvidia-3:535.98-2.fc38.x86_64           10/11 
  Installing       : xorg-x11-drv-nvidia-cuda-3:535.98-2.fc38.x86_64      11/11 
  Running scriptlet: akmod-nvidia-3:535.98-1.fc38.x86_64                  11/11 
  Running scriptlet: xorg-x11-drv-nvidia-cuda-3:535.98-2.fc38.x86_64      11/11 
  Verifying        : egl-gbm-1.1.0-4.fc38.x86_64                           1/11 
  Verifying        : opencl-filesystem-1.0-17.fc38.noarch                  2/11 
  Verifying        : akmod-nvidia-3:535.98-1.fc38.x86_64                   3/11 
  Verifying        : nvidia-persistenced-3:535.98-1.fc38.x86_64            4/11 
  Verifying        : nvidia-settings-3:535.98-1.fc38.x86_64                5/11 
  Verifying        : xorg-x11-drv-nvidia-3:535.98-2.fc38.x86_64            6/11 
  Verifying        : xorg-x11-drv-nvidia-cuda-3:535.98-2.fc38.x86_64       7/11 
  Verifying        : xorg-x11-drv-nvidia-cuda-libs-3:535.98-2.fc38.x86_    8/11 
  Verifying        : xorg-x11-drv-nvidia-kmodsrc-3:535.98-2.fc38.x86_64    9/11 
  Verifying        : xorg-x11-drv-nvidia-libs-3:535.98-2.fc38.x86_64      10/11 
  Verifying        : xorg-x11-drv-nvidia-power-3:535.98-2.fc38.x86_64     11/11 

Installed:
  akmod-nvidia-3:535.98-1.fc38.x86_64                                           
  egl-gbm-1.1.0-4.fc38.x86_64                                                   
  nvidia-persistenced-3:535.98-1.fc38.x86_64                                    
  nvidia-settings-3:535.98-1.fc38.x86_64                                        
  opencl-filesystem-1.0-17.fc38.noarch                                          
  xorg-x11-drv-nvidia-3:535.98-2.fc38.x86_64                                    
  xorg-x11-drv-nvidia-cuda-3:535.98-2.fc38.x86_64                               
  xorg-x11-drv-nvidia-cuda-libs-3:535.98-2.fc38.x86_64                          
  xorg-x11-drv-nvidia-kmodsrc-3:535.98-2.fc38.x86_64                            
  xorg-x11-drv-nvidia-libs-3:535.98-2.fc38.x86_64                               
  xorg-x11-drv-nvidia-power-3:535.98-2.fc38.x86_64                              

Complete!
[romka@fedora ~]$ 

dnf list installed kmod-nvidia-$(uname -r)

[romka@fedora ~]$ dnf list installed kmod-nvidia-$(uname -r)
Installed Packages
kmod-nvidia-6.4.12-200.fc38.x86_64.x86_64     3:535.98-1.fc38      @@commandline
[romka@fedora ~]$ 

Is everything ok? Should I reboot system?

I followed the instructions given on the forum, and after the first reboot, everything was working fine. However, after the second reboot, the error reappeared. I’m not sure why this happened despite following the steps.

Additionally, I would appreciate some guidance on how to switch graphics correctly, preferably without using the terminal.

Did the reboot work as expected?
What is the output of lsmod | grep nvidia?

If the nvidia modules loaded and are shown there, then that part is solved.

Now on to exactly what you last asked.

  1. If you wish to use the nvidia gpu with both x11 and wayland and to switch between the gpus for certain apps then nothing more needs to be done.
  2. If you wish to use the nvidia gpu exclusively ( as I do ! ) then step 8 at this link tells how to do that. The only caveat is that it only works when using x11. X11 is more that adequate for my desktop, including gaming.
    How to Set Nvidia as Primary GPU on Optimus-based Laptops :: Fedora Docs

Switching between gpus is very simple on most of the fedora spins.
The default is the iGPU (intel on your machine) but when you wish to use the dGPU (nvidia) a right click on the launch icon gives the option to use the dedicated gpu. This is all that is required.

As long as you have not set the nvidia as primary gpu the selection works in both wayland and x11 Desktops.

1 Like

I’m a newbie and I have no experience with X11 and Wayland settings, so I use the system as it comes “out of the box.” Yesterday evening, after a reboot, everything was working fine. However, this morning I encountered the same error again.

I installed the GPU profile selector extension to try switching between graphics profiles. When I choose integrated graphics (Intel) and reboot, I get an error. But when I choose discrete graphics (Nvidia), the error appeared only once.

I should also note that the command you provided didn’t show anything when I had Intel graphics enabled, but when I switched to Nvidia, it displayed a result.
lsmod | grep nvidia

[romka@fedora ~]$ lsmod | grep nvidia
nvidia_drm             94208  1
nvidia_modeset       1556480  1 nvidia_drm
nvidia_uvm           3493888  0
nvidia              62656512  17 nvidia_uvm,nvidia_modeset
video                  77824  3 asus_wmi,i915,nvidia_modeset
[romka@fedora ~]$ 

To use xorg before you type your password on the login screen click the gear in the bottom right and select gnome on xorg.

1 Like

That is to be expected. If the kernel does not see the nvidia gpu then it cannot load the drivers and would not show a result.

If you wish to switch back and forth then there are likely to be glitches since fedora does not normally do so – you seem to be using a 3rd party app to control the GPUs and it is quite possible that there are issues introduced by doing so.

I would suggest leaving both GPUs active (remove envycontrol) and merely select which is used for your apps at the time the app is launched. Envycontrol seems to work at very near the kernel level and prevents the kernel seeing or loading drivers for the nvidia card. We have seen several cases where a user had the nvidia gpu disabled (sometimes in bios) and it caused other problems for the system as well.

Also note that anytime the nvidia drivers are not loaded you should see the message in the title since that failure is the cause of the message.

1 Like

I understand. So, please advise me on how to remove envycontrol and all its data. Also, I attempted to install the asusctl program from this website (ASUS NoteBook Linux). What would you recommend, should I remove it as well? Although I believe I should. The only thing that slightly concerns me is that the fans are running constantly. Even when I’m watching movies or browsing the web. I would like to fix this and make the integrated graphics the default option. I don’t use the laptop for heavy tasks where the discrete graphics card is needed. Just so you know, it’s not something that can be turned off in BIOS.

Additionally, I haven’t mentioned it before, but I’ve noticed that the screen flickers during Fedora startup. Here’s how it happens: I press the power button and the laptop logo appears. After a few seconds, the screen goes black briefly and then comes back on with the Fedora logo. Is this normal?

Thank you for your assistance.

yes that is normal.

I don’t suspect envy control to interfere, but the mode should probably be the default, which appears to be hybrid. When set to internal or nvidia it does definitely interfere with the default config. From reading the documents it would seem that when setting the mode to hybrid that app allows normal default operation without doing any customization.

This is the link I read for info about that tool

and from that it seems there are 3 modes available
Integrated, Hybrid, and Nvidia

1 Like