Hello.
On a Gentoo systemd system, with alsa-restore.service enabled, alsactl
sometimes fails to restore the mixer settings at system boot. Failure
rate is about 50/50. Half the time it restores correctly, half the time
it does nothing.
However, even when it fails, systemd thinks it succeeded:
------------------------
# systemctl status alsa-restore.service
● alsa-restore.service - Save/Restore Sound Card State
Loaded: loaded (/lib/systemd/system/alsa-restore.service; static;
vendor preset: disabled)
Drop-In: /etc/systemd/system/alsa-restore.service.d
└─override.conf
Active: active (exited) since Mon 2018-01-29 11:16:28 EET; 10min ago
Process: 204 ExecStart=/usr/sbin/alsactl restore (code=exited,
status=0/SUCCESS)
Main PID: 204 (code=exited, status=0/SUCCESS)
Jan 29 11:16:25 gentoopc systemd[1]: Starting Save/Restore Sound Card
State...
Jan 29 11:16:28 gentoopc systemd[1]: Started Save/Restore Sound Card State.
------------------------
However, the error can be seen in the logs:
------------------------
systemd[1]: Started Save/Restore Sound Card State.
systemd[1]: Reached target Sound Card.
systemd[1]: Startup finished in 1.876s (kernel) + 10.341s (userspace) =
12.218s.
systemd-udevd[151]: Process '/usr/sbin/alsactl restore 1' failed with
exit code 99.
ystemd-udevd[149]: Process '/usr/sbin/alsactl restore 0' failed with
exit code 99.
------------------------
(The "1" in the logs is a USB microphone.)
This only happens at boot. Once I log in to the system, this command
*never* fails:
# alsactl restore
My sound card is a Xonar D1, using the Virtuso driver
(CONFIG_SND_VIRTUOSO) build-in into the kernel (not a kernel module.)
This is not a recent problem. It's been happening forever. However, only
with systemd. With OpenRC, it was always working fine.
Kernel 4.14.15 (AMD64)
systemd 236
alsa-utils 1.1.5
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user