Re: ALSA config always overwritten at startup?

zentara_at_highstream.net
Date: 01/05/05


Date: Wed, 05 Jan 2005 11:05:48 -0500

On Tue, 04 Jan 2005 15:22:46 GMT, Felix Rawlings <fraw@yahoo.com> wrote:

>On Tue, 04 Jan 2005 06:27:52 -0800, R wrote:
>
>> Hello.
>>
>> I've got some strange problems with ALSA configuration.
>>
>> After each start all my mixer settings are zeroed and each time my
>> Linux starts I'll have to setup all things again and again and again...
>>
>> It's really annoying.
>
> ALSA is broken. You'd be better off reverting to the OSS drivers, until
>the ALSA developers decide to make ALSA usable by ordinary users.
>

ALSA works very well, it isn't broken, but you need to save
your mixer settings and restore them on boot. It's not difficult at
all, and almost all distros do this for you in the set of init scripts.

All you need to do is in your rc.local script ( or boot.local or
whatever your distro calls it) put:
alsactl restore 0

Some distros have an alsa-startup script which does this for you.
It needs to be done after you've modprobed the card and installed
your soundfonts.

You can also put in your halt.local this
alsactl store 0

to save your settings on shutdown. If you don't have
(or can't find your halt.local) just get your mixer settings
the way you like them and run as root "alsactl store 0".

That makes a file called /etc/asound.state which saves your settings.

-- 
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html


Relevant Pages

  • Re: Question on ALSA
    ... Why is it that ALSA announces ... >that it is storing the mixer settings during shutdown, ... >but when I restart, all my volumes are back at zero? ...
    (Debian-User)
  • Re: Re: Sound troubles
    ... > now that many of the audio devices that MAKEDEV is supposed to make are ... alsa, disk writer, esound and oss. ... setting it to alsa and see if you hear any sound. ... mixer settings ...
    (Debian-User)
  • alsa suddenly mutes at bootup
    ... I have debian sarge with alsa fully configured. ... Shutting down the computer does say it stores mixer settings /and/ ALSA ... But they always mute the master channel. ...
    (Debian-User)
  • Re: no alsa audio
    ... ALSA is included in FC2, so you should have alsa-lib and alsa-utils at ... ALSA starts with various audio channels set to volume zero and "mute". ... shutdown/reboot process would save the mixer settings. ...
    (Fedora)
  • Re: Help with getting a script to run at bootup..
    ... Scott Gardner adjusted his tin foil beanie and asbestos underwear to ... is there a place I can put my script so that it will execute ... back in as you have determined that it is a setting in the KDE startup ... But starting with 9.1 it seems that the mixer settings have got to be ...
    (alt.os.linux.suse)