You are not logged in.

#1 2014-06-05 23:43:17

Walton
Member
Registered: 2014-01-09
Posts: 23

Sound automatically reduces

This problem has been happening for a while and I've just gotten really frustrated with it now.  I can't figure out what the source of the problem is, but what happens is that the volume
on firefox (may be others but I basically listen to music and movies through firefox) keeps dropping.  When I use my volume control buttons it shows that it is at max volume, but is really at 39% (https://i.imgur.com/qhcWQ6E.png).  It is consistently at the 39% level when it drops.  It seems that the only way I can fix it, is to manually open volume control and readjust. 
I have no idea what is causing it, and I've tried testing a few things.  Sometimes it happens at startup, sometimes when streaming a show.  But as far as I can tell it is random.

Is anyone else experiencing this bug?  Is there a quick fix?

Maybe, maybe not part of the problem: The mic setting constantly maxes out as well.  It will automatically set itself at 100%, thus distorting everything.

Extra details:
HP ENVY dv7
Linux 3.14.5-1-ARCH #1 SMP PREEMPT Sun Jun 1 07:36:23 CEST 2014 x86_64 GNU/Linux
Qt: 4.8.6
KDE Development Platform: 4.13.1
kde4-config: 1.0
KMix: 4.5
pulseaudio 5.0
amixer version 1.0.27.2

Offline

#2 2014-06-05 23:58:45

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Sound automatically reduces

Check what else controls sound:

fuser -v /dev/snd/*

Also look into alsa-restore.service (alsactl restore).

Offline

#3 2014-06-06 00:07:03

Walton
Member
Registered: 2014-01-09
Posts: 23

Re: Sound automatically reduces

[steven@Serenity practice]$ fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  steven      651 F.... pulseaudio
/dev/snd/pcmC0D0c:   steven      651 F...m pulseaudio
/dev/snd/pcmC0D0p:   steven      651 F...m pulseaudio

Last edited by Walton (2014-06-06 20:51:35)

Offline

#4 2014-06-06 13:06:52

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Sound automatically reduces

Please use [_code_][_/code_] tags without the underscores.

So this is probably PA specific. One of running applications may be taking control of the mixer periodically, you would have to lists all of them, then isolate the culprit.

Offline

#5 2014-06-06 21:23:54

Walton
Member
Registered: 2014-01-09
Posts: 23

Re: Sound automatically reduces

Well considering they all have the same PID, I'm not sure how to kill just one and try to systematically solve the problem.  There is also the issue that I don't know what is causing it, and I have a hard time repeating the error.  I can't do it on purpose.  I've had the error multiple times in a day and I've had the error not pop up for a few days.

Update:
I just played an embedded video, noticed the volume was low and saw that the "ALSA plug-in[plugin-container]: ALSA Playback" section in volume control was lowered.

Last edited by Walton (2014-06-06 21:29:11)

Offline

#6 2014-06-06 21:39:55

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Sound automatically reduces

PA has one pid. I was referring to applications communicating with PA, like firefox (plugin-container), mpv, clementine, etc. "Embedded video" is not particularly descriptive: what video format, player? from what source? maybe provide a link; what browser was used?

Probably adobe flash. There are some options for flash, also on hardware.

Offline

#7 2014-06-06 21:43:04

Walton
Member
Registered: 2014-01-09
Posts: 23

Re: Sound automatically reduces

Well it was from http://www.ti.com/lsds/ti/tools-softwar … linux.page, the video player is at the bottom of the page.  I was using Firefox.  The video is flash.

Offline

#8 2014-06-06 21:55:10

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Sound automatically reduces

There are options in privacy settings to allow control over microphone and camera. Is this allowed in your case? There might be some pulseaudio specific options, that I am not aware of, since I do not use it any more. I myself cannot really test that right now, since I use jack with libflashsupport-jack.

Offline

#9 2014-06-06 22:10:55

Walton
Member
Registered: 2014-01-09
Posts: 23

Re: Sound automatically reduces

These are denied in my case. 

If I might ask, is there a reason you use jack instead of pulseaudio?

Offline

#10 2014-06-06 22:28:13

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Sound automatically reduces

Several reasons. I wanted:

  • push the limits of my hardware (currently running jack on an Audiotrak Prodigy 7.1 HiFi sound card with OPA2134 @ 192 kHz / 24 bit resolution),

  • to build a setup capable of doing [very low] semi-professional audio/video editing/production (everything that has to do with pro-audio has to do with jack and audio is my main focus),

  • have generally more control over applications (with jack you can direct the stream of an application however you want),

  • use my custom hardware setup easily (headphones on channels 7/8 is one part of it) as in comparison to alsa (back then at least).

I have 3 sound cards: one HDMI on the GPU which I very rarely use, the Prodigy for production and music listening (my main card, takes input from Azalia) and one for the rest (integrated Azalia hda compliant), which uses alsa directly.

Edit: If I recall correctly it is not an OPA2134, maybe OPA2107. The one that is in has better characteristics than OPA2134, that I do remember.

Yes, some of it is feasible with pulseaudio, but jack serves my needs in a better way. And it does not have some of the negative sides of PA.

As for your problem, you could try out aoss with firefox from alsa-oss package. It may be needed to load modules for the emulation.

#Alsa OSS Emulation
snd-pcm-oss
snd-mixer-oss
snd-seq-oss

If flash forces its volume levels, it should be dropped in between alsa and oss, I assume.

Last edited by emeres (2014-06-06 22:58:33)

Offline

#11 2014-06-07 21:21:54

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: Sound automatically reduces

Did aoss help? You might want to take a look here.

Last edited by emeres (2014-06-07 21:28:24)

Offline

Board footer

Powered by FluxBB