Bug 436806 - With sleep-then-hibernate, there's a looping notification sound when computer wakes up from sleep to starts to hibernate, but before the hibernation has begun
Summary: With sleep-then-hibernate, there's a looping notification sound when computer...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Power management & brightness (other bugs)
Version First Reported In: 6.2.4
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-09 01:31 UTC by spiesant
Modified: 2025-06-10 00:36 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0 or earlier
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spiesant 2021-05-09 01:31:55 UTC
SUMMARY

If I configure a notification sound for the Screen Saver's "Screen locked" event, putting the system to sleep sometimes behaves as expected: it plays the sound once, followed by the system going to sleep.  Other times, it starts looping/repeating the sound continuously until the system goes to sleep. When this looping/repeating sound is 'stuck' it can be very loud, with no way to stop it, until the system finishes going to sleep.

STEPS TO REPRODUCE
1. System Settings->Notifications->Configure->Screen Saver->Configure Events->Screen locked->Play a sound. I chose /usr/share/sounds/Oxygen-Im-Highlight-Msg.ogg, but I assume any short/loud sound would suffice.
2. Put the system to sleep
3. If the behavior is as expected (sound plays once), try waking up the system & trying again.  The bug is sporadic (it may happen i.e. 1 out of 4 times when putting the system to sleep).

OBSERVED RESULT

Sometimes the sound plays once, as expected.  Other times, the sound gets stuck in a buggy-sounding loop, that continues repeating until the system finishes going to sleep (usually a second or two, but can be as long as 10 seconds).

EXPECTED RESULT

The sound should only play once, not get stuck in a repeating loop.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-05-10 22:57:33 UTC
Cannot reproduce in Plasma 5.22.
Comment 2 spiesant 2021-05-10 23:08:32 UTC
Here's a video showing the behavior: https://www.dropbox.com/s/xya4e5mdhw4wvcb/KDE%20Sleep%20Notification%20Bug.mp4?dl=0
Comment 3 shatz.dan 2022-10-20 10:34:51 UTC
Having the same issue on Opensuse TW, Plasma 5.26.1.

I have my laptop configured to sleep-then-hibernate when on battery. 
How I can reproduce this issue most often:
1. Let computer sit idle for a while on battery. It goes to sleep.
2. Let it sit idle for a bit more. Computer wakes up to start hibernating process.
3. Notification(?) sound starts repeating in a loop until computer hibernates (i.e. powers off).

As far as I understand the sound is coming from a notification that appears exactly when computer wakes up to start hibernating.
Comment 4 TraceyC 2025-05-29 21:15:31 UTC
Thanks for the bug report. I'm sorry we weren't able to get to this yet. There have been many fixes and improvements since this was reported, and this issue may have been fixed.

Can you please re-test on your system with Plasma 6.3.5 or later and let us know if you can still reproduce the problem? If you can, please set this back to REPORTED. Thanks!
Comment 5 spiesant 2025-05-29 22:44:55 UTC
I'm on 6.2.0 & don't see this happening anymore.
Comment 6 Nate Graham 2025-05-30 13:52:00 UTC
Great, thanks for following up!
Comment 7 spiesant 2025-06-05 23:49:16 UTC
Actually, let me revise that. It no longer happens when I Sleep - but the issue is still there if I Hibernate. And it's consistent/repeatable.
Comment 8 Nate Graham 2025-06-06 16:03:11 UTC
Can you open a new bug report for it? It seems like that's a subtly different issue.

Thanks!
Comment 9 spiesant 2025-06-06 19:45:28 UTC
Seems identical to me. Behavior is as described above, & also some of the other history/context above (i.e. shatz.dan@gmail.com is exactly this)...I can copy paste it to a new bug but seems better to retain the history since it's really the same thing
Comment 10 Nate Graham 2025-06-09 15:49:53 UTC
But you said it happens at a different time now, which means it's something different.
Comment 11 spiesant 2025-06-10 00:36:11 UTC
Ok...I copy-pasted it to https://bugs.kde.org/show_bug.cgi?id=505402, just replacing "sleep" with "hibernate" in the OP....