Bug 465403 - Blank screen or flashing screen when resuming from sleep or hibernate or when TV has been off for a while
Summary: Blank screen or flashing screen when resuming from sleep or hibernate or when...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.26.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-07 04:49 UTC by sarvasana
Modified: 2023-02-07 13:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.