From 28964984f188434352a327a3fcc99d6f050ed2a1 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 30 Nov 2014 18:29:55 +0100 Subject: start_jack: Added disabling of pulseaudio before starting jack, as it breaks system audio when using USB-MIDI interfaces. --- bin/start_jack | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/start_jack b/bin/start_jack index 0c99aab..dfd6e4f 100755 --- a/bin/start_jack +++ b/bin/start_jack @@ -25,9 +25,11 @@ case "$HOSTNAME" in DEVICE="/dev/fw1" # TODO: Add settings from separate config file if [[ -e $DEVICE && -r $DEVICE && -w $DEVICE ]]; then + echo "Stopping pulseaudio" + systemctl --user stop pulse echo "Setting up "$DEVICE" with JACK." jack_control start - sudo schedtool -R -p 20 `pidof jackdbus` +# sudo /usr/bin/schedtool -R -p 20 `pidof jackdbus` jack_control eps realtime true jack_control ds firewire jack_control dps device $DEVICE @@ -36,7 +38,7 @@ case "$HOSTNAME" in jack_control dps period 256 sleep 3 a2jmidid -e & - sudo schedtool -R -p 20 `pidof a2jmidid` +# sudo /usr/bin/schedtool -R -p 20 `pidof a2jmidid` rm ~/.config/SuperCollider/startup.scd ln -s ~/.config/SuperCollider/startupfiles/electronicStudio.scd ~/.config/SuperCollider/startup.scd -v else -- cgit v1.2.3-70-g09d2 From 5405865aa15a2bc9bcbdfa6624a34068e122b4ff Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 30 Nov 2014 18:30:31 +0100 Subject: stop_jack: Added enabling of pulseaudio after disabling of JACK. --- bin/stop_jack | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin') diff --git a/bin/stop_jack b/bin/stop_jack index 9c47548..786f16a 100755 --- a/bin/stop_jack +++ b/bin/stop_jack @@ -3,6 +3,9 @@ jack_control stop sleep 3 jack_control exit + +systemctl --user start pulse + exit 0 #kill $(pidof jackd) -- cgit v1.2.3-70-g09d2