From owner-freebsd-questions@FreeBSD.ORG Tue Sep 18 14:47:43 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C36F16A417 for ; Tue, 18 Sep 2007 14:47:43 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (66-230-99-27-cdsl-rb1.nwc.acsalaska.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 0072713C491 for ; Tue, 18 Sep 2007 14:47:42 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 10A0F1CDEE for ; Tue, 18 Sep 2007 06:47:41 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Tue, 18 Sep 2007 16:47:40 +0200 User-Agent: KMail/1.9.7 References: <950c85d80709171222o596ef293p75a793d87b45f38b@mail.gmail.com> <46EEE1E2.7080106@xxiii.com> In-Reply-To: <46EEE1E2.7080106@xxiii.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709181647.41133.fbsd.questions@rachie.is-a-geek.net> Subject: Re: mixer levels on boot 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: Tue, 18 Sep 2007 14:47:43 -0000 On Monday 17 September 2007 22:21:54 Rob wrote: > Harry Doyle wrote: > > however whenever i reboot the machine the mixer command always shows the > > default level of 90 which clips pretty hard. > > My 6.2 system saves and restores the mixer settings across boots. > Apparently in the file /var/db/mixer0-state However, the file is root > owned and 644; perhaps if you create the file and chmod it writable, your > settings will stick? Nope. These are saved by /etc/rc.d/mixer. Adjust the mixer under root account to your desired values and call `/etc/rc.d/mixer stop'. This will save the state. Reboot to test. If this doesn't work, then somehow, the mixer is set to different values during shutdown and before /etc/rc.d/mixer is called and that's tricky to find out -but a desktop mixer like kmix can be the cause of that if you're running a desktop environment via xdm/kdm/gdm. -- Mel