On Sun, Sep 2, 2012 at 4:48 PM, Вечный Студент <[email protected]> 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
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to