Shutdown/restart hangs on black screen when dGPU is active — missing NVIDIA shutdown configuration
System Details
- OS: Omarchy 3.8.0
- Kernel: Linux 7.0.3-arch1-2
- WM: Hyprland 0.54.3 (Wayland)
- Machine: Lenovo LOQ 15IAX9 (83GS)
- CPU: Intel Core i5-12450HX (8+4 cores)
- dGPU: NVIDIA GeForce RTX 2050 — driver 595.71.05
- iGPU: Intel UHD Graphics (Alder Lake-S)
What's Wrong?
Shutdown and restart hang on a black screen when the NVIDIA dGPU is active. The system never completes a clean shutdown and requires a force power-off. The issue does not occur when running on iGPU only.
Steps to Reproduce
- Enable the discrete NVIDIA GPU (toggle dGPU active)
- Use the system normally under Hyprland
- Attempt shutdown or restart
- System hangs on black screen indefinitely
Root Cause
journalctl -b -1 shows a kernel NULL pointer dereference in the
nvidia-drm module at shutdown, triggered because Hyprland is SIGKILLed
before the NVIDIA driver unloads cleanly:
[email protected]: State 'stop-sigterm' timed out. Killing.
[email protected]: State 'stop-sigterm' timed out. Killing.
[drm:nv_drm_master_drop [nvidia_drm]] ERROR [nvidia-drm]
nv_drm_atomic_helper_disable_all failed with error code -22
BUG: kernel NULL pointer dereference, address: 0000000000000040
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not present page
nvidia-persistenced[6760]: device 0000:01:00.0 - failed to open
Related Issues
- #5724 — Hyprland crashes on charger unplug (same hybrid GPU setup)
May 10 14:14:19 omarchy systemd-tpm2-setupl594]: The TPM's NV index space is exhausted, unable to allocate NvPCR 'verity': No space left on device
May 10 14:14:19 omarchy systemd-tpm2-setup[697]: The TPM's NV index space is exhausted, unable to allocate NvPCR 'verity': No space left on device
😄
After further testing, the shutdown hang appears to have been a race condition — clean shutdowns are working now without any changes on my end. The nvidia-drm NULL pointer dereference no longer appears in the journal.
Will reopen if it reproduces consistently. Thanks for looking into it!