Page 1 of 1
all audio signals to jack
Posted: Sun Dec 08, 2019 3:40 pm
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.
Re: all audio signals to jack
Posted: Mon Dec 09, 2019 7:43 am
by nikgnomicradio
Pulseaudio default sink is saved to home folder in ~/.config/pulse/
to see current 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
Re: all audio signals to jack
Posted: Mon Dec 09, 2019 8:52 am
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/
Re: all audio signals to jack
Posted: Mon Dec 09, 2019 10:27 am
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
Re: all audio signals to jack
Posted: Mon Dec 09, 2019 6:09 pm
by bluebell
When you route everything over jack then you shouldn't stop jack.
Re: all audio signals to jack
Posted: Mon Dec 09, 2019 9:59 pm
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?
Re: all audio signals to jack
Posted: Tue Dec 10, 2019 1:27 am
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
Re: all audio signals to jack
Posted: Tue Dec 10, 2019 5:52 am
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
?
Re: all audio signals to jack
Posted: Tue Dec 10, 2019 8:38 pm
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.
Re: all audio signals to jack
Posted: Wed Dec 11, 2019 5:12 am
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.
Re: all audio signals to jack
Posted: Wed Dec 11, 2019 11:58 am
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".
Re: all audio signals to jack
Posted: Wed Dec 11, 2019 7:33 pm
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
Re: all audio signals to jack
Posted: Wed Dec 11, 2019 10:04 pm
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