You are not logged in.
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 --killNow 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 pulsethen I start the jack server using one of the scripts above and check if jack is running.
$ jack_control status
--- status
startedAt 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.
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 filesLast edited by 71GA (2014-05-18 10:16:47)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
I managed to fix the first three errors. In /etc/pulse/default.pa I had to replace
load-module module-jackdbus-detectwith
load-module module-jackdbus-detect channels=2but 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 filesC, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
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
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
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.
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
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
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 serverLast edited by 71GA (2014-05-12 19:17:10)
C, ARM, ARM assembly, HTML, CSS, JS, Linux
Offline
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
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
You did not kill jackdbus, it still has the same pid. Use
pkill -9 jackdbus
#or
sudo pkill -9 jackdbus
#read
man 7 signalOffline
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
Is autospawn set to yes in /etc/pulse/client.conf? (or your user configuration)
Offline
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
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
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 serverI 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
Do you still get the exact same error from jackd?
Does jackd work using your internal sound card (hw:0,0)?
Offline
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
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
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