all audio signals to jack

Optimize your system for ultimate performance.

Moderators: khz, MattKingUSA

hdr
Established Member
Posts: 65
Joined: Sun Feb 03, 2019 1:47 pm

all audio signals to jack

Postby hdr » Sun Dec 08, 2019 3:40 pm

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 5

User avatar
nikgnomicradio
Established Member
Posts: 90
Joined: Wed Feb 07, 2018 9:31 pm
Contact:

Re: all audio signals to jack

Postby nikgnomicradio » Mon Dec 09, 2019 7:43 am

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: 1242
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: all audio signals to jack

Postby bluebell » Mon Dec 09, 2019 8:52 am

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 – https://soundcloud.com/suedwestlicht

hdr
Established Member
Posts: 65
Joined: Sun Feb 03, 2019 1:47 pm

Re: all audio signals to jack

Postby hdr » Mon Dec 09, 2019 10:27 am

@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 5

User avatar
bluebell
Established Member
Posts: 1242
Joined: Sat Sep 15, 2012 11:44 am
Location: Saarland & Frankfurt, Germany

Re: all audio signals to jack

Postby bluebell » Mon Dec 09, 2019 6:09 pm

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 – https://soundcloud.com/suedwestlicht

hdr
Established Member
Posts: 65
Joined: Sun Feb 03, 2019 1:47 pm

Re: all audio signals to jack

Postby hdr » Mon Dec 09, 2019 9:59 pm

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 5

User avatar
nikgnomicradio
Established Member
Posts: 90
Joined: Wed Feb 07, 2018 9:31 pm
Contact:

Re: all audio signals to jack

Postby nikgnomicradio » Tue Dec 10, 2019 1:27 am

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: 1244
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: all audio signals to jack

Postby khz » Tue Dec 10, 2019 5:52 am

==> 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: 65
Joined: Sun Feb 03, 2019 1:47 pm

Re: all audio signals to jack

Postby hdr » Tue Dec 10, 2019 8:38 pm

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 5

User avatar
khz
Established Member
Posts: 1244
Joined: Thu Apr 17, 2008 6:29 am
Location: German

Re: all audio signals to jack

Postby khz » Wed Dec 11, 2019 5:12 am

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: 697
Joined: Mon Feb 23, 2015 2:38 pm
Location: Holland

Re: all audio signals to jack

Postby Linuxmusician01 » Wed Dec 11, 2019 11:58 am

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: 90
Joined: Wed Feb 07, 2018 9:31 pm
Contact:

Re: all audio signals to jack

Postby nikgnomicradio » Wed Dec 11, 2019 7:33 pm

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: 65
Joined: Sun Feb 03, 2019 1:47 pm

Re: all audio signals to jack

Postby hdr » Wed Dec 11, 2019 10:04 pm

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 5


Return to “System Tuning and Configuration”

Who is online

Users browsing this forum: No registered users and 1 guest