Bug 467834 - Screen doesn't turn on after long time sleeping (DPMS error)
Summary: Screen doesn't turn on after long time sleeping (DPMS error)
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.27.3
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-26 23:29 UTC by Marcelo Bossoni
Modified: 2023-04-03 22:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.27.4
Sentry Crash Report:


Attachments
systemd journal (1.43 MB, text/plain)
2023-03-26 23:30 UTC, Marcelo Bossoni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Bossoni 2023-03-26 23:29:33 UTC
SUMMARY
I left computer idle for a long time (around 2 hours) and screen cannot turn on again.
SSH from other machine worked fine.
Switch to TTY didn't work
Disconnecting/reconnecting the DP cable didn't work

STEPS TO REPRODUCE
1. Use the computer
2. Leave the computer idle for a long time so that screen goes to sleep (and more after that)
3. Try to use the PC again

OBSERVED RESULT
Screen didn't come back

EXPECTED RESULT
Screen is turned on normally

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I stopped playing around 17:42
mar 26 17:42:15 URSO kwin_wayland[725]: kwin_core: could not find the toplevel to activate KWaylandServer::SurfaceInterface(0x55fcffd37d20)
mar 26 17:42:15 URSO kwin_wayland[725]: kwin_core: could not find the toplevel to activate KWaylandServer::SurfaceInterface(0x55fcffd37d20)
mar 26 17:40:18 URSO kwin_wayland[725]: kwin_core: XCB error: 3 (BadWindow), sequence: 22843, resource id: 90177651, major code: 129 (SHAPE), minor code: 6 (Input)

Then near 20:00 kwin had some strange messages (that repeated for about 4 minutes)
mar 26 20:00:19 URSO kwin_wayland[725]: kwin_wayland_drm: Failed to create gamma blob! Argumento inválido
mar 26 20:00:12 URSO kwin_wayland[725]: kwin_wayland_drm: Failed to create gamma blob! Argumento inválido
mar 26 20:00:06 URSO kwin_wayland[725]: kwin_wayland_drm: Failed to create gamma blob! Argumento inválido

When I tried to use the PC again (20:13)
mar 26 20:13:14 URSO kwin_wayland[725]: kwin_wayland_drm: Setting dpms mode failed!
mar 26 20:13:14 URSO kwin_wayland[725]: kwin_wayland_drm: Setting dpms mode failed!
mar 26 20:13:14 URSO kwin_wayland[725]: kwin_wayland_drm: Setting dpms mode failed!
Comment 1 Marcelo Bossoni 2023-03-26 23:30:23 UTC
Created attachment 157606 [details]
systemd journal
Comment 2 Marcelo Bossoni 2023-03-26 23:30:53 UTC
Forgot to add the system info
Operating System: Arch Linux 
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7A37
System Version: 1.0
Comment 3 tsweet64 2023-03-27 23:14:32 UTC
I also have this problem on my machine. I will try to gather logs (if it happens again) and versions tomorrow, but here's what I know about my system now:

Operating System: Arch Linux
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2
Manufacturer: ASUS

It has been happening for the last 1-2 weeks. Doesn't happen every time, but about 5 times so far. Seems to be more likely to occur the longer I leave the system alone. Disk LED keeps blinking, so system clearly isn't frozen. I haven't tried SSH. Can't switch tty or replug monitors. Must force reset the machine via power button.
Comment 4 Marcelo Bossoni 2023-03-27 23:23:12 UTC
Did a bit more digging... Apparently this is a problem with night colors on wayland since Nvidia doesn't support it.
Apparently if night colors is applied while display is off make it unable to wake again

https://invent.kde.org/plasma/kwin/-/merge_requests/3868

Try setting it to off
Comment 5 tsweet64 2023-03-27 23:41:43 UTC
Good find. I do indeed have that enabled despite it not working. I will turn it off and see if it fixes.
Comment 6 Nate Graham 2023-04-03 22:16:36 UTC
Cool, so it should already be fixed by https://invent.kde.org/plasma/kwin/-/commit/ec593a23644910a19ec2284aa753678228f19937 in Plasma 5.27.4.