Bug 484527 - Sleep(suspend to ram) breaks the system under specific conditions
Summary: Sleep(suspend to ram) breaks the system under specific conditions
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.0.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-26 14:14 UTC by andreas
Modified: 2024-03-26 14:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot (1.29 MB, image/png)
2024-03-26 14:14 UTC, andreas
Details

Note You need to log in before you can comment on or make changes to this bug.
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.