https://bugs.kde.org/show_bug.cgi?id=521077

            Bug ID: 521077
           Summary: Intermittent black screen after resume when suspending
                    immediately after AC unplug (Fedora KDE Wayland, AMD
                    Phoenix + NVIDIA Hybrid
    Classification: Plasma
           Product: kwin
      Version First unspecified
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: xwayland
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Hardware:

* Lenovo Legion Slim 5 Gen 8 (16APH8)
* AMD Ryzen 7 7840HS (Phoenix)
* NVIDIA RTX 4060 Mobile
* Internal display driven by AMD iGPU (switcherooctl shows AMD as default GPU)
* Hybrid graphics enabled

Software:

* Fedora 44 KDE Spin
* Plasma 6.6.5 (Wayland)
* Kernel 7.0.10-201.fc44.x86_64
* NVIDIA 595.71.05 (RPM Fusion)

Problem:
The system intermittently resumes to a black screen after suspend. The issue
appears significantly easier to reproduce when suspending immediately after
unplugging AC power.

Reproduction:

1. Boot normally into Plasma Wayland.
2. Connect AC adapter.
3. Unplug AC adapter.
4. Immediately close the lid (or suspend manually).
5. Resume the system.

Observed Result:

* Display remains black after resume.
* Caps Lock and Num Lock LEDs continue to respond.
* System appears partially alive but graphical output is not restored.
* Issue does not occur consistently, but is reproducible often enough when
suspend is triggered immediately after AC removal.
* Waiting several seconds after unplugging AC before suspending greatly reduces
or eliminates the issue.

Expected Result:

* Plasma session and display should resume normally.

Additional Investigation:

* Initially suspected custom refresh-rate switching via PowerDevil, but the
issue persisted after removing all kscreen-doctor commands.
* NVIDIA runtime power management appears to function correctly
(runtime_status=suspended when idle).
* Internal display is driven by AMD iGPU, not NVIDIA.
* Suspend/resume works normally in most situations.

Relevant Log Snippets:

Suspend sequence:

```
PM: suspend entry (s2idle)
```

KWin / DRM related messages:

```
kwin_wayland: Failed to open drm node: "/dev/dri/card0"
kwin_wayland: Atomic modeset test failed! Permission denied
```

AMD GPU resume appears successful:

```
amdgpu: SMU is resuming...
amdgpu: SMU is resumed successfully!
```

Observations:
The issue appears to be a race condition related to suspend occurring
immediately after an AC power-state transition. Since Caps Lock and Num Lock
continue to function after resume, the kernel does not appear to be fully hung.
The failure seems to occur during restoration of the display/graphics stack
rather than during system wake-up itself.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to