Bug 509870 - Black desktop after waking from sleep on Wayland
Summary: Black desktop after waking from sleep on Wayland
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (other bugs)
Version First Reported In: 6.3.4
Platform: Kubuntu Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2025-09-24 15:05 UTC by steve_garnier
Modified: 2025-10-20 18:00 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
attachment-1926536-0.html (3.01 KB, text/html)
2025-09-25 15:56 UTC, steve_garnier
Details
attachment-713407-0.html (3.27 KB, text/html)
2025-10-19 20:38 UTC, steve_garnier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description steve_garnier 2025-09-24 15:05:28 UTC
SUMMARY
I have found poor behavior of Wayland when compared to X11 in the areas of post-sleep wakeup restoration.

STEPS TO REPRODUCE
System should be a fresh install that has never run X11.  

Problem with respect to Wayland sleep and awakening. 
1.  Before I run what follows, I go to System Settings > Appearance & Style > Colors & Themes > Login Screen (SDDM) and I choose "Kubuntu" and enter whatever image I want into "Change Background".  
2.  I also start gkrellm and set the sticky bit.  (This is done by right-clicking on the gkrellm titlebar, and in the resulting popup selecting "General", the "Properties" tab and then selecting "Set sticky state", then click "Apply" or "OK".)  Leave gkrellm running on the display.  
3.  Next place the system running Wayland into sleep mode.  
4.  Wake from sleep mode.  

OBSERVED RESULT
Waking from sleep mode is glacially slow and does not fully recover. Returning from sleep mode I am greeted with a black desktop within which I can move a cursor and see nothing else.

EXPECTED RESULT
Waking from sleep mode should require a short time duration.  The user should be greeted with a normal login desktop.  

5.  I hit Control-Alt-F2 and see no change.  (There is no change because Wayland has placed the display at the Control-Alt-F2 position.)  
6.  I hit Control-Alt-F3 and I am presented with a virtual terminal window and login.
7.  I hit Control-Alt-F1 and now see two login screens using the background image I specified. The login screens are not completely filled out compared to the original login screens, meaning the username and user avatar image are not presented…just a black hole instead of an avatar image.  Clearly, waking from sleep mode should either move to the Control-Alt-F1 screen instead of the Control-Alt-F2 screen, or Wayland should default to use Control-Alt-F2 instead of Control-Alt-F1 for login, similar to X11. 
8.  Login. 

OBSERVED RESULT:  Recovery of the desktop display is glacially slow. The areas previously occupied by gkrellm (sticky bit set to cover all virtual desktops) are black and remain so indefinitely. Time and date are not displayed in the taskbar contrary to the default.  I opened Konsole and executed “sudo journalctl -b 0 -r” and looked for “crash”. Gadzillions of crash statements associated with systemd. This is not an issue with X11.

From the journalctl output: 
Sep 23 12:10:46 <hostname> systemd[6172]: drkonqi-coredump-launcher.socket: Unit needs to be started because active unit sockets.target upholds it, but not starting since we tried this too often recently. Will retry later.
Sep 23 12:10:46 <hostname> systemd[6172]: drkonqi-coredump-launcher.socket - Socket to launch DrKonqi for a systemd-coredump crash was skipped because of an unmet condition check (ConditionUser=!@system).
[repeats the last statement at least 16 times and the first statement once, and does so every ten seconds] 
Expected Result: Very fast waking and recovery from sleep mode.  This is not an issue with X11. 

EXPECTED RESULT
Recovery of the desktop display should be prompt and gkrellm should be visible and functioning.  Time and date should be displayed in the taskbar.  This is not an issue with X11.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 25.04, Linux  6.14.0-32-generic #32-Ubuntu SMP PREEMPT_DYNAMIC 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0 
Qt Version: 6.8.3

ADDITIONAL INFORMATION
HARDWARE: 
CPU: AMD Ryzen 9 9900X
GPU: NVIDIA GeForce RTX 5070
Mboard: MSI PRO B650-VC WIFI III
RAM: 32 GB DDR5
2 x 2 TB SSD WD_BLACK SN850X HS 2000GB w/ heatsink
Dual identical resolution monitors used side-by-side forming single desktop.
Comment 1 David Redondo 2025-09-25 07:13:54 UTC
It seems plasmashell crashed.
 Can you please check and if this is the case attach a backtrace of the crash using the coredumpctl command-line program, as detailed in https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
Comment 2 steve_garnier 2025-09-25 15:55:28 UTC
(In reply to David Redondo from comment #1)
> It seems plasmashell crashed.
>  Can you please check and if this is the case attach a backtrace of the
> crash using the coredumpctl command-line program, as detailed in
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?

coredumpctl is not installed on my Kubuntu 25.04 system.  If I install coredumpctl on my system now, will it retrieve the information you seek which might have been generated before coredumpctl installation?
Comment 3 steve_garnier 2025-09-25 15:56:59 UTC
Created attachment 185268 [details]
attachment-1926536-0.html

 Hi, David. coredumpctl is not installed on my Kubuntu 25.04 system.  If I install coredumpctl on my system now, will it retrieve the information you seek which might have been generated before coredumpctl installation?
Thanks, Steve 
    On Thursday, September 25, 2025 at 02:13:58 AM CDT, David Redondo <bugzilla_noreply@kde.org> wrote:  
 
 https://bugs.kde.org/show_bug.cgi?id=509870

David Redondo <kde@david-redondo.de> changed:

          What    |Removed                    |Added
----------------------------------------------------------------------------
            Status|REPORTED                    |NEEDSINFO
                CC|                            |kde@david-redondo.de
        Resolution|---                        |WAITINGFORINFO

--- Comment #1 from David Redondo <kde@david-redondo.de> ---
It seems plasmashell crashed.
 Can you please check and if this is the case attach a backtrace of the crash
using the coredumpctl command-line program, as detailed in
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?
Comment 4 steve_garnier 2025-09-25 18:01:19 UTC
Within X11 I executed 
     sudo apt install systemd-coredump
I then logged out and logged back in using Wayland.  I then verified that coredumpctl was installed by opening a small xterm, determining its PID, then executing 
     kill -SEGV <xterm PID> 
and then executing 
     sudo coredumpctl list  
This provided the following output: 
     TIME                          PID  UID  GID SIG     COREFILE EXE              SIZE
     Thu 2025-09-25 12:34:23 CDT 32388 1000 1000 SIGSEGV present  /usr/bin/xterm 332.1K
So coredumpctl is installed and functional. 
I then put the system into sleep mode. 
I then woke the system from sleep mode. 
Much weird display behavior is observed while moving the mouse cursor over the display.
I eventually log in. 
I then execute 
     sudo coredumpctl list 
and am again provided with the following output: 
     TIME                          PID  UID  GID SIG     COREFILE EXE              SIZE
     Thu 2025-09-25 12:34:23 CDT 32388 1000 1000 SIGSEGV present  /usr/bin/xterm 332.1K

Apparently either nothing has crashed, or something is masking the crashing executable from being detected as a crash or saved as a coredump.  To support this assumption, I provide the following excerpt from the execution of  
     sudo journalctl -b 0 -r

     Sep 25 12:35:53 Gargantuan systemd[32919]: drkonqi-coredump-launcher.socket - Socket to launch DrKonqi for a systemd-coredump crash was skipped because of an unmet condition check (ConditionUser=!@system).

If you can tell me (1) where and how to modify software to disable this condition check, I assume that (2) I can later revert this change and regain normal system operation.  After performing the modification implied in item (1), I will again attempt to generate the coredump in Wayland.
Comment 5 steve_garnier 2025-09-29 18:01:53 UTC
(In reply to steve_garnier from comment #3)
> Created attachment 185268 [details]
> attachment-1926536-0.html
> 
>  Hi, David. coredumpctl is not installed on my Kubuntu 25.04 system.  If I
> install coredumpctl on my system now, will it retrieve the information you
> seek which might have been generated before coredumpctl installation?
> Thanks, Steve 
>     On Thursday, September 25, 2025 at 02:13:58 AM CDT, David Redondo
> <bugzilla_noreply@kde.org> wrote:  
>  
>  https://bugs.kde.org/show_bug.cgi?id=509870
> 
> David Redondo <kde@david-redondo.de> changed:
> 
>           What    |Removed                    |Added
> ----------------------------------------------------------------------------
>             Status|REPORTED                    |NEEDSINFO
>                 CC|                            |kde@david-redondo.de
>         Resolution|---                        |WAITINGFORINFO
> 
> --- Comment #1 from David Redondo <kde@david-redondo.de> ---
> It seems plasmashell crashed.
>  Can you please check and if this is the case attach a backtrace of the crash
> using the coredumpctl command-line program, as detailed in
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?

Please respond to my comment dated 2025-09-24 15:05:28 UTC.  I see no evidence of a plasma crash.  Thank you.
Comment 6 steve_garnier 2025-10-01 01:10:24 UTC
(In reply to David Redondo from comment #1)
> It seems plasmashell crashed.
>  Can you please check and if this is the case attach a backtrace of the
> crash using the coredumpctl command-line program, as detailed in
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports#Retrieving_a_backtrace_using_coredumpctl?

Hi, David. 

Please respond to my comment dated 2025-09-24 15:05:28 UTC.  I see no evidence of a plasma crash.  

How am I supposed to provide you with core dump information when the apparent crash generated the following journalctl statement?
"Sep 25 12:35:53 Gargantuan systemd[32919]: drkonqi-coredump-launcher.socket - Socket to launch DrKonqi for a systemd-coredump crash was skipped because of an unmet condition check (ConditionUser=!@system)."
Interpretation of this journalctl statement appears to indicate that if the crash occurs on a system process (and NOT a user process) that a core dump will not be generated.  How do I get around this in order to provide you with a core dump?  

Thank you.
Steve
Comment 7 David Redondo 2025-10-01 07:05:38 UTC
Sorry I can't tell you a way to check if something has crashed I am not using kubuntu please check somewhere else how to see crash reports on Kubuntu. Without a bakxtrace this is sadly not actionable for us
Comment 8 steve_garnier 2025-10-01 22:35:17 UTC
(In reply to David Redondo from comment #7)
> Sorry I can't tell you a way to check if something has crashed I am not
> using kubuntu please check somewhere else how to see crash reports on
> Kubuntu. Without a bakxtrace this is sadly not actionable for us

I understand, David.  I went to askubuntu.com to ask and saw that they have an AI assistant in the left sidebar.  I clicked on that and was taken to stackoverflow.ai where I very carefully described the issue and asked about this debug problem.  The AI gave me a lot of detailed information/instructions, so I will try to find the time to do this.  

All that being said, I've been doing a lot of reading and listening to other users at kubuntuforums.net, and I suspect this is an issue with Wayland and my Nvidia driver.  (I suspect that the Nvidia issue might be a system issue, which is why it hasn't core dumped.)  I've been told by one user who was seeing similar issues that he went to Nvidia and downloaded and installed the latest Nvidia driver to correct a lot of issues.  I've also heard that Wayland was fixed, too, but those fixes haven't trickled down into Kubuntu yet, which would imply that the issues I am seeing have already been addressed elsewhere.    

My motherboard is an MSI PRO B650-VC WIFI III and my GPU is an Nvidia GeForce RTX 5070, so this is pretty new hardware.  It might take a little time for software/firmware to catch up.  

I'll let you know if I generate a core dump.  If not, I'm not going to fret too long.  I just won't depend on Wayland until there's a fix.  
Thanks, 
Steve
Comment 9 steve_garnier 2025-10-04 21:40:20 UTC
(In reply to steve_garnier from comment #8)
> (In reply to David Redondo from comment #7)
> > Sorry I can't tell you a way to check if something has crashed I am not
> > using kubuntu please check somewhere else how to see crash reports on
> > Kubuntu. Without a bakxtrace this is sadly not actionable for us
> 
> I understand, David.  I went to askubuntu.com to ask and saw that they have
> an AI assistant in the left sidebar.  I clicked on that and was taken to
> stackoverflow.ai where I very carefully described the issue and asked about
> this debug problem.  The AI gave me a lot of detailed
> information/instructions, so I will try to find the time to do this.  
> 
> All that being said, I've been doing a lot of reading and listening to other
> users at kubuntuforums.net, and I suspect this is an issue with Wayland and
> my Nvidia driver.  (I suspect that the Nvidia issue might be a system issue,
> which is why it hasn't core dumped.)  I've been told by one user who was
> seeing similar issues that he went to Nvidia and downloaded and installed
> the latest Nvidia driver to correct a lot of issues.  I've also heard that
> Wayland was fixed, too, but those fixes haven't trickled down into Kubuntu
> yet, which would imply that the issues I am seeing have already been
> addressed elsewhere.    
> 
> My motherboard is an MSI PRO B650-VC WIFI III and my GPU is an Nvidia
> GeForce RTX 5070, so this is pretty new hardware.  It might take a little
> time for software/firmware to catch up.  
> 
> I'll let you know if I generate a core dump.  If not, I'm not going to fret
> too long.  I just won't depend on Wayland until there's a fix.  
> Thanks, 
> Steve

I did my best to allow user AND system-level core dumps to occur.  This included ensuring the installation of systemd-coredump, modifying /etc/systemd/system.conf and /etc/systemd/user.conf while setting DefaultLimitCORE=infinity, ensuring that /etc/systemd/coredump.conf included 

[Coredump]
Storage=external
MaxUse=2G (or greater) , 

ensuring that /proc/sys/kernel/core_pattern contained  

|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %e , 

ensuring "ulimit -c unlimited" is applied and enforced, then executing 

sudo systemctl daemon-reexec  
sudo systemctl restart systemd-coredump
sudo systemctl daemon-reload

So I'm going to assume that I did pretty much everything I could do to enable core dumps from user and system processes. 
I then recreated the problem issue.
I then verified that there were no core dumps using "coredumpctl list".  
I performed "ps uax" and grep'd the output for [Pp]lasma and [Ww]ayland.  
I executed "top" and saw nothing out of the ordinary.  
Nothing slapped me in the face as a problem, other than the disgusting problem issue was still present, making working inside Wayland to be between a PITA and impossible. 

And after doing all this, I executed 
sudo journalctl -b 0 -r 
and observed many replicants of the following line
Oct 04 15:59:41 <hostname> systemd[13365]: drkonqi-coredump-launcher.socket - Socket to launch DrKonqi for a systemd-coredump crash was skipped because of an unmet condition check (ConditionUser=!@system).

As such, I must assume that debugging this issue is beyond my current capability and knowledge.
Comment 10 Bug Janitor Service 2025-10-19 03:47:18 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 11 steve_garnier 2025-10-19 20:37:49 UTC
Hello, KDE Bug-Control.  Hopefully a human receives and reads what follows. 

I have just received a "NEEDSINFO" email from kde.org.  
I have tried to create a coredump of a system process and have repeatedly failed. 
I have asked for help on how to properly setup a system so that I can save a coredump of a system process and have received no assistance from humans.  

I am not a noob.  I am a retired PhD professional that knows how to take instruction and knows how to test software.  The problem here is that NO ONE has provided me with any instructions on how to setup a KUbuntu-based system to generate and save coredumps of system processes.  I have asked folks in Kubuntuforums.net and I have gone so far as to search the internet and using Google AI, following all available instructions with no success.  

I have effectively been set up for failure and I do not like it.
Comment 12 steve_garnier 2025-10-19 20:38:14 UTC Comment hidden (spam)
Comment 13 steve_garnier 2025-10-20 01:17:53 UTC Comment hidden (spam)
Comment 14 steve_garnier 2025-10-20 03:15:06 UTC Comment hidden (spam)
Comment 15 Nate Graham 2025-10-20 16:13:12 UTC
I do understand how frustrating this must be, and I sympathize. 

But I'm afraid I can't help you because the proper setup procedure on Kubuntu is something I don't know, either. It's a shame the didn't set all of this up automatically. That's one of their jobs.

Given this part of the system being misconfigured, we can't rule out that another misconfiguration is causing the underlying issue itself.

At this point, I would recommend reaching out to them personally to ask for help with this issue. If that proves impossible, there's always the nuclear option of switching to a distro that offers a higher level of integration and support. Fedora KDE is my go-to recommendation these days.