Jack setup issueswith some software
Moderators: MattKingUSA, khz
Jack setup issueswith some software
I setup jack with QjackCTL, this works fine with Bitwig but I have to turn off Jack for any other audio (spotify, browser) to play. I'm not sure if this is a routing problem or something else.
Any help would be appreciated.
cheers
Any help would be appreciated.
cheers
-
- Established Member
- Posts: 2047
- Joined: Tue Feb 16, 2016 6:56 am
- Location: Kangasala, Finland
- Has thanked: 369 times
- Been thanked: 208 times
- Contact:
Re: Jack setup issueswith some software
Those other softwares use pulseaudio. See http://jackaudio.org/faq/pulseaudio_and_jack.html
Linux veteran & Novice musician
Latest track: https://www.youtube.com/watch?v=ycVrgGtrBmM
- Linuxmusician01
- Established Member
- Posts: 1523
- Joined: Mon Feb 23, 2015 2:38 pm
- Location: Holland
- Has thanked: 756 times
- Been thanked: 134 times
Re: Jack setup issueswith some software
Kill Jack with:
Start Pulseaudio with:
Code: Select all
pkill -9 jackdbus
killall jackd
Code: Select all
pulseaudio --start -v
Re: Jack setup issueswith some software
Why does anyone still use QjackCTL? Cadence is so much better. Just make sure you have the ALSA bridge running.gunga wrote:I setup jack with QjackCTL, this works fine with Bitwig but I have to turn off Jack for any other audio (spotify, browser) to play. I'm not sure if this is a routing problem or something else.
Pulseaudio has been banned from my computers for years and sound works fine for me on every situation. Before JACK, I just used plain ALSA and everything worked.
- sysrqer
- Established Member
- Posts: 2519
- Joined: Thu Nov 14, 2013 11:47 pm
- Has thanked: 319 times
- Been thanked: 148 times
- Contact:
Re: Jack setup issueswith some software
People have different needs. Pulseaudio is valuable for many people, including me (let me know how you can switch a stream of audio from my speakers to my HDMI output easily with alsa). Cadence has some issues working with pulseaudio and it's not possible for it to execute scripts. I agree that it is a fantastic piece of software and I generally prefer it but it doesn't suit all use cases.Luc wrote:Why does anyone still use QjackCTL? Cadence is so much better. Just make sure you have the ALSA bridge running.gunga wrote:I setup jack with QjackCTL, this works fine with Bitwig but I have to turn off Jack for any other audio (spotify, browser) to play. I'm not sure if this is a routing problem or something else.
Pulseaudio has been banned from my computers for years and sound works fine for me on every situation. Before JACK, I just used plain ALSA and everything worked.
- Linuxmusician01
- Established Member
- Posts: 1523
- Joined: Mon Feb 23, 2015 2:38 pm
- Location: Holland
- Has thanked: 756 times
- Been thanked: 134 times
Re: Jack setup issueswith some software
QJackCtl was not the problem if I'm not mistaken (Jack was). And Firefox won't output sound without Pulseaudio. And reading @Sysrqer's reply above, I have to admit: it's all a mess. I use a shell script to swiftly switch back and forth between Jack and PA. Dunno why I should use QJackctl (I use Qtractor which has a window w/ the most useful QJackCtl parts). So it doesn't have to be complicated, it's all just difficult to grasp.Luc wrote:Why does anyone still use QjackCTL? Cadence is so much better. Just make sure you have the ALSA bridge running.gunga wrote:I setup jack with QjackCTL, this works fine with Bitwig but I have to turn off Jack for any other audio (spotify, browser) to play. I'm not sure if this is a routing problem or something else.
Pulseaudio has been banned from my computers for years and sound works fine for me on every situation. Before JACK, I just used plain ALSA and everything worked.
Re: Jack setup issueswith some software
Sound in Firefox without Pulseaudio has always worked for me. Still does.
I don't want to be stubborn or pick up any fights over this. I'm just saying. FWIW.
AFAIK, Bluetooth doesn't work without Pulseaudio.
I don't want to be stubborn or pick up any fights over this. I'm just saying. FWIW.
AFAIK, Bluetooth doesn't work without Pulseaudio.
- khz
- Established Member
- Posts: 1648
- Joined: Thu Apr 17, 2008 6:29 am
- Location: German
- Has thanked: 42 times
- Been thanked: 92 times
Re: Jack setup issueswith some software
With Debian Firefox Audio only works with pulseaudio.
On Gentoo I can set the jack use flag for Firefox, so build it with jack support.
It depends on the distribution how they built the packages.
On Gentoo I can set the jack use flag for Firefox, so build it with jack support.
It depends on the distribution how they built the packages.
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
. . 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.
Re: Jack setup issueswith some software
OK great, I tried the code to kill pulse automatically, it doesn't seem to work.
I'll try cadence and see if that works better.
I'm having another separate issue now though, after trying to install airwave for VSTs Ubuntu doens't register and soundcard although if I use Jack and Bitwig, my USB focusrite works fine.
I'm going to try update, WINE and Airwave and see if that helps. It's odd though as it worked fine yesterday but overnight after restarting the computer audio doesn't exist.
I'll try cadence and see if that works better.
I'm having another separate issue now though, after trying to install airwave for VSTs Ubuntu doens't register and soundcard although if I use Jack and Bitwig, my USB focusrite works fine.
I'm going to try update, WINE and Airwave and see if that helps. It's odd though as it worked fine yesterday but overnight after restarting the computer audio doesn't exist.
- Linuxmusician01
- Established Member
- Posts: 1523
- Joined: Mon Feb 23, 2015 2:38 pm
- Location: Holland
- Has thanked: 756 times
- Been thanked: 134 times
Re: Jack setup issueswith some software
Do you mean the command that I posted? This command?:gunga wrote:OK great, I tried the code to kill pulse automatically, it doesn't seem to work.
Code: Select all
pkill -9 jackdbus
killall jackd
Code: Select all
pulseaudio --kill
Code: Select all
pulseaudio --start
Code: Select all
jackd -d alsa --device hw:0
Dunno what exactly you mean by "register".gunga wrote:[...] Ubuntu doens't register and soundcard [...]
You might have more than one audio card (or: audio device, or: audio interface) on your computer. Probably a sound card in your computer and the external USB Focusrite audio interface. Am I right? I think that you are doing the following: you start your PC (audio device number 0 then is your on-board audio card); you connect the Focusrite (now audio device 1 is the Focusrite). Then you start Jackaudio. However, you started Jack for audio device number 0. This is not the audio device you want.gunga wrote: [...] my USB focusrite works fine.
[...] It's odd though as it worked fine yesterday but overnight after restarting the computer audio doesn't exist.
However, if you've connected the Focusrite before starting your PC then it might very well be audio device number 0! And the command to start Jack doesn't work again. So try to check which number your preferred audio device has. Do this w/ the following command:
Code: Select all
cat /proc/asound/cards
Code: Select all
0 [CMI8738 ]: CMI8738-MC6 - C-Media CMI8738
C-Media CMI8738 (model 55) at 0xd000, irq 20
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf7c10000 irq 45
Code: Select all
jackd -d alsa --device hw:1
Notice the "hw:1" instead of "hw:0"!
Good luck w/ puzzling w/ Linux.
[edit 19-12-2018, 17:01] Edited to remove many typo's
Last edited by Linuxmusician01 on Wed Dec 19, 2018 4:01 pm, edited 5 times in total.
- sysrqer
- Established Member
- Posts: 2519
- Joined: Thu Nov 14, 2013 11:47 pm
- Has thanked: 319 times
- Been thanked: 148 times
- Contact:
Re: Jack setup issueswith some software
I don't understand what you are trying to do here, can you explain in more detail?gunga wrote:OK great, I tried the code to kill pulse automatically, it doesn't seem to work.
I'll try cadence and see if that works better.
I'm having another separate issue now though, after trying to install airwave for VSTs Ubuntu doens't register and soundcard although if I use Jack and Bitwig, my USB focusrite works fine.
I'm going to try update, WINE and Airwave and see if that helps. It's odd though as it worked fine yesterday but overnight after restarting the computer audio doesn't exist.
- nikgnomicradio
- Established Member
- Posts: 109
- Joined: Wed Feb 07, 2018 9:31 pm
- Has thanked: 1 time
- Been thanked: 7 times
- Contact:
Re: Jack setup issueswith some software
Killing Pulseaudio would make it impossible to listen to Audio streams in Pulseaudio
To hear Pulseaudio playback whilst JACK is running use these commands:
(omit 'connect = 0' from first command if you want audio to connect to JACK 'system' output automatically)
If you also need connection for audio from jack to Pulseaudio (eg connecting a mic for a VOiP application):
This is one simple way to get the connections needed, there are many alternative ways to do this:
QjackCtl has option to run a bash script after JACK for a sequence of commands to run automatically
Cadence has it's own tool that will create both connections
Latest version of Ubuntu Studio 18.10 has it's own built-in Ubuntu Studio Controls,
looks like a good alternative option to QjackCtl or Cadence but I am still testing it for reliability
To hear Pulseaudio playback whilst JACK is running use these commands:
Code: Select all
pactl load-module module-jack-sink channels=2 connect=0
pactl set-default-sink jack_out
If you also need connection for audio from jack to Pulseaudio (eg connecting a mic for a VOiP application):
Code: Select all
pactl load-module module-jack-source channels=2 connect=0
pactl set-default-sink jack_out
QjackCtl has option to run a bash script after JACK for a sequence of commands to run automatically
Cadence has it's own tool that will create both connections
Latest version of Ubuntu Studio 18.10 has it's own built-in Ubuntu Studio Controls,
looks like a good alternative option to QjackCtl or Cadence but I am still testing it for reliability
Re: Jack setup issueswith some software
Thanks for the replies, I had already done a bit of digging to find an answer and have found a way to make it work. For now.
I had to do the following:
I removed WINE as it was one of the last things installed - still no fix
I installed cadence and set it up for the Focusrite - This worked with Bitwig and Reaper but not with pulse audio ie (spotify or browser)
After reading a quora thread i tried this and it worked, i.e the internal soundcard appeared in the list of audio output devices and have this running spotify and the browser.
This morning i had to use pulseaudio --start for the internal soundcard to work again.
Ideally I want the USB focusrite to be my main soundcard. I'll reread your post when I get a chance and see if I can fix this permanently.
Cheers
I had to do the following:
I removed WINE as it was one of the last things installed - still no fix
I installed cadence and set it up for the Focusrite - This worked with Bitwig and Reaper but not with pulse audio ie (spotify or browser)
After reading a quora thread i tried this and it worked, i.e the internal soundcard appeared in the list of audio output devices and have this running spotify and the browser.
Code: Select all
rm -R ~/.config/pulse
sudo systemctl reboot
pulseaudio --kill
pulseaudio --start
Ideally I want the USB focusrite to be my main soundcard. I'll reread your post when I get a chance and see if I can fix this permanently.
Cheers
- Linuxmusician01
- Established Member
- Posts: 1523
- Joined: Mon Feb 23, 2015 2:38 pm
- Location: Holland
- Has thanked: 756 times
- Been thanked: 134 times
Re: Jack setup issueswith some software
Cadence works with Jack. Pulseaudio is an "alternative" or "concurrent" for Jack. So it's no surprise that Pulse won't work w/ Jack. Because you have to choose between Jack or Pulse. DAW's usually work better w/ Jack so that's why Reaper and Bitwig work with them. Pulse in not necessarily needed but if you want to listen to two sound sources at the same time (like Youtube as well as MP3 music) you'll need Pulse.gunga wrote:I installed cadence and set it up for the Focusrite - This worked with Bitwig and Reaper but not with pulse audio ie (spotify or browser)
And both rely on ALSA which is the actual sounddriver for Linux. Confusing isn't it?
[edit, 20-12-'18, 16:40] By the way, for years I've purged Pulse from my system so that I only had to worry 'bout ALSA. Every application that produces sound works perfectly well w/ ALSA. However, in Linux you have to tell every single friggin' application to use Pulse, Jack or just Alsa. Yep: that's pretty complicated.
Last edited by Linuxmusician01 on Fri Dec 21, 2018 12:37 pm, edited 3 times in total.