Can't get JACK server to run

Asked by syntheticromania

I've been trying to get my JACK server running for a couple of days now. Every time I try to run it through Applications -> Sound & Video -> JACK Control it freezes and I have to force quit. Running it from the terminal, I get a warning saying, "Warning: no locale found: /usr/share/locale/qjackctl_en_US.qm" and then I have to force quit the JACK control because it freezes.
I really have no idea what I'm doing at this point. I tried jackd -d alsa and oss in the terminal and all I get back is that something is already using my playback device, even though nothing but the terminal is running, at least to my knowledge.
Any help would be greatly appreciated!
Thanks!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu jack Edit question
Assignee:
No assignee Edit question
Solved by:
syntheticromania
Solved:
Last query:
Last reply:
Revision history for this message
Ufuk (ufukkilicaslan) said :
#1

The freezing of Qjackctl is usually due to a kernel. Try to update your system and kernel if there are available updates for your distro.
I think the locale is just a warning, it doesn't affect your system. Before you run jackd, make sure that no jack instance is running at the same time. Try:

killall jackd

and then run again. You have to run jackd with appropriate settings of devices and latency.

Revision history for this message
syntheticromania (geoffshoupp) said :
#2

No luck. I updated my kernel and still nothing. I looked in my system manager and I have 19 instances of qjackctl.bin running, all of them uninterruptible. They are all waiting for something called "snd_seq_ioctl_query_subs" and I have no idea what to do now.

Revision history for this message
Ufuk (ufukkilicaslan) said :
#3

19 instances is really weird. Try with sudo:

sudo killall jack
sudo killall jackd
sudo killall qjackctl

I think you have some sound card driver issues. Do you have problems with other audio applications?
Also try loading the sequencer module before launching jack again:

sudo modprobe snd_seq

Revision history for this message
syntheticromania (geoffshoupp) said :
#4

No problems with anything else, I can run Rythmbox and Skype just fine. I tried the killall before and it didn't work. The terminal only says that there were no processes killed.
Here is a list of my sound cards, don't know if that helps:

**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: ATI HDMI [ATI HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

I'm really not sure if I need to configure them or get drivers or do something else with them. I've been trying to look around at any known issues with my card, but I haven't found anything, as of yet.

Revision history for this message
Ufuk (ufukkilicaslan) said :
#5

Could you please try this:

sudo /etc/init.d/jackd stop

Then launch Qjackctl again from command line, type qjackctl to run. What errors do you get (just errors, no warnings)?

Revision history for this message
syntheticromania (geoffshoupp) said :
#6

Alright I can now run Jack Control without force control (all I had to do was run Rythmbox and Jack control started worked after that). Now the problem is that Jack Control says:
01:25:11.289 Patchbay deactivated.
01:25:11.290 Statistics reset.
01:25:11.350 ALSA connection graph change.
01:25:11.527 ALSA connection change.
01:25:18.726 ALSA connection change.
01:25:25.099 Startup script...
01:25:25.099 artsshell -q terminate
01:25:25.796 Startup script terminated with exit status=256.
01:25:25.796 JACK is starting...
01:25:25.796 /usr/bin/jackd -dalsa -dhw:0 -r44100 -p1024 -n2
01:25:25.812 JACK was started with PID=22002.
jackd 0.109.2
Copyright 2001-2005 Paul Davis and others.
jackd comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK compiled with System V SHM support.
loading driver ..
SSE2 detected
apparent rate = 44100
creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
control device hw:0
the playback device "hw:0" is already in use. Please stop the application using it and run JACK again
cannot load driver module alsa
no message buffer overruns
01:25:25.967 JACK was stopped successfully.
01:25:25.967 Post-shutdown script...
01:25:25.967 killall jackd
jackd: no process killed
01:25:26.395 Post-shutdown script terminated with exit status=256.
01:25:28.045 Could not connect to JACK server as client. - Overall operation failed. - Unable to connect to server. Please check the messages window for more info.

I am using a 64-bit so I'm not sure if that would be a problem with the alsa driver or not and I wasn't running anything that used my sound card, so I don't know what could be using my playback device.

And thanks for your help so far, its awesome.

Revision history for this message
syntheticromania (geoffshoupp) said :
#7

I just had to mess with the ouput. Problem solved.

Revision history for this message
cucujoidea (cucujoidea) said :
#8

Hi,

this message also appeared on my machine (Ubuntu 11.10):

 playback device "hw:0" is already in use. Please stop the application using it and run JACK again

it appeared that i had to uninstall a text-to-speech tool (also, I removed similar packages), namely speech-dispatcher (see http://bgryderclock.blogspot.com/2007/11/playback-device-hw0-is-already-in-use.html ). Having the rest of jack etc. already configured, there was no more error with

jackd -d alsa

and testing with

jack_simple_client

went fine (makes a sine).

Best regards,
Phonon