From owner-freebsd-multimedia@FreeBSD.ORG Fri Jan 4 00:46:40 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6736016A417 for ; Fri, 4 Jan 2008 00:46:40 +0000 (UTC) (envelope-from j.witteveen@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185]) by mx1.freebsd.org (Postfix) with ESMTP id 3883013C4D9 for ; Fri, 4 Jan 2008 00:46:40 +0000 (UTC) (envelope-from j.witteveen@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so6337582rvb.43 for ; Thu, 03 Jan 2008 16:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=8hjifAq/bXbwrGQQaGewy9zQxfjGDtcCHScYCDFEiu4=; b=WU34t0z4QnXudB3KY6AujqC5/bLXdoNk9KJ2YedfPXCM3nWSs4hFyv3NWdk7GkQIxYvG/Q9lXZ3xPraeQKeUrc9bOA32Ljn7lI1EWqjY6ufuJaCO98X/J8+zq26EQbw3hz5aoxJvFW7jf4lQgswgsndW66w6rt3gXVa5RtEjOuw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tLNFqd9ErWgrI+VfdK/tbomnJUBjYinvnxirZ9VloolzvzMRZ1lJ9BofFpIlwZNPbmFjBywAEZ04PT6KAOkOS1s/X71PlCcqE1+7BsfbAHgbYiSRrapRVJXk6s85VJQfVk7Y6b/xt4vwWxmdqhsE0voQCxSNGOS2MKFlLd/QZi4= Received: by 10.142.77.11 with SMTP id z11mr4935623wfa.23.1199407599724; Thu, 03 Jan 2008 16:46:39 -0800 (PST) Received: by 10.143.44.11 with HTTP; Thu, 3 Jan 2008 16:46:39 -0800 (PST) Message-ID: <3993a4980801031646rc5e0dd6t8bd040879bc29c8@mail.gmail.com> Date: Fri, 4 Jan 2008 01:46:39 +0100 From: "Jouke Witteveen" To: rick-freebsd@kiwi-computer.com In-Reply-To: <20080103192128.GA90170@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3993a4980801020535h4ef4d3ebr461892baa4e39082@mail.gmail.com> <200801031837.m03IbBrd005387@fire.js.berklix.net> <20080103192128.GA90170@keira.kiwi-computer.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: Mixer default values not restored X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jan 2008 00:46:40 -0000 On Jan 3, 2008 8:21 PM, Rick C. Petty wrote: > "Jouke Witteveen" wrote: > > Hello, > > > > I'm running FreeBSD 7.0 RC1 with the following in my kernel configuration: > > --- > > device sound > > device snd_emu10kx > > --- > > My soundcard is a Soundblaster Live! > > > > In trying to make the rear-channel volume default to "100" I added the > > following to my /boot/device.hints: > > --- > > hint.pcm.1.vol="100" > > hint.pcm.1.pcm="100" > > --- > > This method is suggested on page 164 (section 7.2.4) of the Handbook. > > > > The problem is that these mixer levels do not apply: > > --- > > $ mixer -f /dev/mixer1 > > Mixer vol is currently set to 75:75 > > Mixer pcm is currently set to 75:75 > > --- > > My guess is that the kernel sets those values while booting, but when > coming up multi-user, /etc/rc.d/mixer tries to reset them to the values at > the last shutdown time. Why don't you just add an rc.d script which fires > after mixer (by using a "# REQUIRE: mixer" line)?? > > -- Rick C. Petty > The mixer script was not in use. I now use it ("mixer_enable="YES" in rc.conf; thanks to a personal reply from John Nielsen) and it solves my initial problem. My guess is that either the hint does only work when pcm is compiled as a module, or support for it is dropped. In any case I think the Handbook should be updated. - Jouke