From b9107a261fc230da7d864bbbade848fbd90621ef Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 20 Mar 2015 03:13:57 +0100 Subject: jack: Adding a sample configuration file for a firewire device and a JACK systemd --user service file. --- config/fw1 | 13 +++++++++++++ user/jack@.service | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 config/fw1 create mode 100644 user/jack@.service diff --git a/config/fw1 b/config/fw1 new file mode 100644 index 0000000..f597ba6 --- /dev/null +++ b/config/fw1 @@ -0,0 +1,13 @@ +# Sample configuration file for a JACK systemd --user service, using a firewire device +NAME="default" +DRIVER="firewire" +DEVICE="/dev/fw1" +NOMLOCK="" +REALTIME="-R" +PORTMAX=512 +UNLOCK="-u" +VERBOSE="-v" +DRIVER_SETTINGS="\ + -n 3 \ + -p 256\ + -r 48000" diff --git a/user/jack@.service b/user/jack@.service new file mode 100644 index 0000000..9d4477a --- /dev/null +++ b/user/jack@.service @@ -0,0 +1,15 @@ +[Unit] +Description=JACK Audio +After=sound.target local-fs.target + +[Service] +EnvironmentFile=-/etc/conf.d/%i +EnvironmentFile=-%h/.config/jack/%i +ExecStart=/usr/bin/jackd -n $NAME $REALTIME -p $PORTMAX -d $DRIVER -d $DEVICE $DRIVER_SETTINGS +CPUSchedulingPolicy=rr +CPUSchedulingPriority=70 +LimitRTPRIO=71 +LimitRTTIME=-1 + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2