Bug 467181 - No screen output shown when resuming from sleep
Summary: No screen output shown when resuming from sleep
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: platform-drm (show other bugs)
Version: 5.27.2
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2023-03-10 23:43 UTC by Samuel Reddy
Modified: 2023-03-27 18:53 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
log (42.37 KB, text/x-log)
2023-03-10 23:43 UTC, Samuel Reddy
Details
Kernel dmesg log (109.52 KB, text/x-log)
2023-03-11 22:34 UTC, Samuel Reddy
Details
systemd log (3.34 MB, text/x-log)
2023-03-11 22:35 UTC, Samuel Reddy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Reddy 2023-03-10 23:43:50 UTC
Created attachment 157180 [details]
log

SUMMARY
On Plasma Wayland, when I resume from sleep mode, I get no output on my monitor and the only way to workaround the problem is to kill kwin or restart the computer.

STEPS TO REPRODUCE
1. Use Plasma Wayland
2. Put system into sleep mode, not hibernate
3. Resume from sleep mode
4. No output is shown

OBSERVED RESULT
When resuming from sleep, I have nothing on my screen and my monitor says their is no output 

EXPECTED RESULT
The lock screen should show up like normal when resuming from sleep mode

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 22.10 (With backports ppa)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-35-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: NAVI22
Manufacturer: ASUS

ADDITIONAL INFORMATION
I am using a hdmi monitor that is connected to a custom built pc with an amd graphics card
Comment 1 Zamundaaa 2023-03-11 16:43:19 UTC
> Mar 11 10:24:36 sams-pc-rig kwin_wayland_wrapper[3195]: kwin_core: Applying KScreen config failed!
> Mar 11 10:24:36 sams-pc-rig kwin_wayland_wrapper[3195]: kwin_wayland_drm: Atomic commit failed! Invalid argument
> Mar 11 10:24:36 sams-pc-rig kwin_wayland_wrapper[3195]: kwin_wayland_drm: Presentation failed! Invalid argument
> Mar 11 10:24:36 sams-pc-rig kwin_wayland_wrapper[3195]: kwin_wayland_drm: Failed to find a working setup for new outputs!

It would be good to know what config KWin is failing to apply. Please add
> QT_LOGGING_RULES="kwin_*.debug=true"
to /etc/environment, reboot, make the bug happen again and upload the log again.
A dmesg output with drm debug logging enabled (https://invent.kde.org/plasma/kwin/-/wikis/Debugging-DRM-issues) would be very helpful as well
Comment 2 Samuel Reddy 2023-03-11 22:34:15 UTC
Created attachment 157197 [details]
Kernel dmesg log

Contains log from dmesg
Comment 3 Samuel Reddy 2023-03-11 22:35:07 UTC
Created attachment 157198 [details]
systemd log

Contains log from systemd-journald
Comment 4 Samuel Reddy 2023-03-16 08:24:48 UTC
It appears that on the upcoming Kubuntu 23.04, the issue seems to be fixed. I tested using the daily images of Lunar Lobster. This suggests that it is either an old kernel causing the issue or a distro issue that has been fixed.
Comment 5 Nate Graham 2023-03-27 18:53:44 UTC
Yay! Thanks for following up.