[systemd-devel] alsa-restore.service seems to be too early

Peter Sztan sztanpet at gmail.com
Sun Sep 2 08:44:18 PDT 2012


On Sun, Sep 2, 2012 at 4:48 PM, Вечный Студент <student975 at yandex.ru> wrote:
> In accordance with
>
> ~ $ cat /etc/modprobe.d/alsa.conf
> options snd slots=snd-hda-intel,snd-hdsp,snd-usb-audio
>
> I have three sound cards. The second one's state (snd-hdsp) isn't restored after booting up (say, Sample Clock Source parameter is set to default 48 KHz rather to AutoSync). Starting 'alsactl restore' manually restores the state. Used service is listed below. Where to dig in?
>

Are you sure the sound cards are initialized by the time systemd tries
to call your service? If no, you must synchronize with udev (or just
order the service to a later time).

>
> a
>
> //-------------------
> ~ $ sudo systemctl | grep basic
> basic.target              loaded active active        Basic System
> ~ $ cat /usr/lib/systemd/system/basic.target.wants/alsa-restore.service
> [Unit]
> Description=Restore Sound Card State
> DefaultDependencies=no
> After=sysinit.target
> Before=shutdown.target
> Conflicts=shutdown.target
>
> [Service]
> Type=oneshot
> ExecStart=-/usr/sbin/alsactl restore
> StandardOutput=syslog
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list