[alsa-devel] Since kernel-2.6.32, alsactl fails to restore defaults

Jaroslav Kysela perex at perex.cz
Sun Feb 14 20:10:20 CET 2010

On Sun, 14 Feb 2010, Pacho Ramos wrote:

> El dom, 14-02-2010 a las 19:20 +0100, Jaroslav Kysela escribió:
>> I agree, this value is bogus. I just fixed the code to return exit code
>> 99 as described in init/00main:
>> http://git.alsa-project.org/?p=alsa-utils.git;a=commitdiff;h=69c6bead434e7a4a546ab1300413312994b93e35
>>> What could I do? Thanks for helping me, if you need more information,
>>> simply ask me for it :-)
>> There are two ways to fix this issue for your distro:
>> 1) modify the script which calls alsactl and add a check for code 99
>>     (it may ignore this exit code) - assuming that patch above is applied
>> 2) change init/00main - EXIT="99" line to EXIT="0"
>> But from your gentoo bug, I guess that your system don't save the last
>> soundcard state to /var/lib/alsa/asound.state correctly - it's looks like
>> a bug in the init scripts for your distro.
>> Or it might be totaly different issue - could you send me your
>> /var/lib/alsa/asound.state file and file test.state generated using
>> 'alsactl -f test.state store' command?
>>  						Jaroslav
> Yes, of course :-)

The files look good. The question is why the initialization is called 
when a default state already exists (it shouldn't).

Does 'alsactl -f test.state restore' show some messages? Use test.state 
file you sent me.


Jaroslav Kysela <perex at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

More information about the Alsa-devel mailing list