Re: persistent mixer volume levels (solved)

2006-04-14 Thread David J Brooks
On Friday 14 April 2006 16:21, David J Brooks wrote:

> Curious! I wrote up an rc.d script that seemes to work fine on reboot. I
> get console messages confirming that volume has been changed. But as soon
> as I log in, either as root or a normal user, I type 'mixer' and it shows
> the volume levels back where they were before.
>
> I'm guessing that there is something else either in rc.d or in the login
> sequence that is setting the mixer after my script runs. Any ideas what
> that might be?

Heh.. I should have explored more before asking. It all comes down 
to /etc/rc.d/mixer. This script resets all the volume levels from a saved 
state. The way to change it, (with persistence) is to set the mixer levels 
manually, then run '/etc/rc.d/mixer stop' which saves the current state.

Fortunately I named my unnecessary script 'volume' so that it hasn't 
overwritten the canonical /etc/rc.d/mixer script. :)

David
-- 
Sure God created the world in only six days,
but He didn't have an established user-base.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: persistent mixer volume levels

2006-04-14 Thread David J Brooks
On Friday 14 April 2006 15:33, Bigby Findrake wrote:
> On Fri, 14 Apr 2006, David J Brooks wrote:
> > What is the preferred method for making mixer volume levels persistent?
> > As it stands now my sounds levels are dropped to about 75% after each
> > reboot.
>
> I suppose preferred would depend on what your priorities are.  If you
> change the kernel source, it would be hard for you to change those
> defaults later, as opposed to making a startup script in
> /usr/local/etc/rc.d.
>
> If you want to set the kernel defaults, they appear to be in
> mixer.c (find /usr/src/sys -name mixer.c -print) in snd_mixerdefaults.

Curious! I wrote up an rc.d script that seemes to work fine on reboot. I get 
console messages confirming that volume has been changed. But as soon as I 
log in, either as root or a normal user, I type 'mixer' and it shows the 
volume levels back where they were before.

I'm guessing that there is something else either in rc.d or in the login 
sequence that is setting the mixer after my script runs. Any ideas what that 
might be?

David
-- 
Sure God created the world in only six days,
but He didn't have an established user-base.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: persistent mixer volume levels

2006-04-14 Thread Bigby Findrake

On Fri, 14 Apr 2006, David J Brooks wrote:


What is the preferred method for making mixer volume levels persistent? As it
stands now my sounds levels are dropped to about 75% after each reboot.


I suppose preferred would depend on what your priorities are.  If you 
change the kernel source, it would be hard for you to change those 
defaults later, as opposed to making a startup script in 
/usr/local/etc/rc.d.


If you want to set the kernel defaults, they appear to be in
mixer.c (find /usr/src/sys -name mixer.c -print) in snd_mixerdefaults.


/-/
The opinions above are solely those of a 12 year old hacker who has broken
into my account, and not those of my employer or any other organization.   


   finger://[EMAIL PROTECTED]
  http://www.ephemeron.org/~bigby/
  irc://irc.ephemeron.org/#the_pub
news://news.ephemeron.org/alt.lemurs
/-/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


persistent mixer volume levels

2006-04-14 Thread David J Brooks
What is the preferred method for making mixer volume levels persistent? As it 
stands now my sounds levels are dropped to about 75% after each reboot.

David
-- 
Sure God created the world in only six days,
but He didn't have an established user-base.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"