Bug 448213

Summary: Beep doesn't work with alarm window
Product: [Applications] kalarm Reporter: Grósz Dániel <groszdanielpub>
Component: soundAssignee: David Jarvie <djarvie>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 3.3.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Grósz Dániel 2022-01-10 14:57:46 UTC
SUMMARY
No Beep sound when using a Display Alarm with Display method set to Window.


STEPS TO REPRODUCE
1. Click New Display Alarm.
2. Set Sound to Beep.
3. Set Display method to Window.
4. Click OK.

OBSERVED RESULT
No Beep sound when the alarm time arrives.

EXPECTED RESULT
Beep sound.

SOFTWARE/OS VERSIONS
openSUSE Tumbleweed 20220107
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Graphics Platform: X11

ADDITIONAL INFORMATION
There is a Beep sound when the Display method is set to Notification. Also, if Sound is set to a Sound file while Display method is set to Window, it works.
Comment 1 David Jarvie 2022-01-10 23:58:31 UTC
Beep works on my system, for both alarm windows and notifications.

For notifications, beep is implemented by playing the sound file /usr/share/sounds/Oxygen-Sys-App-Message.ogg. For windows, beep is implemented by calling QApplication::beep(). It isn't clear why the Qt function doesn't work on your system, but I wouldn't want to play the sound file instead since some people have problems playing sound files. Perhaps the answer is to play the beep using both methods for windows - I'll need to experiment. (Note that it doesn't seem to be possible to call the Qt function from notifications.)
Comment 2 Grósz Dániel 2022-01-11 00:53:17 UTC
It turns out that in System Settings / Notifications / Applications: Configure... / Plasma Workspace / Configure Events..., I've disabled the sound for Beep. (IIRC I disabled all sounds at some point, except a few. I re-enabled the Beep sound now, I'll see whether it'll also be sounded in some other situations, where it might be annoying.)
Comment 3 David Jarvie 2022-01-11 16:29:17 UTC
Could you please say whether when you re-enable the Beep sound, it now works for Window alarms. If you don't want to create an alarm to test it, just open the alarm edit dialog, configure it to Beep, and click the Try button. Then cancel the dialog.
Comment 4 Grósz Dániel 2022-01-11 16:32:12 UTC
(In reply to David Jarvie from comment #3)
> Could you please say whether when you re-enable the Beep sound, it now works
> for Window alarms. If you don't want to create an alarm to test it, just
> open the alarm edit dialog, configure it to Beep, and click the Try button.
> Then cancel the dialog.

Ah, I forgot to say. Yes, it works now.
Comment 5 David Jarvie 2022-01-11 18:48:09 UTC
As you may have gathered from Comment 1, if you have beeps disabled but want to use them for alarms, you can specify the sound file /usr/share/sounds/Oxygen-Sys-App-Message.ogg instead.