Salut
Le service alsa-restore.service utilise /run qui est en tmpfs donc volatile
Pour pouvoir sauvegarder les paramètres alsa au stop et les restaurer au démarrage j’ai modifié ainsi pour utiliser /var/lib/alsa
cat /lib/systemd/system/alsa-restore.service
#
# Note that two different ALSA card state management schemes exist and they
# can be switched using a file exist check - /etc/alsa/state-daemon.conf .
#
[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
ExecStart=-/usr/sbin/alsactl -E HOME=/var/lib/alsa restore
ExecStop=-/usr/sbin/alsactl -E HOME=/var/lib/alsa store
Apparement c’est bon`:slight_smile:
systemctl status alsa-restore.service
● alsa-restore.service - Save/Restore Sound Card State
Loaded: loaded (/lib/systemd/system/alsa-restore.service; static; vendor preset: enabled)
Active: active (exited) since Thu 2017-08-17 20:37:36 CEST; 1min 24s ago
Docs: man:alsactl(1)
Process: 578 ExecStart=/usr/sbin/alsactl -E HOME=/var/lib/alsa restore (code=exited, status=0/SUCCESS)
Main PID: 578 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/alsa-restore.service
août 17 20:37:36 debian systemd[1]: Starting Save/Restore Sound Card State...
août 17 20:37:36 debian systemd[1]: Started Save/Restore Sound Card State.
Avant le premier reboot generer une sauvegarde
sudo /usr/sbin/alsactl -E HOME=/var/lib/alsa store