[systemd-devel] Tuning A/V at Boot

Kok, Auke-jan H auke-jan.h.kok at intel.com
Sat Jun 8 22:00:12 PDT 2013


On Sat, Jun 8, 2013 at 5:43 PM,  <systemdkiosk at yopmail.com> wrote:
> Where in boot sequence tune A/V latency? Is sound.target relevant?

anything device specific should be triggered from a udev rule, so that
you're not running this service while the device isn't actually
available yet to userspace...

systemd already installs a 99-systemd.rules file that has:

SUBSYSTEM=="sound", KERNEL=="card*", TAG+="systemd",
ENV{SYSTEMD_WANTS}+="sound.target"

So linking your service file into sound.target.wants should work.
(but, I haven't tested this particular case or taget myself).

you probably want to do:

# mkdir /etc/systemd/system/sound.target.wants
# ln -sf /path/to/your.service
/etc/systemd/system/sound.target.wants/your.service


Auke


More information about the systemd-devel mailing list