[Pkg-alsa-devel] Bug#925455: alsa volume never saved/restored

Hartmut Buhrmester debian-bugreports-elnw-ussu at hartmut-buhrmester.de
Mon Apr 8 13:41:16 BST 2019


> Looking a bit further it seems that /var/lib/alsa/asound.state doesn't
> exist.
> 
> That means that we are facing a chicken-egg problem here, the file will
> never be created as the service is never started (and then never
> stopped).

I don't know, if it helps, but I could manually create a working 
settings file with:

alsactl -f /var/lib/alsa/asound.state init
alsactl -f /var/lib/alsa/asound.state store


In the shell:

> root at debian:/var/lib/alsa# alsactl -f /var/lib/alsa/asound.state init
> Found hardware: "ICH" "Analog Devices AD1881A" "AC97a:41445348" "0x1043" "0x11d4"
> Hardware is initialized using a generic method
> root at debian:/var/lib/alsa# ls -l
> insgesamt 0
> root at debian:/var/lib/alsa# alsactl -f /var/lib/alsa/asound.state store
> root at debian:/var/lib/alsa# ls -l
> insgesamt 8
> -rw-r--r-- 1 root root 5680 Apr  7 18:55 asound.state
> root at debian:/var/lib/alsa# 


Since then, the sound level was properly saved and restored on restart.

/var/log/syslog on start:

> Apr  7 19:41:46 debian systemd[1]: Starting Save/Restore Sound Card State...
> Apr  7 19:41:46 debian systemd[1]: Started Save/Restore Sound Card State.
> Apr  7 19:41:46 debian systemd[1]: Reached target Sound Card.

/var/log/syslog on shutdown:

> Apr  7 19:45:17 debian systemd[1]: Stopped target Sound Card.
> Apr  7 19:45:17 debian systemd[1]: Stopping Save/Restore Sound Card State...

I doesn't say "Stopped Save/Restore Sound Card State.", though. So the 
last confirmation seems to be missing. But it still works, as far as I 
can tell...


I think, I always needed to run "alsactl init" at least once since 
Debian 8 Jessie, and this is still mentioned in the Debian Wiki:

> Configure alsa by running the command 'alsactl init' as root. Then
> reboot and try to test your sound.

-- https://wiki.debian.org/ALSA


Regards,

Hartmut Buhrmester



More information about the Pkg-alsa-devel mailing list