Bug 499852

Summary: Black screen after waking from suspend-then-hibernate
Product: [Plasma] plasmashell Reporter: Kimiblock Moe <kimiblock>
Component: Screen lockingAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde, kimiblock
Priority: NOR    
Version First Reported In: 6.3.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Kimiblock Moe 2025-02-12 04:08:54 UTC
SUMMARY
On Arch Linux with NVIDIA 570 driver, suspend works but suspend-then-hibernate doesn't. A black screen with cursor blinking occurs. Switching TTY (usually tty 3) bring the desktop back.

STEPS TO REPRODUCE
1. Run systemctl suspend-then-hibernate
2. Wake up the system
3. Black screen until switching tty

OBSERVED RESULT
Black screen

EXPECTED RESULT
Screen locker comes up

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION

Name            : nvidia-open
Version         : 570.86.16-5
Description     : NVIDIA open kernel modules

There are some relevant logs while exiting suspend:

```
Feb 12 11:55:42 kimiblocks-workstation kscreenlocker_greet[13335]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3003)
Feb 12 11:55:42 kimiblocks-workstation kscreenlocker_greet[13335]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3003)
Feb 12 11:55:42 kimiblocks-workstation kscreenlocker_greet[13335]: Failed to write to the pipe: Bad file descriptor.
Feb 12 11:55:42 kimiblocks-workstation plasmashell[5361]: The cached device pixel ratio value was stale on window update.  Please file a QTBUG which explains how to reproduce.
Feb 12 11:55:43 kimiblocks-workstation chronyd[4650]: Can't synchronise: no majority
Feb 12 11:55:45 kimiblocks-workstation kwin_wayland[5184]: kwin_core: Cannot grant a token to KWin::ClientConnection(0x58f319cc4ff0)
```
Comment 1 Kimiblock Moe 2025-02-12 04:58:56 UTC
I think this is an NVIDIA bug because GNOME shows a black screen too...
Comment 2 David Redondo 2025-02-12 08:23:12 UTC
EGL_BAD_ALLOC FWIW