You are not logged in.

#1 2015-04-13 07:58:02

yorrd
Member
Registered: 2013-07-21
Posts: 71

Pulseaudio resets volume levels for sound in Firefox aside from flash

Usually, pulseaudio is very good about remembering the volume levels of all applications that are running for me. For example when the plugin-container from Firefox plays a video, it always sets itself to the volume I gave it.

However, I have switched to the HTML5 player from youtube a few days ago and ever since, the sink in pulseaudio is now called CubebUtils, not plugin-container, and it does not remember its volume level.

Is there anything to do here or just a Firefox issue?

Offline

#2 2015-04-17 23:02:13

Dotslash
Member
Registered: 2012-02-02
Posts: 62

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

I wonder if this is because of flat-volumes, did you turn it to no? https://wiki.archlinux.org/index.php/Pu … aemon.conf

Offline

#3 2015-04-18 00:44:23

yorrd
Member
Registered: 2013-07-21
Posts: 71

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

Yes, I have set this to no. It made other applications work the way I want them to (Firefox plugin container), but this one doesn't seem to be affected...

Last edited by yorrd (2015-05-21 14:09:08)

Offline

#4 2015-05-21 13:58:21

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

I have been struggling with the same behavior. I find this not being a bug as pulseaudio just gives the control to the site. For example vimeo.com or youtube remembers the volume setting on it's internal volume control lever and restores it back from a cookie. Pulseaudio doesn't interfere with that and doesn't force it's volume levels.

Anyway, I would like to force the volume level for me. Is there such a possibility?

Offline

#5 2015-05-21 14:53:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

It probably is the way firefox initializes the html 5 stream, it gives them an unique identifier each time. There is module-match which will probably do what you want, simply have to set a regexp on the CubeUtils stream firefox starts

Offline

#6 2015-05-21 17:25:12

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

In theory it's a solution. In practise, there is lack of documentation for module-match configuration file. I have no idea how to fill it to make it work.

Offline

#7 2015-05-22 17:33:14

fixles
Member
Registered: 2012-09-15
Posts: 101

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

have you tried installing the pulseaudio-alsa package?

Offline

#8 2015-05-22 17:54:39

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

Here's a copy of my match.table.

^Pidgin 35000
^Kodi 43000
^Firefox 30000
^Skype 35000

Basically it's a regexp match and then the volume.  The ^ says to start at the beginning.
The level goes from 0 to 65536.

HTH


Knute

Offline

#9 2015-05-23 15:46:12

Hyugga
Member
From: Santiago, Chile
Registered: 2010-03-26
Posts: 335

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

Hi everyone, i have the same problem but with normal flash, but it's random...
Also, i have alsa-pulseaudio installed and flat-volumes = no.
And i cant find that match.table file.

Thanks

Offline

#10 2015-05-23 16:27:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

I posted a link, everything is there go read it, its a small paragraph, but I can guarantee you that everything you need to know is mentioned there

@Hyugga you have to create it since the module isn't loaded by default

Last edited by V1del (2015-05-23 16:33:40)

Offline

#11 2015-05-23 16:46:39

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Pulseaudio resets volume levels for sound in Firefox aside from flash

You need to create the file, actually.

When you load the module in your default.pa  you can specify the filename.

load-module module-match table=/home/knute/.config/pulse/match.table

Knute

Offline

Board footer

Powered by FluxBB