Date: Fri, 30 Sep 2011 03:44:51 +0200 From: Polytropon <freebsd@edvax.de> To: Antonio Olivares <olivares14031@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Volume control in mplayer resetting 50% when starting / stopping video clips Message-ID: <20110930034451.8b8b51d4.freebsd@edvax.de> In-Reply-To: <CAJ5UdcOEvmCu86xKVz52WjuTffQsyGu-=jMLBgbFnC=ope=6Bg@mail.gmail.com> References: <20110929062327.e2540d4b.freebsd@edvax.de> <20110929172748.GA6639@freebsd.org> <CAJ5UdcOEvmCu86xKVz52WjuTffQsyGu-=jMLBgbFnC=ope=6Bg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 29 Sep 2011 20:33:45 -0500, Antonio Olivares wrote: > > try 'sysctl hw.snd.vpc_autoreset=0'. > > > Question, > > On one of my home machines, I have mixer pcm & vol set to 100% : > > [olivares@tricorehome /usr/home/olivares]$ mixer > Mixer vol is currently set to 100:100 > Mixer pcm is currently set to 100:100 > Mixer line is currently set to 75:75 > Mixer mic is currently set to 0:0 > Mixer rec is currently set to 81:81 > Mixer igain is currently set to 0:0 > Mixer ogain is currently set to 50:50 > Mixer monitor is currently set to 75:75 > Recording source: mic I've also tried: First I set the mixer settings to the ones you have, at least the relevant ones: % mixer vol 100 % mixer pcm 100 >From the last time, I had set mplayer's volume to zero. Starting mplayer, no sound could be heared - as expected, even as "mixer" displayed 100 for "pcm" and "vol". See my conclusion: It seems that mplayer handles volume setting _separated_ from mixer's "vol" and "pcm". > in /boot/device.hints > > hint.pcm.0.vol="100" > hint.pcm.1.vol="100" > hint.pcm.2.vol="100" Nice, didn't know about those yet. Basically, FreeBSD's shutdown saves _current_ mixer settings, and the startup restores them. So if you leave settings at 100, they should be kept there. > But when I play with mplayer, the pcm setting is at 48% Seems to equal my 50% assumption. > I then increase the sound level by using the (*) key to increase it > and the (/) key to lower it. I had reason to believe that once I > would set up the sound using /boot/device.hints, it would be (set in > stone) forever, but on starting up the system, mplayer puts it back at > 48%. As it has done before here. I've tried your test with * and /, as well as 9 and 0, and I don't see any changes in the "mixer" output. However, when I use the volume keys (that control the "mixer" command) a setting change can be seen. So I assume... mplayer does have some kind of internal audio level setting? As I said: no change in "pcm" or "vol" when changing volume inside mplayer in the default configuration, as it was my initial conclusion. NB: I know that mplayer's keys can be set to change "vol" instead of "pcm", but that does not seem to be the default setting! > Will the systcl hw.snd.vpc autoreset=0 command cure this illness as well? Try it - it seems to be correct, at least from my few testing. > If it does, do I add it to /boot/device.hints? and it is a done deal! > or no deal! :( I've added it to /etc/sysctl.conf. > I have always wanted to ask but was not sure it it was freebsd or > mplayer's configuration. In ultraworst case, freebsd-question@ is the right list to ask. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110930034451.8b8b51d4.freebsd>