Issues with Notification Volumes

Thank you! Not spam, and no apologies needed :slight_smile:

I ultimately chose to disable the audio queue as well, but in case anybody else comes across this, the sound is played by a separate process called ā€œlibcanberraā€œ. It shows up briefly as a Playback Stream then removes itself making it’s settings inaccessible. You would need to adjust it’s default configs to reduce playback volume as the process launches or perhaps KDE has a way to reduce default volumes of new devices. I dunno if it even has an API for such a thing, but it is the correct direction.

2 Likes

You might notice that I explicitly include libcanberra in my rules. It is one source of notifications, but it’s only one of many, and what’s more, libcanberra also does sounds which are not notifications, so between these things, you can’t just filter for that process.

The direction you’re speaking of, leads to a pipewire rule which sets the volume for the stream when it is created. That’s what the solution I posted above achieves, but it does so, rather than by setting each notification’s volume directly, by directing libcanberra and all its noisy friends, to one place, and creates a slider in the mixer for that, so that we can set all their volumes, any time we like, and set maximums, mute them all, and other nice stuff.

I popped by today with a bit of news about this subject, which is a recent/ongoing feature addition to wireplumber I’ve been watching them add, which will automatically create virtual devices and automatically route sounds through those devices, based on their ā€˜role’ such as Notifications, Media, Calls, etc, and provide a separate volume slider for each.

Basically, wireplumber is adding an automatic version of what I wrote up there. It will be nice for us because it will be easier to set up (not that it’s very difficult now honestly!) but especially because it will be standardised, so it will be suitable for distros to implement it (I saw Phosh is doing it at the moment). So, the ā€˜Notifications Volume slider’ might come back in an official form, in the not-too-distant future, maybe along with some other convenient audio controls.

Until then we’ve still got that config above. BTW I’m still running that rule and it hasn’t caught any false positives or failed once since the previous posts. It’s working well.

2 Likes

This seems to be the related KDE bug: 428267 – Sounds made by notifications don’t respect ā€œNotificationsā€ volume level in Audio Volume KCM.

Also thanks for the workaround!

1 Like