[Pkg-alsa-devel] Bug#872479: alsa-utils: alsa-restore.service uses /run which is tmpfs

Grand T grandtoubab at msn.com
Fri Aug 18 16:32:13 UTC 2017


To ensure a full restore of all level ( PCM for example) i modify the service as below


[Unit]
Description=Save/Restore Sound Card State
Documentation=man:alsactl(1)
ConditionPathExists=!/etc/alsa/state-daemon.conf
ConditionPathExistsGlob=/dev/snd/control*
After=alsa-state.service

[Service]
Type=oneshot
RemainAfterExit=true
ExecStartPre=/bin/sleep 60
ExecStart=-/usr/sbin/alsactl -E HOME=/var/lib/alsa restore
ExecStop=-/usr/sbin/alsactl -E HOME=/var/lib/alsa store

So it is much better and done after all snd management

journalctl -b|grep -i -e alsa -e sound -e snd août 18 17:47:13 debian kernel: snd_hda_intel 0000:02:00.1: Refused to change power state, currently in D3 août 18 17:47:13 debian kernel: snd_hda_intel 0000:02:00.1: Handle vga_switcheroo audio client août 18 17:47:13 debian kernel: snd_hda_intel 0000:02:00.1: VGA controller is disabled août 18 17:47:13 debian kernel: snd_hda_intel 0000:02:00.1: Delaying initialization août 18 17:47:13 debian kernel: snd_hda_codec_idt hdaudioC0D0: autoconfig for 92HD81B1X5: line_outs=1 (0xd/0x0/0x0/0x0/0x0) type:speaker août 18 17:47:13 debian kernel: snd_hda_codec_idt hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0) août 18 17:47:13 debian kernel: snd_hda_codec_idt hdaudioC0D0: hp_outs=1 (0xb/0x0/0x0/0x0/0x0) août 18 17:47:13 debian kernel: snd_hda_codec_idt hdaudioC0D0: mono: mono_out=0x0 août 18 17:47:13 debian kernel: snd_hda_codec_idt hdaudioC0D0: inputs: août 18 17:47:13 debian kernel: snd_hda_codec_idt hdaudioC0D0: Internal Mic=0x11 août 18 17:47:13 debian kernel: snd_hda_codec_idt hdaudioC0D0: Mic=0xa août 18 17:47:13 debian kernel: input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:14.2/sound/card0/input12 août 18 17:47:13 debian kernel: input: HDA ATI SB Mic as /devices/pci0000:00/0000:00:14.2/sound/card0/input13 août 18 17:47:13 debian kernel: input: HDA ATI SB Front Headphone as /devices/pci0000:00/0000:00:14.2/sound/card0/input14 août 18 17:47:15 debian systemd[1]: Reached target Sound Card. août 18 17:47:23 debian systemd[1]: Starting Save/Restore Sound Card State... août 18 17:47:46 debian kernel: snd_hda_intel 0000:02:00.1: Start delayed initialization août 18 17:47:46 debian kernel: snd_hda_intel 0000:02:00.1: CORB reset timeout#2, CORBRP = 65535 août 18 17:47:46 debian kernel: snd_hda_intel 0000:02:00.1: no codecs initialized août 18 17:47:46 debian kernel: snd_hda_intel 0000:02:00.1: initialization error août 18 17:48:23 debian systemd[1]: Started Save/Restore Sound Card State.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20170818/1a7243c9/attachment-0001.html>


More information about the Pkg-alsa-devel mailing list