Bug 458544 - Main volume level applied after startup notification sound plays, so it's too loud
Summary: Main volume level applied after startup notification sound plays, so it's too...
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: 5.25.4
Platform: Kubuntu Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-31 12:52 UTC by Syiad
Modified: 2022-10-21 11:42 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Syiad 2022-08-31 12:52:59 UTC
SUMMARY
***
The notification sound for plasma startup was muted in 5.24.
In 5.25.4 it is playing at full volume, regardless of the actual volume settings. It appears that the main volume setting is only applied *after* the startup sound has been played.
***


STEPS TO REPRODUCE
1. Start computer and log in
2. 
3. 

OBSERVED RESULT
Startup sound is played at what appears to be full volume.

EXPECTED RESULT
Startup sound being played at volume set at previous session, e.g. 40%.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I'm running Wayland.
Comment 1 Nate Graham 2022-08-31 20:12:54 UTC
You can change the volume of notification sounds in System Settings > Audio. Does that work?
Comment 2 Syiad 2022-09-01 07:43:12 UTC
Yes, that works as advertised. All sounds are always played at the set volume, EXCEPT the startup sound at startup.
If I play the startup sound "manually", e.g. via the notifications settings test button, it plays at the set overall volume.

As mentioned above, my suspicion is that the volume defaults to 100% until the settings from the previous session have been read in and applied. It seems the startup sound is played BEFORE that happens. Just a wild guess, though.
Comment 3 Nate Graham 2022-09-01 14:09:27 UTC
Because the startup sound uses the notification volume, I think this is intentional. If you want your notification sounds to be quieter, you should change your notification sound level to match the main volume level.
Comment 4 Syiad 2022-09-01 14:44:32 UTC
Seems I didn't describe the problem well enough: My volume settings are 100% for notifications (and mostly all other output streams) and 40% for the master volume. Therefore, I'd expect the notifications to be at 100% x 40% = 40% output volume. This is actually the case for all notification sounds, EXCEPT for the startup sound (but only at startup). In the past it used to be the case for the startup sound at startup too, but then the startup sound disappeared somewhere between KDE being updated towards 5.24 (or even earlier; it might have been missing for a while before I missed it) and me switching from X11 to Wayland. Now the startup sound is back with 5.25, but too loud.

It looks as if the 40% master volume setting is not applied before playing the startup sound. However, it definitely was in the past. Once plasma is up and running, all audio outputs do respect the 40% master volume.

Yes, I could lower the volume for notifications to 40% to have the startup sound played at that level. But then all subsequent notifications would be too silent at 40% master x 40% notifications = 16% effective level.
Comment 5 Nate Graham 2022-09-01 14:48:05 UTC
Ok, got it.
Comment 6 Syiad 2022-10-21 11:42:44 UTC
Somehow the problem has disappeared with Kubuntu 22.10.