You are not logged in.

#1 2014-05-10 12:36:58

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

[SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

Hello,

Earlier I had alsa installed together with jack2 and both worked fine - I could record my songs in Qtractor without any problems.

But I reecently bought GuitarPro software for Linux which needs a pulseaudio to work. So I installed the pulseaudio and It is
working fine by itself. I can start/stop it using commands:

pulseaudio --start
pulseaudio --kill

Now the problems begin. I had to uninstall jack2 and swap it for jack2dbus which works with pulseaudio (jack2 doesn't).  I allso
wrote two scripts for starting the jack2dbus in two separate configurations

Hardware default audio (Nvidia) for playback and USB audio interface (Scarlet 2i4) for recording:

#!/bin/bash
jack_control start
jack_control eps realtime true 		
jack_control ds alsa 				
jack_control dps period 265 		
jack_control dps playback hw:0,0	
jack_control dps capture hw:USB	

USB audio interface (Scarlet 2i4) for playback and recording.

#!/bin/bash
jack_control start
jack_control eps realtime true 		
jack_control ds alsa 				
jack_control dps device hw:USB 		
jack_control dps period 265 	

THE START PROCEDURE

I first start the pulseaudio and check if it is running.

$ pulseaudio --start
$ ps aux | grep pulse
ziga      4171 48.0  0.2 520004 15328 ?        S<l  14:22   0:00 pulseaudio --start
ziga      4176  0.0  0.0  76628  2552 ?          S    14:22   0:00 /usr/lib/pulse/gconf-helper
ziga      4179  0.0  0.0  10820  1076 pts/2    S+   14:22   0:00 grep pulse

then I start the jack server using one of the scripts above and check if jack is running.

$ jack_control status
--- status
started

At this instance when everything seems to be running when I start Qtractor or Ardour I allways get the error.
The audio/MIDI engine could not be started! In the image check allso the console in the background.

qtractor-error.jpg

I get some prompt about pulseaudio "module-jackdbus-detect" when I 1st shutdown jack, then kill pulseaudio
and restarting it using different command than before. Could this be the clue to what is wrong? Please help a bit.

$ jack_control stop
--- stop
$ pulseaudio --kill
$ pulseaudio
W: [pulseaudio] pid.c: Stale PID file, overwriting.
E: [pulseaudio] module-jackdbus-detect.c: Failed to parse channels= argument.
E: [pulseaudio] module.c: Failed to load module "module-jackdbus-detect" (argument: ""): initialization failed.
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

Last edited by 71GA (2014-05-18 10:16:47)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#2 2014-05-10 12:50:44

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

I managed to fix the first three errors. In /etc/pulse/default.pa I had to replace

load-module module-jackdbus-detect

with

load-module module-jackdbus-detect channels=2

but last error remains

E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files

C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#3 2014-05-10 12:54:27

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

I solved the last error. The anwser was right here.

But still I can't use Qtractor...

Last edited by 71GA (2014-05-10 12:56:55)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#4 2014-05-12 13:21:50

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

are other jack applications working, and the problem persists only with qtractor? In the screenshot you posted jack_control shows that the server is actually stopped, so it shouldn't work in that case. Please post the messages from qtractor when jackdbus is started.

just for the record, you can use pulseaudio with standard jackd as well, but it can't be detected automatically via jackdbus-detect. You must use jack-source and jack-sink pulseaudio modules instead and the jackd server must be started before pulseaudio iirc.
This probably won't help with your issue but I wanted to point out that it is possible..

Offline

#5 2014-05-12 14:15:06

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

ooo wrote:

just for the record, you can use pulseaudio with standard jackd as well, but it can't be detected automatically via jackdbus-detect. You must use jack-source and jack-sink pulseaudio modules instead and the jackd server must be started before pulseaudio iirc.
This probably won't help with your issue but I wanted to point out that it is possible..

Thank you for the info! But I will stick to Jack2-dbus. To me it seems better.

ooo wrote:

are other jack applications working, and the problem persists only with qtractor? In the screenshot you posted jack_control shows that the server is actually stopped, so it shouldn't work in that case. Please post the messages from qtractor when jackdbus is started.

Thank you for pointing that out. I obviously can't even start jack. I get this error when trying (pulseaudio is running):

[ziga@ziga-pc ~]$ ps aux | grep pulse
ziga       658  1.2  0.2 522972 13032 ?        S<l  12:47   2:33 /usr/bin/pulseaudio --start
ziga       695  0.0  0.0  76628  2548 ?        S    12:47   0:00 /usr/lib/pulse/gconf-helper
ziga      5163  0.0  0.0  10824  1076 pts/1    S+   16:12   0:00 grep pulse
[ziga@ziga-pc ~]$ jack_control start
--- start
DBus exception: org.jackaudio.Error.Generic: Failed to open server
[ziga@ziga-pc ~]$ 

If you need a peek into any of my files just say it and I will post them here.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#6 2014-05-12 14:44:52

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

Quite impossible to guess what the issue could be from that error.

I suggest trying if you can get jack working using the legacy jackd. Even if that won't work you may get more useful error message.
Btw, if you install the jack2 package it includes both jackdbus and jackd, so it should be ok in your case, unless you absolutely want to get rid of the old jackd.

Offline

#7 2014-05-12 19:16:36

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

ooo wrote:

Quite impossible to guess what the issue could be from that error.

I suggest trying if you can get jack working using the legacy jackd. Even if that won't work you may get more useful error message.
Btw, if you install the jack2 package it includes both jackdbus and jackd, so it should be ok in your case, unless you absolutely want to get rid of the old jackd.

OK thank you for the sugestion. I did uninstall jack2-dbus and installed jack2 together with a python2-dbus dependancy. Then I killed pulseaudio and tried to start jack server.
It was unsucessfull but as you said I did get some more feedback. I saw that priority is only 10. IS it possible this is too low? Where can I set this parameter?

$ ps aux | grep pulse
ziga      5171  0.0  0.0  10820  1076 pts/1    S+   21:12   0:00 grep pulse

$ jackd -R -dalsa -dhw:USB -p256
jackdmp 1.9.9.5
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2012 Grame.
jackdmp 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
no message buffer overruns
no message buffer overruns
no message buffer overruns
JACK server starting in realtime mode with priority 10
audio_reservation_init
Failed to acquire device name : Audio2 error : Device reservation request with priority 2147483647 denied for "Audio2" via RequestRelease()
Audio device hw:USB cannot be acquired...
Cannot initialize driver
JackServer::Open failed with -1
Failed to open server

Last edited by 71GA (2014-05-12 19:17:10)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#8 2014-05-12 19:44:22

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

realtime priority of 10 should be completely ok. you could increase it one way or another but unless you're getting xruns you probably wouldn't benefit from it.

The error below (Failed to acquire device name : etc) sounds like something you would get if the device was being reserved by some other application. Make sure the jackdbus prosess isn't still running, and/or make absolutely sure pulseaudio isn't running (it has the tendency to autospawn itself by default if needed)

Offline

#9 2014-05-14 12:15:52

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

ooo wrote:

realtime priority of 10 should be completely ok. you could increase it one way or another but unless you're getting xruns you probably wouldn't benefit from it.

The error below (Failed to acquire device name : etc) sounds like something you would get if the device was being reserved by some other application. Make sure the jackdbus prosess isn't still running, and/or make absolutely sure pulseaudio isn't running (it has the tendency to autospawn itself by default if needed)

Ok i Killed pulse audio and it does not autospawn. How can I kill the jackdbus? As soon as I kill it it will autospawn. This can be seen from the terminal output I posted below. Pulse audio is killed sucessfully but jackdbus can't be killed it seems.

[ziga@ziga-pc ~]$ pulseaudio -k
[ziga@ziga-pc ~]$ ps aux | grep pulse
ziga     16754  0.0  0.0  10820  1072 pts/1    S+   14:14   0:00 grep pulse
[ziga@ziga-pc ~]$ ps aux | grep jack
ziga     16593  0.1  0.1 116836  9856 ?        Ss   14:09   0:00 /usr/bin/jackdbus auto
ziga     16760  0.0  0.0  10824  1076 pts/1    S+   14:14   0:00 grep jack
[ziga@ziga-pc ~]$ kill 16593
[ziga@ziga-pc ~]$ ps aux | grep jack
ziga     16593  0.1  0.1 116836  9856 ?        Ss   14:09   0:00 /usr/bin/jackdbus auto
ziga     16764  0.0  0.0  10824  1076 pts/1    S+   14:14   0:00 grep jack
[ziga@ziga-pc ~]$ 

Last edited by 71GA (2014-05-14 12:16:44)


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#10 2014-05-14 13:41:36

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

You did not kill jackdbus, it still has the same pid. Use

pkill -9 jackdbus
#or
sudo pkill -9 jackdbus
#read
man 7 signal

Offline

#11 2014-05-14 13:58:16

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

emeres wrote:

You did not kill jackdbus, it still has the same pid.

OK now it is dead but now pulseaudio is making me troubles because when I kill it it will restart (ID change after I kill it). How can I prevent this?


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#12 2014-05-14 14:09:47

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

Is autospawn set to yes in /etc/pulse/client.conf? (or your user configuration)

Offline

#13 2014-05-14 14:14:30

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

emeres wrote:

Is autospawn set to yes in /etc/pulse/client.conf? (or your user configuration)

I am searching for this right now. I don't have "/etc/pulse/client.conf". Only:

/etc/pulse/system.pa
/etc/pulse/default.pa
/etc/pulse/daemon.conf

This is it. Maybee I have to put it in daemon.conf?


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#14 2014-05-14 14:17:33

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

I do not use pulseaudio any more and things change. Somewhere in ~/.config/pulse? Locations and configuration files should be mentioned in pulseaudios manual.

Last edited by emeres (2014-05-14 14:21:55)

Offline

#15 2014-05-14 16:13:11

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

emeres wrote:

I do not use pulseaudio any more and things change. Somewhere in ~/.config/pulse? Locations and configuration files should be mentioned in pulseaudios manual.

OK i did this. Now i managed to turn off jackdbus as well as pulseaudio but I still get this error when starting jack using jack_control or jackd:

[ziga@ziga-pc ~]$ jack_control start
--- start
DBus exception: org.jackaudio.Error.Generic: Failed to open server

I read here that it could be "knotify4" that is grabbing my sound card but I did kill it too and nothing helps.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#16 2014-05-14 16:50:51

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

Do you still get the exact same error from jackd?
Does jackd work using your internal sound card (hw:0,0)?

Offline

#17 2014-05-14 18:38:26

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

ooo wrote:

Do you still get the exact same error from jackd?
Does jackd work using your internal sound card (hw:0,0)?

jackd now works and qtractor can be started! It is weird that on same settings jack_control doesnt. Now I am interested why. :S


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

#18 2014-05-14 18:49:38

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

You have probably set some setting with jack_control at some point, and it was saved as default. You can use 'jack_control dp' to list all current settings.
jack_control saves its settings to ~/.config/jack/conf.xml so you could try removing it as well.

Alternatively it's still possible to use jackd alongside pulseaudio without the dbus interface. See 'The new way' and 'The old way' in https://wiki.archlinux.org/index.php/Pu … rough_JACK for examples

Last edited by ooo (2014-05-14 18:52:32)

Offline

#19 2014-05-21 14:57:21

71GA
Member
From: Slovenia
Registered: 2012-09-15
Posts: 282

Re: [SOLVED] jack2dbus is running but I can't seem to use Qtractor/Ardour

Well jackd is a better and more documented command. And I chose this one over jack_control now. Problem solved.


C, ARM, ARM assembly, HTML, CSS, JS, Linux

Offline

Board footer

Powered by FluxBB