Bug 484527

Summary: Sleep(suspend to ram) breaks the system under specific conditions
Product: [Plasma] kwin Reporter: andreas
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 6.0.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot

Description andreas 2024-03-26 14:14:29 UTC
Created attachment 167796 [details]
Screenshot

SUMMARY
On my laptop the system (kwin?) will sometimes break when going to sleep by closing the laptop lid and resuming under specific conditions: with an disabled external monitor attached via docking-station.
This does not happen reliably, I had to try several(3-4) times to reproduce it.
It never seems to happen when using the sleep button from the start menu, or when the external monitor is connected directly to the HDMI port of the laptop, the docking station seems to be a critical component.

STEPS TO REPRODUCE
1. In energy settings configure: When laptop lid is closed: Sleep; When sleep enter: Standby(suspend to ram)
2. Attach a docking station with one or more external displays connected
3. Disable the external displays in the display configuration
4. Close the laptop lid, wait a bit and reopen it
5. Repeat 4. if necessary 

OBSERVED RESULT
The system resumes and is responsive, apps open but the KDE desktop only shows a black screen. Some of the hotkeys still work, including the meta key to open the start menu. See attached screenshot.

EXPECTED RESULT
The system should resume normally, and the desktop should not show a black screen.

SOFTWARE/OS VERSIONS
Platform: EndeavourOS
KDE Plasma Version:  6.0.2-3

ADDITIONAL INFORMATION
AMD Ryzen 7840U with 740M integrated graphics, no dGPU
Comment 1 andreas 2024-03-26 14:21:58 UTC
On the screenshot the background is white, but on the screen it was actually black.