Bug 465403

Summary: Blank screen or flashing screen when resuming from sleep or hibernate or when TV has been off for a while
Product: [Plasma] kwin Reporter: sarvasana <kris>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash    
Priority: NOR    
Version: 5.26.5   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description sarvasana 2023-02-07 04:49:38 UTC
SUMMARY
Blank screen when resuming from sleep or hibernate or when TV has been off for a while

STEPS TO REPRODUCE
1.  Boot
2.  Login
3.  Sleep or Hibernate
4.  Wait for TV to go a sleep or switch off  (Samsung Neo QLED QN90B 43") 
5.  Resume
6.  You reached the failure state

OBSERVED RESULT
The screen is white or flickering between white and rendering the lock screen.
Login works. Typing in kwin_x11 --replace sometimes works and then the system can be used again.
Most of the times the system does not recover and a reboot is required.

I used KDE Connect to unlock and execute kwin_x11 --replace also.
This sometimes also works as a work arround.

EXPECTED RESULT
Rendering the lock screen normally and resume the system in a usable state.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  6.1.9-arch1-2 (64-bit)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 sarvasana 2023-02-07 04:50:38 UTC
I had the same results on Wayland by the way.
Comment 2 Vlad Zahorodnii 2023-02-07 09:01:49 UTC
The fact that restarting kwin_x11 doesn't help all the time and it also happens on wayland sounds like it's most likely a bug in the kernel.

If you use nvidia, try reporting the issue to nvidia developers; otherwise please report this issue upstream to kernel developers.
Comment 3 sarvasana 2023-02-07 09:36:27 UTC
CPU: AMD Ryzen 9 6900HX with Radeon Graphics (16) @ 3.300GHz 
GPU: AMD ATI Radeon 680M 

Will report upstream and will link both issues.
Comment 4 sarvasana 2023-02-07 09:43:44 UTC
Raised upstream at: 
https://bugs.archlinux.org/task/77418
Comment 5 sarvasana 2023-02-07 13:41:42 UTC
(In reply to Vlad Zahorodnii from comment #2)
> The fact that restarting kwin_x11 doesn't help all the time and it also
> happens on wayland sounds like it's most likely a bug in the kernel.
> 
> If you use nvidia, try reporting the issue to nvidia developers; otherwise
> please report this issue upstream to kernel developers.

One more thing. These I found in logs:

feb 07 14:34:49 anon xdg-desktop-portal-kde[123678]: qt.qpa.xcb: could not connect to display
feb 07 14:34:49 anon audit[123678]: ANOM_ABEND auid=0 uid=0 gid=0 ses=5 pid=123678 comm="xdg-desktop-por" exe="/usr/lib/xdg-desktop-portal-kde" sig=6 res=1
feb 07 14:34:49 anon xdg-desktop-portal-kde[123678]: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
feb 07 14:34:49 anon xdg-desktop-portal-kde[123678]: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
                                                       
                                                       Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.