Help Configure NVidia Drivers on Dual Boot Laptop

Hey there,

I have an ASUS ROG laptop with dual SSDs. I have dual-booting working fine. I’m running a fully patched Fedora 37 on one drive and Windows 11 on the other.

The problem is trying to get the NVidia proprietary drivers working under Fedora. It looks like I need to disable Secure Boot, but won’t that make my Windows partition quit working?

I’m sure there is a good blog somewhere that walks me through this process. If someone could point me in the right direction, I would really appreciate it.

Here are the specs:

1 Like

Signing the kernel module and enabling MOK to allow it to be loaded is relatively simple.
The complex way to do that is here.

A much simpler way is here.
https://rpmfusion.org/Howto/Secure%20Boot?highlight=(\bCategoryHowto\b)

The caveat with either method is that once the kernel modules for a particular kernel have been built before the signing key is created and loaded then there is no way to directly sign the already compiled modules.

The fix is to remove the modules then recompile them. Very easy in a 3 step process with the packages installed from rpmfusion. All these steps need to be done with sudo or as root.

  1. follow the 2 steps to create the key and enroll it in MOK
# To create the self generated key and certificate:
/usr/sbin/kmodgenca
# To import the key, the command will ask for a password to protect the key
# You will have to enter this password during the special EFI window
mokutil --import /etc/pki/akmods/certs/public_key.der
  1. dnf remove *nvidia* --exclude=nvidia-gpu-firmware which will remove all the nvidia packages (and maybe more) This is not an issue since the next step will reinstall the needed packages and recompile the modules.

  2. dnf install akmod-nvidia xorg-x11-drv-nvidia-cuda
    This step reinstalls all the needed packages and recompiles the new modules with the new signing key created in step 1.

  3. reboot after about a 5 minute or so wait for the modules to be completely rebuilt.
    This boot should now load the signed kernel modules.
    The bios screen for this boot will bring up the special EFI MOK screen noted in step 1 where your chosen password is needed to load and activate the key you just generated.

So, when I follow those steps, I still get a message that the NVidia module is missing and falling back to nouveau. Then the GPU selector extension says that the dedicated GPU is off.

Ok, now I would like to have you reboot. Shortly after the boot finishes post the output of dmesg | grep -iE 'secure|nvidia|nouveau', dnf list installed *nvidia*, and inxi -Fzxx. Then add sudo ls -l /etc/pki/akmods/certs and sudo ls -l /etc/pki/akmods/private

dmesg:

[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
[    0.000000] secureboot: Secure boot disabled
[    0.004153] secureboot: Secure boot disabled
[    0.052807] Kernel command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
[    2.171392] sdhci: Secure Digital Host Controller Interface driver
[    3.379788] amdgpu 0000:07:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   15.284789] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input33
[   15.284836] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input34
[   15.284884] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input35
[   15.284930] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input36
[   15.284982] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input37

dnf list:

akmod-nvidia.x86_64                                                       3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
kmod-nvidia-6.0.15-300.fc37.x86_64.x86_64                                 3:525.60.11-1.fc37                                  @@commandline                   
nvidia-settings.x86_64                                                    3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-cuda-libs.x86_64                                      3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                                        3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                                             3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-libs.x86_64                                           3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-power.x86_64                                          3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver

inxi

System:
  Kernel: 6.0.15-300.fc37.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.38-25.fc37 Desktop: GNOME v: 43.2 tk: GTK v: 3.24.36 wm: gnome-shell
    dm: GDM Distro: Fedora release 37 (Thirty Seven)
Machine:
  Type: Laptop System: ASUSTeK product: ROG Zephyrus G15 GA503RM_GA503RM
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: GA503RM v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: GA503RM.311 date: 10/07/2022
Battery:
  ID-1: BAT1 charge: 80.0 Wh (100.0%) condition: 80.0/90.2 Wh (88.7%)
    volts: 17.0 min: 15.9 model: ASUS A32-K55 serial: N/A status: full
CPU:
  Info: 8-core model: AMD Ryzen 9 6900HS with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 3+ rev: 1 cache: L1: 512 KiB L2: 4 MiB L3: 16 MiB
  Speed (MHz): avg: 1088 high: 4136 min/max: 400/4935 boost: enabled cores:
    1: 400 2: 400 3: 4136 4: 400 5: 1446 6: 400 7: 400 8: 400 9: 1447 10: 1442
    11: 1448 12: 1426 13: 400 14: 400 15: 1442 16: 1432 bogomips: 105400
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Rembrandt [Radeon 680M] vendor: ASUSTeK driver: amdgpu
    v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4, DP-5, DP-6, DP-7, DP-8 bus-ID: 07:00.0
    chip-ID: 1002:1681 temp: 35.0 C
  Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 5-1:2 chip-ID: 13d3:56eb
  Display: x11 server: X.Org v: 1.20.14 with: Xwayland v: 22.1.7
    compositor: gnome-shell driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96
  Monitor-1: eDP-1 mapped: eDP model: ChiMei InnoLux 0x1540 res: 2560x1440
    dpi: 189 diag: 394mm (15.5")
  API: OpenGL v: 4.6 Mesa 22.3.1 renderer: AMD Radeon Graphics (rembrandt
    LLVM 15.0.6 DRM 3.48 6.0.15-300.fc37.x86_64) direct render: Yes
Audio:
  Device-1: AMD Rembrandt Radeon High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 07:00.1 chip-ID: 1002:1640
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: ASUSTeK
    driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 07:00.5 chip-ID: 1022:15e2
  Device-3: AMD Family 17h/19h HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 07:00.6 chip-ID: 1022:15e3
  Sound API: ALSA v: k6.0.15-300.fc37.x86_64 running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.63 running: yes
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    pcie: speed: 5 GT/s lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:8125
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: MEDIATEK vendor: AzureWave driver: mt7921e v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0 chip-ID: 14c3:7922
  IF: wlp4s0 state: up mac: <filter>
Bluetooth:
  Device-1: IMC Networks Wireless_Device type: USB driver: btusb v: 0.8
    bus-ID: 3-3:3 chip-ID: 13d3:3568
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Drives:
  Local Storage: total: 1.82 TiB used: 98.17 GiB (5.3%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 1TB
    size: 931.51 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 36.9 C
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 17.9 C
Partition:
  ID-1: / size: 897.45 GiB used: 97.8 GiB (10.9%) fs: xfs dev: /dev/dm-1
    mapped: jarvis-root
  ID-2: /boot size: 960 MiB used: 363.9 MiB (37.9%) fs: xfs
    dev: /dev/nvme0n1p1
  ID-3: /boot/efi size: 598.8 MiB used: 17.4 MiB (2.9%) fs: vfat
    dev: /dev/nvme0n1p2
Swap:
  ID-1: swap-1 type: partition size: 32 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/dm-2 mapped: jarvis-swap00
  ID-2: swap-2 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C mobo: N/A gpu: amdgpu temp: 36.0 C
  Fan Speeds (RPM): cpu: 2500
Info:
  Processes: 546 Uptime: 23h 20m Memory: 14.87 GiB used: 5.43 GiB (36.5%)
  Init: systemd v: 251 target: graphical (5) default: graphical Compilers:
  gcc: 12.2.1 Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 54
  Shell: Bash v: 5.2.9 running-in: gnome-terminal inxi: 3.3.24

certs

total 4
-rw-r-----. 1 root akmods 1502 Jan  1 11:23 jarvis-2017955653.der
lrwxrwxrwx. 1 root root     43 Jan  1 11:23 public_key.der -> /etc/pki/akmods/certs/jarvis-2017955653.der

private

total 4
-rw-r-----. 1 root akmods 3272 Jan  1 11:23 jarvis-2017955653.priv
lrwxrwxrwx. 1 root root     46 Jan  1 11:23 private_key.priv -> /etc/pki/akmods/private/jarvis-2017955653.priv

Something I’ve noticed is that the Nvidia card doesn’t show up with lspci

lspci | grep VGA
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c7)

You seem to be missing the firmware for your GPU. The firmware is required before the driver can properly load.
The dnf list installed command should have given something like

$ dnf list installed *nvidia*
Installed Packages
akmod-nvidia.x86_64                                            3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
kmod-nvidia-6.0.13-300.fc37.x86_64.x86_64                      3:525.60.11-1.fc37                      @@commandline                     
kmod-nvidia-6.0.14-300.fc37.x86_64.x86_64                      3:525.60.11-1.fc37                      @@commandline                     
kmod-nvidia-6.0.15-300.fc37.x86_64.x86_64                      3:525.60.11-1.fc37                      @@commandline                     
nvidia-gpu-firmware.noarch                                     20221214-145.fc37                       @updates                          
nvidia-modprobe.x86_64                                         3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
nvidia-persistenced.x86_64                                     3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
nvidia-settings.x86_64                                         3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
nvidia-xconfig.x86_64                                          3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia.x86_64                                     3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda.x86_64                                3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.i686                             3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-cuda-libs.x86_64                           3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-kmodsrc.x86_64                             3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.i686                                  3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates
xorg-x11-drv-nvidia-libs.x86_64                                3:525.60.11-1.fc37                      @rpmfusion-nonfree-updates

Please reinstall that package.
dnf install nvidia-gpu-firmware or dnf reinstall linux-firmware should handle that.
Then do a reboot.

Notice that I have several packages you do not.
You also likely will want cuda available, which can be installed with dnf install xorg-x11-drv-nvidia-cuda

So, I installed the missing packages and reinstalled anything that had previously been installed, rebooted, and am still seeing the error:

dnf list installed *nvidia*
Installed Packages
akmod-nvidia.x86_64                                                       3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
kmod-nvidia-6.0.15-300.fc37.x86_64.x86_64                                 3:525.60.11-1.fc37                                  @@commandline                   
nvidia-gpu-firmware.noarch                                                20221214-145.fc37                                   @updates                        
nvidia-modprobe.x86_64                                                    3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                                                3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                                                    3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
nvidia-xconfig.x86_64                                                     3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                                                3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-cuda.x86_64                                           3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686                                        3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64                                      3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                                        3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                                             3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-libs.x86_64                                           3:525.60.11-1.fc37                                  @rpmfusion-nonfree-updates      
xorg-x11-drv-nvidia-power.x86_64                                          3:525.60.11-1.fc37                                  @rpmfusion-nonfree-nvidia-driver

Now, please show and describe in detail the error you are seeing. This looks good on the surface.

Your earlier output from dmesg shows that secure boot is disabled so if windows boots it should not be an issue. If windows does not boot then you should be able to turn secure boot back on and the fedora drivers for nvidia should still load.

The original question was about enabling nvidia with secure boot, so I do not at this point understand exactly what you are now describing as a problem.

My apologies.

I actually didn’t realize secure boot had already been disabled. My original question also lacked some of the understanding of my setup that I’ve now been collecting.

The issue, at its core, is this: I have an integrated and dedicated GPU in my ASUS ROG. Fedora is not currently working with the Nvidia card. I know this from a couple signs:

  • During boot, I get a message on the splash screen that says “Nvidia driver not found, falling back to nouveau” (or something close to that)

  • The HDMI port on my laptop doesn’t detect when a cable is plugged in

  • Finally, in the Gnome Panel, it shows the dedicated GPU is off

I am trying to get my ASUS laptop to work with the Nvidia GPU.

Please run new the command dmesg | grep -iE 'nvidia|nouveau' and post the output.
Also lsmod | grep -iE 'nouveau|nvidia'.
Finally, the output of nvidia-smi and lspci | grep VGA

Seems that there may still be an issue with the driver.

dmesg

[    0.000000] Command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
[    0.052395] Kernel command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init
[   20.642524] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input33
[   20.642577] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input34
[   20.642621] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input35
[   20.642663] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input36
[   20.642706] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input37
[  331.129906] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input40
[  331.130004] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input41
[  331.130068] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input42
[  331.130151] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input43
[  331.130230] input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input44

lsmod

$ lsmod | grep -iE 'nouveau|nvidia'
$

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.

lspci

07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] (rev c7)

I just noticed that you said that.
Combined with all the earlier symptoms it is beginning to seem possible this may be a hardware issue.

  1. inxi does not show the nvidia.
  2. Depending upon the results of the lspci command asked for just above, if it does not show there then it definitely will seem hardware related.

Waiting on your response to make additional comments.

Its not a hardware issue as the HDMI port works fine under Windows.

I just saw your response and it definitely seems hardware. Nothing is able to identify the nvidia on the software side.

  1. The kernel command line seems proper.
  2. The firmware for that adapter is now installed, but does not seem to get loaded.
  3. Neither the nouveau or nvidia drivers are getting loaded.
  4. The lspci and inxi commands do not show the nvidia adapter.

At this point I would be ready to open up my laptop and reseat the GPU in case it is a bad connection.
Yours is

Machine:
  Type: Laptop System: ASUSTeK product: ROG Zephyrus G15 GA503RM_GA503RM
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: GA503RM v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: GA503RM.311 date: 10/07/2022

and mine is

Machine:
  Type: Laptop System: ASUSTeK product: ROG Strix G731GU_GL731GU v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: G731GU v: 1.0 serial: <superuser required> UEFI: American Megatrends
    v: G731GU.312 date: 02/19/2021

I have already had the case open and cleaned out the airflow passages so other than a lot of tiny screws to keep track of, opening it up is not really difficult.

The only other thing I can think of is that since yours has a date of 10/07/2022 on the firmware it is quite new. Possibly the hardware is too new to be supported by the kernel?
The specs seem to indicate it should have an RTX 3060 GPU and I know the 3060 is supported by the nvidia drivers, and that the current firmware levels also support it.

Is it possible the discrete nvidia GPU is disabled in the bios?

The output of dmesg seems to indicate that the sound chip in the GPU is loading the needed drivers; but the graphics driver is not loading.

Since you have now stated that windows uses the hdmi port properly, have you verified that windows is using the nvidia GPU or just the iGPU.

Could something have gotten blacklisted by mistake? I know at one point, I followed some instructions that suggested blacklisting Nouveau.

# ll /etc/modprobe.d/
total 80
-rw-r--r--. 1 root root 374 Dec 21 12:52 appletalk-blacklist.conf
-rw-r--r--. 1 root root 368 Dec 21 12:52 atm-blacklist.conf
-rw-r--r--. 1 root root 369 Dec 21 12:52 ax25-blacklist.conf
-rw-r--r--. 1 root root 375 Dec 21 12:52 batman-adv-blacklist.conf
-rw-r--r--. 1 root root 158 Nov 29 16:26 firewalld-sysctls.conf
-rw-r--r--. 1 root root 371 Dec 21 12:52 floppy-blacklist.conf
-rw-r--r--. 1 root root 358 Dec  6 16:32 kvm.conf
-rw-r--r--. 1 root root 373 Dec 21 12:52 l2tp_eth-blacklist.conf
-rw-r--r--. 1 root root 372 Dec 21 12:52 l2tp_ip-blacklist.conf
-rw-r--r--. 1 root root 377 Dec 21 12:52 l2tp_netlink-blacklist.conf
-rw-r--r--. 1 root root 373 Dec 21 12:52 l2tp_ppp-blacklist.conf
-rw-r--r--. 1 root root 747 Dec  8 08:54 lockd.conf
-rw-r--r--. 1 root root 371 Dec 21 12:52 netrom-blacklist.conf
-rw-r--r--. 1 root root 368 Dec 21 12:52 nfc-blacklist.conf
-rw-r--r--. 1 root root 101 Aug 24 02:20 nvdimm-security.conf
-rw-r--r--. 1 root root 368 Dec 21 12:52 rds-blacklist.conf
-rw-r--r--. 1 root root 369 Dec 21 12:52 rose-blacklist.conf
-rw-r--r--. 1 root root 369 Dec 21 12:52 sctp-blacklist.conf
-rw-r--r--. 1 root root 189 Jan  2 16:51 supergfxd.conf
-rw-r--r--. 1 root root   0 Sep 20 17:16 tuned.conf
-rw-r--r--. 1 root root 111 Dec  6 16:32 vhost.conf

I didn’t see any settings in the BIOS that indicated being able to disable the Nvidia GPU.

As for Windows, as far as I can tell, Nvidia is working fine under Windows. It seems like 11 uses a sort of hybrid mode out of the box.

Do I need to re-download the installer off of Nvidia’s website and run it? For instance NVIDIA-Linux-x86_64-525.60.11.run

Possibly it may be blacklisted.
I think it may also be the command line options.
You have this that was added by installing nvidia

rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init

At some point in testing with nvidia I added the following to the kernel command line
kvm.ignore_msrs=1 on one of my systems (not the laptop) so I wonder if maybe you could add that by editing the grub entry for your kernel while booting and see if it makes any difference.
(press e at the grub menu then add that into the line beginning with linux. Finish booting with ctrl-x)

If blacklisted it may be in one of those files listed, or it may be in a file under /etc/dracut.conf.d/ . If the nvidia driver were blacklisted it should tell you so when booting.

Check journalctl -b 0 | grep -iE 'nvidia|nouveau' to see if there are entries there not shown in dmesg.

I did come across this file: /etc/modprobe.d/supergfxd.conf:

# Automatically generated by supergfxd
blacklist nouveau
blacklist nvidia_drm
blacklist nvidia_uvm
blacklist nvidia_modeset
blacklist nvidia
alias nouveau off

options nvidia-drm modeset=1

journalctl

$ journalctl -b 0 | grep -iE 'nvidia|nouveau'
Jan 02 11:18:48 jarvis kernel: Command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet nvidia-drm.modeset=1
Jan 02 11:18:48 jarvis kernel: Kernel command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet nvidia-drm.modeset=1
Jan 02 11:18:48 jarvis dracut-cmdline[371]: Using kernel command line parameters:    BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet nvidia-drm.modeset=1
Jan 02 17:19:07 jarvis kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input33
Jan 02 17:19:07 jarvis kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input34
Jan 02 17:19:07 jarvis kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input35
Jan 02 17:19:07 jarvis kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input36
Jan 02 17:19:07 jarvis kernel: input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.1/0000:01:00.1/sound/card0/input37
Jan 02 17:19:08 jarvis systemd[1]: nvidia-fallback.service - Fallback to nouveau as nvidia did not load was skipped because of a failed condition check (ConditionKernelCommandLine=rd.driver.blacklist=nouveau).
Jan 02 17:19:10 jarvis systemd[1]: Starting nvidia-powerd.service - nvidia-powerd service...
Jan 02 17:19:10 jarvis /usr/bin/nvidia-powerd[2022]: nvidia-powerd version:1.0(build 1)
Jan 02 17:19:11 jarvis /usr/bin/nvidia-powerd[2022]: Allocate client failed 89
Jan 02 17:19:11 jarvis /usr/bin/nvidia-powerd[2022]: Failed to initialize RM Client
Jan 02 17:19:11 jarvis systemd[1]: nvidia-powerd.service: Main process exited, code=exited, status=1/FAILURE
Jan 02 17:19:11 jarvis systemd[1]: nvidia-powerd.service: Failed with result 'exit-code'.
Jan 02 17:19:11 jarvis systemd[1]: Failed to start nvidia-powerd.service - nvidia-powerd service.
Jan 02 17:19:11 jarvis 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=failed'
Jan 02 17:19:26 jarvis /usr/libexec/gdm-x-session[3637]: Kernel command line: BOOT_IMAGE=(hd0,gpt1)/vmlinuz-6.0.15-300.fc37.x86_64 root=/dev/mapper/jarvis-root ro resume=/dev/mapper/jarvis-swap00 rd.lvm.lv=jarvis/root rd.luks.uuid=luks-6088800e-6787-40e3-99b5-0e27943bf27f rd.lvm.lv=jarvis/swap00 rhgb quiet nvidia-drm.modeset=1
Jan 02 17:19:31 jarvis systemd[3598]: Started app-gnome-nvidia\x2dsettings\x2duser-4131.scope - Application launched by gnome-session-binary.
Jan 02 17:19:32 jarvis nvidia-settings-user.desktop[4131]: ERROR: NVIDIA driver is not loaded

Maybe its something weird going on with this software? asus-linux / asusctl · GitLab

That could certainly cause the driver to not load.

# lsmod | grep nvidia
nvidia_drm             73728  5
nvidia_modeset       1208320  7 nvidia_drm
nvidia_uvm           2904064  2
nvidia              56176640  395 nvidia_uvm,nvidia_modeset

Blacklisting like that affects every module for nvidia.

With a few quick searches I did not find what use that is or why it would be there, but it certainly would prevent loading any drivers for nvidia.

You could rename it to a backup, since the files in that directory that are named with a .conf ending are the ones processed. Or even move it somewhere else.
Then reboot and test to see if the drivers now load.

EDIT:
I just did an online search and it seems that is related to supergfxctl for suspending laptops that have trouble doing so with an nvidia gpu. It apparently disables the nvidia GPU and forces use of the iGPU only.

1 Like