LUKS Prompt Blackscreen With Wayland and NVIDIA

Issue

I’m running Fedora 40 with a LUKS encrypted disk. My monitor is connected via HDMI to my NVIDIA GPU.

After booting, I only see a blackscreen. After then plugging the HDMI cable into my motherboard-internal display port, I can see the LUKS prompt.

Then I have to plug the HDMI cable back into my NVIDIA GPU and everything runs perfectly.

Observations

  • (1) When connecting two HDMI cables to my monitor in parallel (one into motherboard and one into NVIDIA GPU) I can see the LUKS prompt. But the some things don’t work anymore, e.g. Night Shift mode of Gnome and the windowing system is also glitching alot.
  • (2) I can enter the password “blindly” when the LUKS blackscreen appears. However, the Gnome login page will only appear after switching the HDMI cable to the motherboard and then back to the NVIDIA GPU once.
  • (3) The issue is the same, no matter if I do a “cold” boot or a reboot.
  • (4) If I remember correctly, I did not have this issue beforehand, with the same system, when running X11. Now I’m running Wayland. But I don’t want to switch back to X11, since I need Wayland for some things.
  • (5) I can boot without issues when connecting the HDMI cable to the motherboard display port from the start. But then, the NVIDIA drivers are not working. Then it doesn’t even use my NVIDIA GPU at all.

My System

I followed the official guide to install NVIDIA drivers: Howto/NVIDIA - RPM Fusion

My /etc/default/grub:

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.driver.blacklist=nouveau modprobe.blacklist=nouveau rd.luks.uuid=luks-a17bdb77-1fbf-42d0-b98e-ac122b6b0bff rhgb quiet nvidia-drm.modeset=1 rd.driver.blacklist=nouveau modprobe.blacklist=nouveau"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

neofetch --backend:

OS: Fedora Linux 40 (Workstation Edition) x86_64 
Kernel: 6.10.11-200.fc40.x86_64 
Uptime: 23 mins 
Packages: 2478 (rpm), 43 (flatpak) 
Shell: zsh 5.9 
Resolution: 3840x2160 
DE: GNOME 46.5 
WM: Mutter 
WM Theme: Adwaita 
Theme: Adwaita [GTK2/3] 
Icons: Adwaita [GTK2/3] 
Terminal: gnome-terminal 
CPU: AMD Ryzen 9 7950X (32) @ 5.881GHz 
GPU: AMD ATI 0c:00.0 Raphael 
GPU: NVIDIA GeForce RTX 4070 
Memory: 9806MiB / 63493MiB 

Boot Logs

journalctl --boot=-1: Boot Log 2024-10-06 · GitHub

Good news! I was able to fix it by disabling “Integrated Graphics” in the UEFI BIOS Utility.

For me, this option in the BIOS was under: Advanced → NB Configuration → Integrated Graphics. And I had to change it from Auto to Disabled.

1 Like

Happy it worked for you. Also really curious because it’s the opposite for me. For me the LUKS screen only works if I activate Optimus mode/integrated graphics on UEFI.

Thanks for sharing! So either enabling or disabling integrated graphics is the solution.