Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627894 - media-sound/pulseaudio: Consider shipping with "flat-volumes = no" by default
Summary: media-sound/pulseaudio: Consider shipping with "flat-volumes = no" by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://src.fedoraproject.org/rpms/pu...
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2017-08-14 22:54 UTC by Valeriy Malov
Modified: 2020-09-22 09:50 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valeriy Malov 2017-08-14 22:54:34 UTC
Upstream /etc/pulse/daemon.conf has option "flat-volumes" enabled. This setting allows misbehaving or buggy pulse-audio enabled programs to set volume to maximum. This doesn't seem like a sane default to me.

Consider patching default config with "flat-volumes = no". As far as I know, at least Ubuntu, OpenSuSE, Fedora and Arch Linux do so.

Here's a bug in RedHat's bugtracker with some more info on this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1265267
Comment 1 Andreas Sturmlechner gentoo-dev 2017-08-15 09:04:28 UTC
It sure is among top recurring issues in kde irc channels, but seems to have declined since the mentioned distros switched default.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-09-21 21:14:16 UTC
This occured to me a couple of times as well, I'll try to consider this on next bump.
Comment 3 Markus Ewald 2017-10-11 07:23:52 UTC
I have some studio monitors (= volume knobs typically at the back) connected to my PC. The flat volume option has caused me to fall off my chair a few times now.

Offenders are 'Musique' (popular audio player, starts at 100%), 'Dolphin' (yep, the dolphin file manager, has no volume control, plays at 100%) and basically any video game.

From my PoV, the flat volume option is implemented wrongly in upstream, too, since rather than make all applications absolute volumes (like Windows Vista from which the tried to copy the behaviour), it seems to revert to non-flat-volume behaviour as soon as two audio sources are present.
Comment 4 frostblue 2018-03-19 21:25:17 UTC
I nearly fell off my chair a few times because of this. I'm using KDE and have volume set to around 15%. When a notification shows up it sets its volume to 100%, which is then mirrored in all other output streams. This feature coupled with headphones and music playing in the background tend to create extremely painful experiences, and it is not immediately obvious that the issue comes from PulseAudio when it happens only with certain programs, in particular KDE's notifications.

From what I understand the initial goal of this feature was to avoid confusion with with non-tech savvy users and to get a seemingly consistent volume slider across all applications. I believe people using Gentoo are capable people who do not get confused by volume sliders. A proper implementation of this feature would force the system volume onto an application upon launch rather than the opposite, but since we are not in charge of PA's developpment I request this feature be turned off as soon as possible in Gentoo's package of PA.
Comment 5 Andreas Sturmlechner gentoo-dev 2018-03-20 11:37:34 UTC
Any update here?
Comment 6 Larry the Git Cow gentoo-dev 2018-06-02 17:08:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02ec89fdd26b67f56ecce2d0747e4653e27db47b

commit 02ec89fdd26b67f56ecce2d0747e4653e27db47b
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-05-28 22:24:32 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-06-02 17:06:38 +0000

    media-sound/pulseaudio: Set flat-volumes=no by default
    
    Bug: https://bugs.gentoo.org/627894
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../pulseaudio-11.1-disable-flat-volumes.patch     | 48 ++++++++++++++++++++++
 media-sound/pulseaudio/pulseaudio-11.1-r1.ebuild   |  1 +
 2 files changed, 49 insertions(+)
Comment 7 Mart Raudsepp gentoo-dev 2018-07-02 09:44:48 UTC
11.1-r1 has the change, is being stabilized (done on most) and all current future ~arch revisions have it too, so I guess this is done here..
Comment 8 Jason A. Donenfeld gentoo-dev 2020-09-21 09:39:02 UTC
Two years later, is this something we should reconsider? Are other downstreams still shipping this too?