From owner-freebsd-questions@FreeBSD.ORG Fri Sep 30 07:30:40 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 142561065670; Fri, 30 Sep 2011 07:30:40 +0000 (UTC) Date: Fri, 30 Sep 2011 07:30:40 +0000 From: Alexander Best To: Antonio Olivares Message-ID: <20110930073040.GA97145@freebsd.org> References: <20110929062327.e2540d4b.freebsd@edvax.de> <20110929172748.GA6639@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: Polytropon , FreeBSD Questions Subject: Re: Volume control in mplayer resetting 50% when starting / stopping video clips X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Sep 2011 07:30:40 -0000 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