Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2011 07:30:40 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        Antonio Olivares <olivares14031@gmail.com>
Cc:        Polytropon <freebsd@edvax.de>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Volume control in mplayer resetting 50% when starting / stopping video clips
Message-ID:  <20110930073040.GA97145@freebsd.org>
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 Sep 29 11, 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
> 
> in /boot/device.hints
> 
> hint.pcm.0.vol="100"
> hint.pcm.1.vol="100"
> hint.pcm.2.vol="100"
> 
> But when I play with mplayer, the pcm setting is at 48%
> 
> 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%.
> 
> Will the systcl hw.snd.vpc autoreset=0 command cure this illness as well?
> 
> If it does, do I add it to /boot/device.hints?  and it is a done deal!
> or no deal! :(
> 
> I have always wanted to ask but was not sure it it was freebsd or
> mplayer's configuration.

try the following:

rm /var/db/mixer*-state
sysctl hw.snd.vpc_reset=1
systcl hw.snd.vpc_autoreset=0
echo "hw.snd.vpc_autoreset=0" >> /etc/sysctl.conf

cheers.
alex

> 
> Regards,
> 
> Antonio



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110930073040.GA97145>