Skip to content

Shutdown/reboot hangs on Wayland: nv_drm_atomic_commit "Flip event timeout on head 0" (610.43.02, RTX 3060) #1194

@ayozetr

Description

@ayozetr

Description

On every shutdown/reboot the machine frequently fails to power off completely (~19 out of 20 attempts). systemd finishes the entire shutdown (The system will power off now!), the screen loses signal and USB powers down, but the machine never reaches the final power-off — case fans and RGB stay on and I have to force-off with the power button. It is intermittent (~1 in 20 powers off correctly).

Note: this reproduces with both the open kernel module and the proprietary/closed module (610.43.02), so it may not be strictly specific to the open module — but I'm filing here since this repo is actively monitored. Same issue is tracked on the forum thread linked below.

System

GPU NVIDIA GeForce RTX 3060 (GA106), ASUS ROG Strix RTX 3060 V2 OC 12GB [10de:2504 / 1043:8818]
Driver 610.43.02 (open and proprietary, both affected)
OS CachyOS (Arch-based), kernel 7.0.11 (also 6.18.x LTS)
Desktop KDE Plasma 6, Wayland (kwin_wayland)
Board Ryzen 9 5900X, ASUS PRIME B550M-A (BIOS 3636, latest)

Kernel log at shutdown (always the same pattern)

systemd-logind: The system will power off now!
nvidia-modeset: WARNING: GPU:0: Lost display notification (0:0x00000000); continuing.
[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000b00] Flip event timeout on head 0
[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000b00] Flip event timeout on head 0
[drm:nv_drm_atomic_commit [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000b00] Flip event timeout on head 0

Data points that might help isolate the root cause

  1. The hang only happens when shutting down from a running Wayland session. Booting to multi-user.target (no graphical session) and running poweroff powers off cleanly 3/3 times. So the trigger is the GPU teardown of the Wayland compositor (kwin_wayland) during shutdown, not the platform/firmware.

  2. Setting nvidia_drm.fbdev=0 makes the "Flip event timeout" messages disappear completely, but the shutdown STILL hangs. This strongly suggests the flip timeout is a concurrent symptom, not the root cause — the actual hang is in the GPU teardown itself. At shutdown, kwin_wayland burns ~3 min of CPU and logs atomic commit failed: Permission denied before the hang.

  3. Unloading the NVIDIA modules right before poweroff (a /usr/lib/systemd/system-shutdown script running modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia) does not help either.

Ruled out (none of these fixed it)

  • BIOS update to latest + ErP Ready (S4+S5) enabled
  • acpi=force / ACPI tweaks
  • USB wakeup disabled for all controllers (/proc/acpi/wakeup)
  • NVMe APST (nvme_core.default_ps_max_latency_us=0)
  • KDE session restore disabled (loginMode=emptySession)
  • NVreg_PreserveVideoMemoryAllocations=0
  • Switching between the open and the proprietary kernel module (both hang identically)
  • nvidia_drm.fbdev=0 (removes the timeout messages but not the hang)

Related

nvidia-bug-report.log.gz

Happy to test patches or gather more logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions