Bug 470062 - Desktop freezes for 5-10 seconds after wake up from suspend
Summary: Desktop freezes for 5-10 seconds after wake up from suspend
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (other bugs)
Version First Reported In: 5.27.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-20 20:31 UTC by zvova7890
Modified: 2025-09-02 20:50 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zvova7890 2023-05-20 20:31:53 UTC
I faced this problem for a very long time, but experiencing till present day. I can't understand what is this.

1. Wake up PC from suspend
2. Monitor lights up
3. Desktop appears, but sometimes frozen
4. Application continues to work, mouse cursor working too. It seems all working but not rendering
5. Switching to tty console and ret back doesn't help, only wait for some time and desktop starting work as usual

Any idea? Killing plasmashell seems doesn't help. This is not stable reproducible. I can't just put PC into sleep and get freeze after wake up. It more happens by itself. When I leave PC and it going to sleep themselves. 
I'm not using lock-screen after wakup(maybe it's important). It is on X11 session, I can't remember this on wayland session. To be fair, I can't use wayland session for a long time to catch the problem, because wayland is not useful for me at the current state.
No useful logs from kernel or KDE or Xorg. Nothing special. 
I'm using xf86-video-amdgpu(not modeset).

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.2.11-zen1-1-zen-dirty (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i7-11700 @ 2.50GHz
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 6800 XT
Manufacturer: ASUS
Comment 1 zvova7890 2023-05-20 21:24:17 UTC
BTW, killall kwin_x11 seems helps
Comment 2 sp 2024-01-20 16:46:35 UTC
I too have a similar problem.
But in my case , pc doesn't need to go to sleep only need the monitor to turn off for 5 minutes of unused time (that's what I've set it to).
After coming out of that, the same symptoms happen.  Reproducible if waking up monitor after a longer period of it being turned off.

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.113.0
Qt Version: 5.15.11
Kernel Version: 6.5.0-14-generic (64-bit)
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 124.9 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X670E AORUS MASTER
System Version: -CF
Comment 3 zvova7890 2024-01-20 18:02:25 UTC
I also saw this during DPMS. Eventually, I changed my monitor and the problem was magically gone. I used DP connection with VRR enabled.
Comment 4 Tonkku 2024-11-21 10:56:55 UTC
This is still an issue and has only gotten more severe over time. I am now experiencing permanent freezes. They used to only be permanent if I shook my mouse right as the timeout locked the screen. Freezes most commonly occur if I let the timeout do its thing but sometimes can just happen randomly with no explanation. I have no choice but to force shut down if this occurs.
Comment 5 Marc 2025-09-02 16:49:48 UTC
I experience a similar behavior. Looking at journactl -b after waking up from suspends shows this line:
kwin_wayland_drm: The main thread was hanging temporarily!

And the timestamp seems to match the time that the system is unresponsive.
I also have a monitor connected through DP with VRR (Dell AW3423DWF).
Using Intel Integrated graphics.