You are not logged in.

#1 2017-01-21 19:13:33

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

[DONE] Disable flat-volumes for BunsenLabs?

@matmutant has noticed some undesirable behaviour in respect of per-application volume setting on the desktop:

https://forums.bunsenlabs.org/viewtopic.php?id=3252

This happens because the PulseAudio package ships from upstream with flat-volumes enabled:

There is no single well-defined meaning attached to the 100% volume for a sink input. In fact, it depends on the server configuration. With flat volumes enabled (the default in most Linux distributions), it means the maximum volume that the sound hardware is capable of, which is usually so high that you absolutely must not set sink input volume to 100% unless the the user explicitly requests that (note that usually you shouldn't set the volume anyway if the user doesn't explicitly request it, instead, let PulseAudio decide the volume for the sink input). With flat volumes disabled (the default in Ubuntu), the sink input volume is relative to the sink volume, so 100% sink input volume means that the sink input is played at the current sink volume level. In this case 100% is often a good default volume for a sink input, although you still should let PulseAudio decide the default volume.

https://freedesktop.org/software/pulsea … olume.html

Arch ships the package with flat-volumes disabled and I think that we should do the same (albeit via a skel configuration file).

Opinions?

Last edited by johnraff (2017-12-07 02:31:35)

Offline

#2 2017-01-21 19:55:15

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: [DONE] Disable flat-volumes for BunsenLabs?

I'm not 100% sure I understand what you are talking about.  I frequently have my volume at 100% or I would not hear most things (headphone only).  At the moment it's sitting at 90% because of a particularly loud video I was watching a while ago.  Fahrenheit 9/11 yikes

Probably not what you mean though - also: I have no pulseaudio here.  Pure ALSA.

Funny thing; searching with:

unix|linux set volume for the sink input

and every response is talking: PulseAudio.

Is this like:

app1 has a default volume set at 65% while app2 uses volume set at 80% ? NO!

OH!!!!!!!!!!  I see now  (I read too!)

If that's it: turn it off!  And I don't even use it! wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3 2017-01-22 02:57:24

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,558
Website

Re: [DONE] Disable flat-volumes for BunsenLabs?

I've had flat-volumes disabled on my personal system for some time, and posted the tweak last July:
https://forums.bunsenlabs.org/viewtopic.php?id=2277
(That "Scripts, Tutorials and Tips" section gets a lot of traffic...)

Anyway, yes I'd be in favour of making it default in BunsenLabs, either system-wide in /etc/pulse/daemon.conf or in the default user settings in /usr/share/bunsen/skel/.config/pulse/daemon.conf


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#4 2017-01-22 03:27:18

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: [DONE] Disable flat-volumes for BunsenLabs?

^  System wide is my choice.

But then if Pulse still doesn't act right on my equipment next release it's like a tooth with an ache - Pluck!  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#5 2017-01-22 11:34:21

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: [DONE] Disable flat-volumes for BunsenLabs?

johnraff wrote:

posted the tweak last July

Oh yes, I forgot about that, sorry.

I think perhaps /etc/pulse/daemon.conf is the way to go as it would be applied to all users upon upgrade whereas the skel file would only apply to new users created after the upgrade.

Offline

#6 2017-01-22 11:48:32

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [DONE] Disable flat-volumes for BunsenLabs?

Head_on_a_Stick wrote:
johnraff wrote:

posted the tweak last July

Oh yes, I forgot about that, sorry.

I think perhaps /etc/pulse/daemon.conf is the way to go as it would be applied to all users upon upgrade whereas the skel file would only apply to new users created after the upgrade.

Yes,  I like the suggestion. Let's add it to the package (bunsen-configs?) as a system-wide config diversion.

Offline

#7 2017-01-23 08:52:10

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,558
Website

Re: [DONE] Disable flat-volumes for BunsenLabs?

^ OK easily done.
One more file for config-file-diversion I guess.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#8 2017-01-23 09:56:32

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: [DONE] Disable flat-volumes for BunsenLabs?

Sector11 wrote:

But then if Pulse still doesn't act right on my equipment next release it's like a tooth with an ache - Pluck!  big_smile

I'd make a comment too about PA in the same general direction, but it won't be constructive, so I'll keep my mouth shut.

Offline

#9 2017-01-23 21:48:57

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [DONE] Disable flat-volumes for BunsenLabs?

Actually, I had a ton of success recently plugging PA directly into jack and skipping ALSA. Turns out latency is attributable to ALSA. PA works just fine.

Offline

#10 2017-01-23 23:01:08

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: [DONE] Disable flat-volumes for BunsenLabs?

cloverskull wrote:

Actually, I had a ton of success recently plugging PA directly into jack and skipping ALSA. Turns out latency is attributable to ALSA. PA works just fine.

It probably was more of an ALSA misconfiguration (which is not your blame to take because ALSA config has next to zero documentation and only snippets flying around) than an ALSA problem per se as PA is a layer over ALSA (or OSS): https://upload.wikimedia.org/wikipedia/ … iagram.svg.

Offline

#11 2017-01-23 23:43:23

cloverskull
Member
Registered: 2015-10-01
Posts: 348

Re: [DONE] Disable flat-volumes for BunsenLabs?

Without derailing too much, and not to split hairs, but jack (properly configured) is much lower latency than the userspace alsa library. Having PA sit on top of a properly configured jack stack results in the best current linux desktop audio experience, IMO. I'm happy to fire up a new thread to talk about this if you're interested!

Offline

#12 2017-01-24 01:58:40

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,558
Website

Re: [DONE] Disable flat-volumes for BunsenLabs?

twoion wrote:

Let's add it to the package (bunsen-configs?) as a system-wide config diversion.

bunsen-configs sounds right. Do an upgrade right away?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#13 2017-01-24 09:34:37

o9000
tint2 developer
From: Network Neighborhood
Registered: 2015-10-24
Posts: 417
Website

Re: [DONE] Disable flat-volumes for BunsenLabs?

cloverskull wrote:

Without derailing too much, and not to split hairs, but jack (properly configured) is much lower latency than the userspace alsa library. Having PA sit on top of a properly configured jack stack results in the best current linux desktop audio experience, IMO. I'm happy to fire up a new thread to talk about this if you're interested!


If you have the time, I would appreciate it.

Last edited by o9000 (2017-01-24 09:35:12)

Offline

#14 2017-11-16 08:13:27

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,558
Website

Re: [DONE] Disable flat-volumes for BunsenLabs?

Flat volumes now disabled in bunsen-configs-pulse in the helium-dev repo.
(Using /etc/pulse/daemon.conf.d/bunsen.conf)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB