all audio signals to jack

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
hdr
Established Member
Posts: 138
Joined: Sun Feb 03, 2019 1:47 pm
Has thanked: 1 time

all audio signals to jack

Post by hdr »

After starting jack and ardour, the sound from ardour goes to my external sound card, but all the other sounds go to the internal. That's very annoying while watching youtube tutorials at the same time as using ardour.

This seems to be a solution for that problem:
https://askubuntu.com/questions/572120/ ... dio-device

But it doesn't work for me:

Code: Select all

pacmd set-default-sink jack_out
No PulseAudio daemon running, or not running as session daemon.
OS: Debian 10 DAW: Ardour 6.2
User avatar
nikgnomicradio
Established Member
Posts: 109
Joined: Wed Feb 07, 2018 9:31 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: all audio signals to jack

Post by nikgnomicradio »

Pulseaudio default sink is saved to home folder in ~/.config/pulse/

to see current default sink:

Code: Select all

cat ~/.config/pulse/*default-sink
to change it to use Pulseaudio JACK Sink:

Code: Select all

sed -i 's/.*/jack_out/g' ~/.config/pulse/*default-sink
OR install pasytray
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: all audio signals to jack

Post by bluebell »

hdr wrote:After starting jack and ardour, the sound from ardour goes to my external sound card, but all the other sounds go to the internal. That's very annoying while watching youtube tutorials at the same time as using ardour.

This seems to be a solution for that problem:
https://askubuntu.com/questions/572120/ ... dio-device

But it doesn't work for me:

Code: Select all

pacmd set-default-sink jack_out
No PulseAudio daemon running, or not running as session daemon.
http://marzen.de/Holger/pulseaudio_and_jack/

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

hdr
Established Member
Posts: 138
Joined: Sun Feb 03, 2019 1:47 pm
Has thanked: 1 time

Re: all audio signals to jack

Post by hdr »

@bluebell: I did that http://marzen.de/Holger/pulseaudio_and_jack/
Now my audio doesn't work at all. no sound on internal, no sound on external sound card - also after quitting jack :(
OS: Debian 10 DAW: Ardour 6.2
User avatar
bluebell
Established Member
Posts: 1909
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland, Germany
Has thanked: 111 times
Been thanked: 116 times

Re: all audio signals to jack

Post by bluebell »

hdr wrote:@bluebell: I did that http://marzen.de/Holger/pulseaudio_and_jack/
Now my audio doesn't work at all. no sound on internal, no sound on external sound card - also after quitting jack :(
When you route everything over jack then you shouldn't stop jack.

Linux – MOTU UltraLite AVB – Qtractor – http://suedwestlicht.saar.de/

hdr
Established Member
Posts: 138
Joined: Sun Feb 03, 2019 1:47 pm
Has thanked: 1 time

Re: all audio signals to jack

Post by hdr »

Hmkay, that's not the solution I was searching for.

I want all audio go trough the internal soundcard (without jack) and all going trough the external one when jack is started.
Is there a way to realize that?
OS: Debian 10 DAW: Ardour 6.2
User avatar
nikgnomicradio
Established Member
Posts: 109
Joined: Wed Feb 07, 2018 9:31 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: all audio signals to jack

Post by nikgnomicradio »

Code: Select all

I want all audio go trough the internal soundcard (without jack) and all going trough the external one when jack is started
for external soundcard set Pulseaudio Profile to Off

if Pulseaudio is not switching from internal soundcard to jack_out default sink,
can change internal soundcard Profile to Off when JACK is running

but need to change internal soundcard Profile back to Analog Stereo Output(or similar) when JACK is stopped

my JACK post-start script uses this command:

Code: Select all

pactl set-card-profile alsa_card.pci-0000_04_06.0 off
and this for when JACK stopped:

Code: Select all

pactl set-card-profile alsa_card.pci-0000_04_06.0 output:analog-stereo
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: all audio signals to jack

Post by khz »

==> Install "a2jmidid" and "pulseaudio-module-jack".
Jack without pulseaudio:
In qjackctl Setup:
Setup >> Options > [X] Execute script at startup: "systemctl --user stop pulseaudio.socket && systemctl --user stop pulseaudio.service"
Setup >> Options > [X] Run script after shutdown: "killall -9 jackdbus && systemctl --user start pulseaudio.socket && systemctl --user start pulseaudio.service")
# viewtopic.php?f=19&t=18436
?
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
hdr
Established Member
Posts: 138
Joined: Sun Feb 03, 2019 1:47 pm
Has thanked: 1 time

Re: all audio signals to jack

Post by hdr »

nikgnomicradio wrote:my JACK post-start script uses this command:

Code: Select all

pactl set-card-profile alsa_card.pci-0000_04_06.0 off
and this for when JACK stopped:

Code: Select all

pactl set-card-profile alsa_card.pci-0000_04_06.0 output:analog-stereo
I put the same lines to my jack configuration (of course changed to my soundcard: alsa_card.pci-0000_00_1b.0)

After starting jack the internal soundcard is quiet and after quitting jack the sound is coming again from the internal one. Quite good :)

But as long as jack is running, there is no sound from e.g. youtube.
OS: Debian 10 DAW: Ardour 6.2
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 92 times

Re: all audio signals to jack

Post by khz »

This is because, for example, Firefox can only be built (compiled) with "jack" or "pulseaudio". And "jack" is unfortunately not the first choice for most distributions, not only for Firefox. For example: https://gpo.zugaina.org/www-client/firefox/USE#ptabs.
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
User avatar
Linuxmusician01
Established Member
Posts: 1524
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland
Has thanked: 756 times
Been thanked: 135 times

Re: all audio signals to jack

Post by Linuxmusician01 »

Will this shell script do the trick for you after making the config file?

Code: Select all

┌─────────────────────────────────────┐
│              Audio menu             │
└─────────────────────────────────────┘
Use ↑ and ↓ keys to select and Enter
to execute.

 Jack audio daemon: start               
                  : kill                
 Check Midi       : port numbers        
                  : output              
 Check Alsa       : device/card numbers 
 Pulseaudio       : start               
                  : stop                
                  : PAVUControl         
 Config file      : create/edit         
                  : delete              
                  : view                
 Help                                  
 Exit                                  

Tip: call the script "menuaudio.sh".
User avatar
nikgnomicradio
Established Member
Posts: 109
Joined: Wed Feb 07, 2018 9:31 pm
Has thanked: 1 time
Been thanked: 7 times
Contact:

Re: all audio signals to jack

Post by nikgnomicradio »

hdr wrote: But as long as jack is running, there is no sound from e.g. youtube.
if JACK is started + both cards have Pulseaudio Profile set to Off
then need Pulseaudio JACK Sink for audio playback to JACK

if not already added when JACK started

Code: Select all

pactl load-module module-jack-sink
hdr
Established Member
Posts: 138
Joined: Sun Feb 03, 2019 1:47 pm
Has thanked: 1 time

Re: all audio signals to jack

Post by hdr »

Thank you so much - it's working now.
I didn't turn of both cards.
this is my post startup script:

Code: Select all

pactl set-card-profile alsa_card.pci-0000_00_1b.0 off && pactl set-card-profile alsa_card.usb-Burr-Brown_from_TI_USB_Audio_CODEC-00 off && pactl load-module module-jack-sink
and my post shutdown script:

Code: Select all

pactl set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo
OS: Debian 10 DAW: Ardour 6.2
Post Reply