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: REPORTED
Alias: None
Product: Powerdevil
Classification: Plasma
Component: general (show other bugs)
Version: 5.26.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-09 01:31 UTC by spiesant
Modified: 2022-11-04 21:44 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


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.