HDMI not working properly on NVIDIA Optimus laptop

Hello, I am facing some issues with my Dell G15 laptop. When I reboot with a HDMI plugged, it doesn’t recognize the external monitor. If I reboot with the HDMI unplugged, and plug it after the boot was complete, it does recognize the external monitor.

Dell G15 5525 Ryzen 7 6800H RTX 3060

I followed this page for the driver installation: Making sure you're not a bot!

Here are the output of some commands I saw in other similar posts:

sudo dmesg | grep secure

[    0.000000] secureboot: Secure boot enabled
[    0.042018] secureboot: Secure boot enabled
[    7.396199] amdgpu 0000:34:00.0: amdgpu: SECUREDISPLAY: optional securedisplay ta ucode is not available

Note that I did put the auto generated code on the BIOS while installing the driver:

dnf list installed '*nvidia*'

Atualizando e carregando repositórios:
Repositórios carregados.
Pacotes instalados
akmod-nvidia.x86_64                                 3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.17.7-300.fc43.x86_64.x86_64           3:580.95.05-1.fc43 @commandline
nvidia-gpu-firmware.noarch                          20251021-1.fc43    0e44b8838a064239bd0106e9c9253add
nvidia-modprobe.x86_64                              3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                          3:580.95.05-1.fc43 <desconhecido>
nvidia-settings.x86_64                              3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                          3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64                     3:580.95.05-1.fc43 <desconhecido>
xorg-x11-drv-nvidia-cuda-libs.i686                  3:580.95.05-1.fc43 <desconhecido>
xorg-x11-drv-nvidia-cuda-libs.x86_64                3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64                  3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686                       3:580.95.05-1.fc43 <desconhecido>
xorg-x11-drv-nvidia-libs.x86_64                     3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64                    3:580.95.05-1.fc43 rpmfusion-nonfree-nvidia-driver

inxi -Fzxx

System:
  Kernel: 6.17.7-300.fc43.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: GNOME v: 49.1 tk: GTK v: 3.24.51 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 43 (Workstation Edition)
Machine:
  Type: Laptop System: Dell product: Dell G15 5525 v: 1.23.0
    serial: <superuser required> Chassis: type: 10 v: 1.23.0
    serial: <superuser required>
  Mobo: Dell model: 0HWH6N v: A02 serial: <superuser required> part-nu: 0B5E
    UEFI: Dell v: 1.23.0 date: 04/16/2025
Battery:
  ID-1: BAT1 charge: 62.9 Wh (96.6%) condition: 65.2/86 Wh (75.8%)
    volts: 12.58 min: 11.4 model: Simplo DELL 70N2F32 serial: <filter> charging:
    status: charging cycles: 221
CPU:
  Info: 8-core model: AMD Ryzen 7 6800H 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: 3138 min/max: 404/4787 boost: enabled cores: 1: 3138
    2: 3138 3: 3138 4: 3138 5: 3138 6: 3138 7: 3138 8: 3138 9: 3138 10: 3138
    11: 3138 12: 3138 13: 3138 14: 3138 15: 3138 16: 3138 bogomips: 102202
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M]
    vendor: Dell 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, Writeback-1 bus-ID: 34:00.0 chip-ID: 1002:1681 temp: 44.0 C
  Device-2: Microdia Integrated_Webcam_HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-4:3 chip-ID: 0c45:6a14
  Display: wayland server: Xwayland v: 24.1.9 compositor: gnome-shell
    driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: AU Optronics 0x5c9c res: 1920x1080 dpi: 142
    diag: 394mm (15.5")
  API: OpenGL v: 4.6 vendor: amd mesa v: 25.2.6 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon 680M (radeonsi rembrandt LLVM
    21.1.4 DRM 3.64 6.17.7-300.fc43.x86_64) device-ID: 1002:1681
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo gpu: nvidia-settings,nvidia-smi x11: xdriinfo,
    xdpyinfo, xprop, xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
    [Rembrandt/Strix] driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 34:00.1 chip-ID: 1002:1640
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor vendor: Dell
    driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 34:00.5 chip-ID: 1022:15e2
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: Dell driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 34:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.17.7-300.fc43.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.9 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: Realtek RTL8125 2.5GbE vendor: Dell driver: r8169 v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: 4000 bus-ID: 03:00.0 chip-ID: 10ec:8125
  IF: enp3s0 state: down mac: <filter>
  Device-2: MEDIATEK MT7921 802.11ax PCIe Wireless Network Adapter [Filogic
    330] vendor: Foxconn driver: mt7921e v: kernel pcie: speed: 5 GT/s
    lanes: 1 bus-ID: 04:00.0 chip-ID: 14c3:7961
  IF: wlp4s0 state: up mac: <filter>
Bluetooth:
  Device-1: Foxconn / Hon Hai MediaTek MT7921 Bluetooth driver: btusb v: 0.8
    type: USB rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 1-3:2 chip-ID: 0489:e0c8
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 22.6 GiB (4.7%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: KBG50ZNS512G NVMe 512GB
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 35.9 C
Partition:
  ID-1: / size: 474.35 GiB used: 21.93 GiB (4.6%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 1.9 GiB used: 672.1 MiB (34.5%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 474.35 GiB used: 21.93 GiB (4.6%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 51.0 C mobo: 42.0 C sodimm: 37.0 C gpu: amdgpu
    temp: 46.0 C
  Fan Speeds (rpm): cpu: 2100 mobo: 2300
Info:
  Memory: total: 16 GiB note: est. available: 14.85 GiB used: 4.7 GiB (31.7%)
  Processes: 444 Power: uptime: 26m wakeups: 0 Init: systemd v: 258
    default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 5 Compilers:
    gcc: 15.2.1 Shell: Bash v: 5.3.0 running-in: ptyxis-agent inxi: 3.3.39

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.

modinfo -F version nvidia

580.95.05

Any tips on how I can fix this?

Try running sudo akmods --rebuild --force and after that completes reboot.
The inxi output does not even show the nvidia gpu.

Also post the output of lspci -nnk | grep -iA3 vga so we can tell if the laptop even sees the nvidia gpu and what it is.

1 Like

Hey Jeff, thanks for the response.

I did the sudo akmods --rebuild --force and rebooted.

Then I ran the lspci -nnk | grep -iA3 vga and here are the results:

pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2560] (rev a1)
	Subsystem: Dell Device [1028:0b5f]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia
--
34:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev c8)
	Subsystem: Dell Device [1028:0b5e]
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

nvidia-smi now runs:

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.95.05              Driver Version: 580.95.05      CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   44C    P3             22W /   55W |      13MiB /   6144MiB |      5%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            3420      G   /usr/bin/gnome-shell                      2MiB |
+-----------------------------------------------------------------------------------------+

and inxi -Fzxx now displays the nvidia graphics card:

System:
  Kernel: 6.17.7-300.fc43.x86_64 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: GNOME v: 49.1 tk: GTK v: 3.24.51 wm: gnome-shell dm: GDM
    Distro: Fedora Linux 43 (Workstation Edition)
Machine:
  Type: Laptop System: Dell product: Dell G15 5525 v: 1.23.0
    serial: <superuser required> Chassis: type: 10 v: 1.23.0
    serial: <superuser required>
  Mobo: Dell model: 0HWH6N v: A02 serial: <superuser required> part-nu: 0B5E
    UEFI: Dell v: 1.23.0 date: 04/16/2025
Battery:
  ID-1: BAT1 charge: 59.8 Wh (91.8%) condition: 65.2/86 Wh (75.8%)
    volts: 11.87 min: 11.4 model: Simplo DELL 70N2F32 serial: <filter> charging:
    status: discharging cycles: 222
CPU:
  Info: 8-core model: AMD Ryzen 7 6800H 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: 1096 min/max: 404/4787 boost: enabled cores: 1: 1096
    2: 1096 3: 1096 4: 1096 5: 1096 6: 1096 7: 1096 8: 1096 9: 1096 10: 1096
    11: 1096 12: 1096 13: 1096 14: 1096 15: 1096 16: 1096 bogomips: 102208
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Dell
    driver: nvidia v: 580.95.05 arch: Ampere pcie: speed: 16 GT/s lanes: 8
    ports: active: none empty: HDMI-A-1,eDP-2 bus-ID: 01:00.0
    chip-ID: 10de:2560
  Device-2: Advanced Micro Devices [AMD/ATI] Rembrandt [Radeon 680M]
    vendor: Dell 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, Writeback-1 bus-ID: 34:00.0 chip-ID: 1002:1681 temp: 48.0 C
  Device-3: Microdia Integrated_Webcam_HD driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-4:3 chip-ID: 0c45:6a14
  Display: wayland server: Xwayland v: 24.1.9 compositor: gnome-shell
    driver: gpu: amdgpu display-ID: 0
  Monitor-1: eDP-1 model: AU Optronics 0x5c9c res: 1920x1080 dpi: 142
    diag: 394mm (15.5")
  API: OpenGL v: 4.6 vendor: amd mesa v: 25.2.6 glx-v: 1.4 es-v: 3.2
    direct-render: yes renderer: AMD Radeon 680M (radeonsi rembrandt LLVM
    21.1.4 DRM 3.64 6.17.7-300.fc43.x86_64) device-ID: 1002:1681
    display-ID: :0.0
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo gpu: nvidia-settings,nvidia-smi x11: xdriinfo,
    xdpyinfo, xprop, xrandr
Audio:
  Device-1: NVIDIA GA106 High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 8
    bus-ID: 01:00.1 chip-ID: 10de:228e
  Device-2: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
    [Rembrandt/Strix] driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 34:00.1 chip-ID: 1002:1640
  Device-3: Advanced Micro Devices [AMD] Audio Coprocessor vendor: Dell
    driver: snd_pci_acp6x v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 34:00.5 chip-ID: 1022:15e2
  Device-4: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    vendor: Dell driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
    bus-ID: 34:00.6 chip-ID: 1022:15e3
  API: ALSA v: k6.17.7-300.fc43.x86_64 status: kernel-api
  Server-1: PipeWire v: 1.4.9 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: Realtek RTL8125 2.5GbE vendor: Dell driver: r8169 v: kernel pcie:
    speed: 5 GT/s lanes: 1 port: 4000 bus-ID: 03:00.0 chip-ID: 10ec:8125
  IF: enp3s0 state: down mac: <filter>
  Device-2: MEDIATEK MT7921 802.11ax PCIe Wireless Network Adapter [Filogic
    330] vendor: Foxconn driver: mt7921e v: kernel pcie: speed: 5 GT/s
    lanes: 1 bus-ID: 04:00.0 chip-ID: 14c3:7961
  IF: wlp4s0 state: up mac: <filter>
Bluetooth:
  Device-1: Foxconn / Hon Hai MediaTek MT7921 Bluetooth driver: btusb v: 0.8
    type: USB rev: 2.1 speed: 480 Mb/s lanes: 1 bus-ID: 1-3:2 chip-ID: 0489:e0c8
  Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: <filter> bt-v: 5.3 lmp-v: 12
Drives:
  Local Storage: total: 476.94 GiB used: 22.59 GiB (4.7%)
  ID-1: /dev/nvme0n1 vendor: KIOXIA model: KBG50ZNS512G NVMe 512GB
    size: 476.94 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 35.9 C
Partition:
  ID-1: / size: 474.35 GiB used: 21.91 GiB (4.6%) fs: btrfs
    dev: /dev/nvme0n1p3
  ID-2: /boot size: 1.9 GiB used: 672.1 MiB (34.5%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-3: /boot/efi size: 598.8 MiB used: 19.3 MiB (3.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-4: /home size: 474.35 GiB used: 21.91 GiB (4.6%) fs: btrfs
    dev: /dev/nvme0n1p3
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 57.0 C mobo: 46.0 C sodimm: 37.0 C gpu: amdgpu
    temp: 49.0 C
  Fan Speeds (rpm): cpu: 0 mobo: 0
Info:
  Memory: total: 16 GiB note: est. available: 14.85 GiB used: 2.75 GiB (18.5%)
  Processes: 427 Power: uptime: 7m wakeups: 0 Init: systemd v: 258
    default: graphical
  Packages: pm: rpm pkgs: N/A note: see --rpm pm: flatpak pkgs: 5 Compilers:
    gcc: 15.2.1 Shell: Bash v: 5.3.0 running-in: ptyxis-agent inxi: 3.3.39

I did some testing, and after rebooting (with the HDMI plugged in), it still doesn’t recognize the screen and now nvidia-smi is showing “no devices were found”. The 3060 is still showing on inxi -Fzxx though.

Are any fast boot/startup options enabled in UEFI settings? Disable.

Otherwise try updating to 580.105.08
sudo dnf upgrade --enable-repo=rpmfusion-nonfree-updates-testing
Wait for a few minutes until akmods has finished building the new kernel modules before restarting.
check with rpm -qa kmod-nvidia-$(uname -r)
should print kmod-nvidia-6.17.7-300.fc43.x86_64-580.105.08-1.fc43.x86_64

I took a look on the BIOS but there were no options with fast boot or anything similar. I did disable Secure Boot though.

sudo dnf upgrade --enable-repo=rpmfusion-nonfree-updates-testing

Gave me an error saying that this repo does not exist:

Nenhum repositório correspondente para rpmfusion-nonfree-updates-testing. Adicione "--help" para mais informações sobre os argumentos.

rpmfusion pushed the new drivers to rpmfusion-nonfree-nvidia-driver
try sudo dnf upgrade --refresh

Hey Mark,

I upgraded the driver to 580.105.08:

Thu Nov 13 22:33:58 2025       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.105.08             Driver Version: 580.105.08     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 3060 ...    Off |   00000000:01:00.0 Off |                  N/A |
| N/A   58C    P0             27W /  121W |     293MiB /   6144MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            3476      G   /usr/bin/gnome-shell                      2MiB |
|    0   N/A  N/A            6499      G   ...share/Steam/ubuntu12_32/steam          2MiB |
|    0   N/A  N/A            6757      G   ./steamwebhelper                         34MiB |
|    0   N/A  N/A            6783      G   ...am/ubuntu12_64/steamwebhelper        208MiB |
+-----------------------------------------------------------------------------------------+

But unfortunately the HDMI problem still persists.

Some things that I noticed:

  • Sometimes while booting a message like “nvidia kernel modules not found. falling back to nouveau” appear
  • If I plug the HDMI after the boot, and the computer turn off the screen, it freezes
  • If I plug the HDMI after the boot, and turn off the computer, it freezes too

I did some testing with gaming (HDMI unplugged), and Optimus seems to be working.

I tested The Ascent on Ultra and managed to get around 100fps, so the driver seems to be working properly. The only issue is indeed the HDMI.

Here are some images of my BIOS settings, maybe I missed something:



I just disabled everything I could on the “security” tab of the BIOS, and it appears to be fixed.

I’ll keep monitoring, but I think I can close this thread.

Thanks @anotheruser and @computersavvy !