Bug 501168 - Screen flickering and artifacts when waking up from sleep with AMD GPU
Summary: Screen flickering and artifacts when waking up from sleep with AMD GPU
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-07 05:33 UTC by Andrea Ippolito
Modified: 2025-03-17 23:56 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Ippolito 2025-03-07 05:33:30 UTC
Hi,

this is related to:
https://gitlab.freedesktop.org/drm/amd/-/issues/4009

As per Mario's recommendation, I'm also opening a report here, although my layman instincts suggest that something's wrong on the AMD side of things.

My framework laptop 13 with an AMD 7840U chip behaves unpredictably after waking up from sleep. At times everything works fine, other times it spirals down into freezes that force me to power off and start from scratch. Those freezes are usually preceded by blocky artifacts or kwin animations repeating in loop, like minimizing a window.

System info:

Operating System: openSUSE Tumbleweed 20250304
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.3-1-default (64-bit) -> linux-firmware-amdgpu is 20250206
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon  780M Graphics
Memory: 30.7 GiB of RAM
Graphics Processor: AMD Radeon 780M
Manufacturer: Framework
Product Name: Laptop 13 (AMD Ryzen 7040Series)
System Version: A7

If you don't mind I would keep attachments in the aforementioned ticket on the freedesktop drm/amd project, to avoid duplicates. If you do mind, please let me know and I'll make sure to upload my attachments/logs in both tickets.

Thanks
Comment 1 Nate Graham 2025-03-07 16:48:43 UTC
Very very likely simply a driver bug.
Comment 2 Bug Janitor Service 2025-03-07 19:14:54 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7290
Comment 3 Vlad Zahorodnii 2025-03-12 09:27:04 UTC
Git commit 0b5dcb79fd876441c71e8807f28f4dd5af76b3dd by Vlad Zahorodnii, on behalf of Xaver Hugl.
Committed on 12/03/2025 at 09:11.
Pushed by vladz into branch 'master'.

backends/drm: add KWIN_DRM_FORCE_SCALING_MODE env var to force a scaling mode

M  +22   -1    src/backends/drm/drm_pipeline.cpp

https://invent.kde.org/plasma/kwin/-/commit/0b5dcb79fd876441c71e8807f28f4dd5af76b3dd
Comment 4 Bug Janitor Service 2025-03-12 09:35:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/7321
Comment 5 Andrea Ippolito 2025-03-12 09:49:01 UTC
Quick update, I installed the kernel-longterm package provided by my distro (tumbleweed) and the issue disappeared - just to confirm that this is indeed kernel/driver related. Now I'm on 6.12.18 and it's working fine.

More info here: https://forums.opensuse.org/t/lts-kernel-for-tumbleweed-available-how-to-switch-over/172815
Comment 6 Vlad Zahorodnii 2025-03-12 09:52:11 UTC
Git commit 2ed0012d1265622cb54e7d15d5b0ecefca4cad57 by Vlad Zahorodnii.
Committed on 12/03/2025 at 09:35.
Pushed by vladz into branch 'Plasma/6.3'.

backends/drm: add KWIN_DRM_FORCE_SCALING_MODE env var to force a scaling mode


(cherry picked from commit 0b5dcb79fd876441c71e8807f28f4dd5af76b3dd)

Co-authored-by: Xaver Hugl <xaver.hugl@gmail.com>

M  +22   -1    src/backends/drm/drm_pipeline.cpp

https://invent.kde.org/plasma/kwin/-/commit/2ed0012d1265622cb54e7d15d5b0ecefca4cad57