LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Ubuntu 11.10 & KXStudio - Jack Won't Start (http://www.linuxquestions.org/questions/ubuntu-63/ubuntu-11-10-and-kxstudio-jack-wont-start-923948/)

Zirbert 01-15-2012 08:16 PM

Ubuntu 11.10 & KXStudio - Jack Won't Start
 
I've done some forum and web searches about this, and haven't found anyone with quite this problem. I just built a new system running Ubuntu 11.10 64-bit, with the KXStudio packages. The audio device is onboard audio from an MSI H61M-P23 B3 motherboard.

Here's the output from lspci |grep -i:

Code:

audio00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
Normal audio (Youtube videos, AVIs/MP3s, games, etc.) works fine. Even Hydrogen is OK. However, I can't get any audio from Jack synth apps (ZynAddSubFX, or any virtual keyboards like VMPK). I figured this was a Jack issue, but when I try to start Jack by launching QjackCtl, I get this in the message log:

Code:

21:39:38.921 Patchbay deactivated.
21:39:38.923 Statistics reset.
21:39:38.926 ALSA connection change.
21:39:38.955 D-BUS: Service is available (org.jackaudio.service aka jackdbus).
Cannot connect to server socket err = Connection refused
Cannot connect to server socket
jack server is not running or cannot be started
21:39:38.962 ALSA connection graph change.

When I click Start, I get this error:

Code:

D-BUS: JACK server could not be started.  Sorry
Here's what the message log says:
Code:

21:40:08.185 D-BUS: JACK server could not be started. Sorry
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: driver "alsa" selected
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Saving settings to "/home/zirbert/.config/jack/conf.xml" ...
Sun Jan 15 21:39:43 2012: Starting jack server...
Sun Jan 15 21:39:43 2012: JACK server starting in realtime mode with priority 10
Sun Jan 15 21:39:43 2012: _[1m_[31mERROR: Cannot lock down memory area (Cannot allocate memory)_[0m
Sun Jan 15 21:39:43 2012: control device hw:0
Sun Jan 15 21:39:43 2012: control device hw:0
Sun Jan 15 21:39:43 2012: Acquired audio card Audio0
Sun Jan 15 21:39:43 2012: creating alsa driver ... hw:0|hw:0|128|2|44100|0|0|nomon|swmeter|-|32bit
Sun Jan 15 21:39:43 2012: control device hw:0
Sun Jan 15 21:39:43 2012: configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 2 periods
Sun Jan 15 21:39:43 2012: ALSA: final selected sample format for capture: 32bit integer little-endian
Sun Jan 15 21:39:43 2012: ALSA: use 2 periods for capture
Sun Jan 15 21:39:43 2012: ALSA: final selected sample format for playback: 32bit integer little-endian
Sun Jan 15 21:39:43 2012: ALSA: use 2 periods for playback
Sun Jan 15 21:39:43 2012: _[1m_[31mERROR: Cannot use real-time scheduling (RR/10)(1: Operation not permitted)_[0m
Sun Jan 15 21:39:43 2012: _[1m_[31mERROR: AcquireSelfRealTime error_[0m
Sun Jan 15 21:39:48 2012: _[1m_[31mERROR: JackProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out_[0m
Sun Jan 15 21:39:48 2012: _[1m_[31mERROR: Driver is not running_[0m
Sun Jan 15 21:39:48 2012: _[1m_[31mERROR: Cannot open client name = dbusapi_[0m
Sun Jan 15 21:39:48 2012: _[1m_[31mERROR: failed to create dbusapi jack client_[0m
Cannot connect to server socket err = Connection refused
Cannot connect to server socket
jack server is not running or cannot be started
21:40:20.858 Could not connect to JACK server as client. - Overall operation failed. - Server communication error. Please check the messages window for more info.
JackSocketClientChannel read fail
Cannot open qjackctl client
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: JackProcessSync::LockedTimedWait error usec = 5000000 err = Connection timed out_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: Driver is not running_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: Cannot create new client_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: Abort!_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: info.si_signo = 6_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: info.si_errno = 0_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: Segmentation Fault!_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: info.si_signo = 11_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: info.si_errno = 0_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: info.si_code  = 1 (SEGV_MAPERR)_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: info.si_addr  = 0x52524543_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[00]      = 0x00007f0b9f4a4d08_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[01]      = 0x00007f0b9f4a5138_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[02]      = 0x00000000fffffc00_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[03]      = 0x0000000000000246_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[04]      = 0x00007f0b9f4a5138_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[05]      = 0x00000000004118ac_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[06]      = 0x0000000000000014_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[07]      = 0x0000000052524543_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[08]      = 0x0000000052524543_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[09]      = 0x00000000004118be_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[10]      = 0x00007f0b9f4a4e30_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[11]      = 0x00007f0b9f4a4e40_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[12]      = 0x0000000000000018_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[13]      = 0x0000000000000000_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[14]      = 0xffffffffffffffff_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[15]      = 0x00007f0b9f4a4800_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[16]      = 0x00007f0b9e2481a4_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[17]      = 0x0000000000010286_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[18]      = 0x0000000000000033_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[19]      = 0x0000000000000004_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[20]      = 0x000000000000000e_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[21]      = 0x0000000000005a27_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: reg[22]      = 0x0000000052524543_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: Stack trace:_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR:  1: 0x7f0b9e2481a4 <_IO_vfprintf+7348> (/lib/x86_64-linux-gnu/libc.so.6)_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR:  2: 0x7f0b9e2f5d90 <__vsnprintf_chk+176> (/lib/x86_64-linux-gnu/libc.so.6)_[0m
Sun Jan 15 21:40:20 2012: _[1m_[31mERROR: End of stack trace_[0m

Any thoughts on how I can fix this, and hopefully get software synths working on this system? (I'm running two other PCs with Ubuntu Studio 10.04 and AV Linux 5 - no problems on either of those.)

Bruno1960 01-16-2012 07:22 PM

Hi Zirbert,

(first of all, excuse my broken english...)
I had the same kind of problem, with my "home-made" Ubuntu-studio, based on Ubuntu 11.04 (32 bit).
In my case, the problem was with the Pulseaudio server, wich didn't connect with jack, and thus prevented it to start.
I've found two solutions, one was to use another sound server than Pulseaudio. But in that case, I've read that quite a lot of soft's I use wouldn't work any more "as it". So I didn't try it.
The other solution works perfectly on my laptop: a script (written by a nice guy called Samuel) that links Pulseaudio and Jack. But I do not use RT kernel, and I don't know if it works well with RT kernels.
You will find some more explanations in french on : http://www.linuxmao.org/tikiwiki/tik...ght=pulseaudio

Here we are:

Create a new directory, for exemple: /home/your_user_name/scripts . Create (with gedit, kedit, ...) a new file named: jack_startup .
Write in the following lines:
Code:

#load pulseaudio jack modules
#!/bin/bash

pactl load-module module-jack-sink
pactl load-module module-jack-source

echo "set-default-sink jack_out" | pacmd
echo "set-default-source jack_in" | pacmd

Save, close, and right click on it. In Properties, authorise it to be "executable".

Then launch qjackctl, and in Settings, Options,
authorise to execute the script after lauching:

/home/your_user_name/scripts/jack_startup

In the parameters tab, put a timeout between 1000 and 5000 ms.
Start jack (with qjackctl), and you should see Pulseaudio linked in the Connections tab.
Works nicely with me.

Hope it will help you!

Bruno


All times are GMT -5. The time now is 11:46 AM.