Bug 434304

Summary: Cannot resume from suspend to RAM
Product: [Plasma] kwin Reporter: Sefa Eyeoglu <contact>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.21.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://bugzilla.kernel.org/show_bug.cgi?id=212293
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Sefa Eyeoglu 2021-03-11 22:16:30 UTC
SUMMARY
When running KWin on Wayland I can't resume from RAM anymore.
I isolated this to only happening when the screens are switched off by "Screen Energy Saving" before the suspend is happening.

STEPS TO REPRODUCE
* Login into Plasma/Wayland session
* Set Screen Energy Saving "Switch off after" to a low value like 1min
* Wait until the screen(s) get(s) switched off
* Run "sudo systemctl suspend" via SSH
* Try to wake 

OBSERVED RESULT
Computer does not wake from sleep. Fans turn on, kernel does not boot, as journalctl -b-1 only shows the point until suspend.

EXPECTED RESULT
Computer resumes from sleep.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.21.2
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.6-arch1-1
OS Type: 64-bit
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: Radeon RX Vega

ADDITIONAL INFORMATION
I am using a GIGABYTE Radeon RX Vega 56 and the amdgpu kernel driver.

I suspect a bug regarding KMS here. This might even be a kernel bug, though I only experience this bug with KWin on Wayland, never on X11.
Comment 1 Sefa Eyeoglu 2021-03-11 22:24:48 UTC
I should add that this issue occurs *naturally* on my desktop, as it goes to sleep after just 10minutes of inactivity.
Comment 2 Sefa Eyeoglu 2021-03-15 16:53:10 UTC
This is actually a kernel bug. Closing this.

https://bugzilla.kernel.org/show_bug.cgi?id=212293