Bug 460664

Summary: When waking up from stanby under Wayland, many graphical elements seem corrupted
Product: [Plasma] kwin Reporter: Sikal <sikeal>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: major CC: dans64, nate, xaver.hugl
Priority: NOR    
Version First Reported In: 5.27.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of the problem

Description Sikal 2022-10-18 15:54:44 UTC
Created attachment 153005 [details]
Example of the problem

SUMMARY
When a Wayland session is woken up from the majority of the graphical elements (text, icons, wallpaper, kickoff,..) seem to be totally corrupted and badly displayed as shown in the attached screenshot.
This problem also affects the lock screen.
From my observations this only concerns the Wayland session.
Disconnecting from the session solves the problem (also for the lock screen)

STEPS TO REPRODUCE
1. Put a Wayand session in standby
2. Wake up the system

OBSERVED RESULT
The majority of the graphical elements seem to be totally corrupted and badly displayed

EXPECTED RESULT
A normal display of graphical elements

SOFTWARE/OS VERSIONS
Windows: n/a
macOS: n/a
Linux/KDE Plasma: Linux 6.0.1.arch2-1 / KDE 5.26.0
(available in About System)
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99
Qt Version: 5.15.6

ADDITIONAL INFORMATION
I use an Nvidia GPU (GTX 1070)
Nvidia Driver Version: 520.56.06-3
Comment 1 Nate Graham 2022-10-18 19:14:40 UTC
Probably an NVIDIA GPU driver issue.
Comment 2 Sikal 2022-11-27 03:29:33 UTC
This problem was happening because NVreg_PreserveVideoMemoryAllocations=1 and NVreg_TemporaryFilePath=<pathofyourchoice> was not configured in /etc/modprobe.d/nvidia.conf.
Comment 3 dans64 2023-03-06 09:26:46 UTC
I'm also having this issue, but I have an old AMD APU (A10 5750M). I'm able to get around this by waiting a minute, switching to a different TTY then back to the the previous TTY that the laptop woke up on. Plasma 5.27.2, linux-zen 6.2.1, happens on both Mesa 23 and git on Arch Linux, and yes it only happen on the Wayland session.
Comment 4 Nate Graham 2023-03-06 15:47:31 UTC
Then it's a different issue. :)