LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using jack2-dbus, jack_control start gives error: DBus exception: org.jackaudio.Error (https://www.linuxquestions.org/questions/linux-newbie-8/using-jack2-dbus-jack_control-start-gives-error-dbus-exception-org-jackaudio-error-4175501811/)

Laertiades 04-15-2014 09:15 AM

using jack2-dbus, jack_control start gives error: DBus exception: org.jackaudio.Error
 
I am using Arch Linux. I installed the jack2-dbus package. I am following the arch linux jack wiki. The command:
Code:

jack_control start
results in the error message:
Code:

DBus exception: org.jackaudio.Error.Generic: Failed to open server
. I only found one suggested remedy in my google searching:
Code:

lsof +c 0 /dev/dsp
and
Code:

lsof +c 0 /dev/snd/pcm*
do not show any processes. Any help would be appreciated.

DJ Shaji 05-08-2014 06:27 PM

What DE are you using? Try prefixing "dbus-launch" to your command:
Code:

dbus-launch jack_control start

Laertiades 05-09-2014 07:58 AM

Thanks for the response. I am using KDE. Your suggestion did not affect anything.

DJ Shaji 05-09-2014 01:52 PM

Some people had a problem with knotify4. It might be pulseaudio, so you could prefix your command with pasuspender. Post the result of
Code:

tail -f ~/.log/jack/jackdbus.log
here. It might shine some light on the issue. A generic error is exactly that, so the only way is to arrive at a solution by trial and error.

Laertiades 05-09-2014 04:32 PM

Code:

[jesse@Athens VVV-1.1]$ tail -f ~/.log/jack/jackdbus.log

Fri May  9 05:56:45 2014: Controller activated. Version 1.9.9.5 (unknown) built on Tue Nov  5 09:59:45 2013
Fri May  9 05:56:45 2014: Loading settings from "/home/jesse/.config/jack/conf.xml" using expat_2.1.0 ...
Fri May  9 05:56:45 2014: setting parameter 'engine':'driver':'(null)' to value "alsa"
Fri May  9 05:56:45 2014: setting parameter 'engine':'realtime':'(null)' to value "true"
Fri May  9 05:56:45 2014: setting parameter 'drivers':'alsa':'device' to value "hw:CODEC"
Fri May  9 05:56:45 2014: setting parameter 'drivers':'alsa':'rate' to value "48000"
Fri May  9 05:56:45 2014: setting parameter 'drivers':'alsa':'period' to value "32"
Fri May  9 05:56:45 2014: setting parameter 'drivers':'alsa':'nperiods' to value "3"
Fri May  9 05:56:45 2014: Listening for D-Bus messages
Fri May  9 05:56:45 2014: Starting jack server...
Fri May  9 05:56:45 2014: JACK server starting in realtime mode with priority 10
Fri May  9 05:56:45 2014: Acquired audio card Audio1
Fri May  9 05:56:45 2014: creating alsa driver ... hw:CODEC|hw:CODEC|32|3|48000|0|0|nomon|swmeter|-|32bit
Fri May  9 05:56:45 2014: configuring for 48000Hz, period = 32 frames (0.7 ms), buffer = 3 periods
Fri May  9 05:56:45 2014: ALSA: final selected sample format for capture: 16bit little-endian
Fri May  9 05:56:45 2014: ERROR: ALSA: cannot set period size to 32 frames for capture
Fri May  9 05:56:45 2014: ERROR: ALSA: cannot configure capture channel
Fri May  9 05:56:45 2014: ERROR: Cannot initialize driver
Fri May  9 05:56:45 2014: ERROR: JackServer::Open failed with -1
Fri May  9 05:56:45 2014: ERROR: Failed to open server


DJ Shaji 05-10-2014 01:53 PM

The problem is this:
Code:

Fri May  9 05:56:45 2014: ERROR: ALSA: cannot set period size to 32 frames for capture
Increase the number of frames per period till it works. Default is 1024. I can get it down to 16 on my system. The more frames per period, the greater the latency. See what works for you.

Laertiades 05-10-2014 02:56 PM

Thank you DJ Shaji, The following commands solved the problem:

Code:

jack_control dps period 64
dbus-launch jack_control start

I'm up and running.

DJ Shaji 05-10-2014 05:10 PM

Quote:

Originally Posted by Laertiades (Post 5168529)
Thank you DJ Shaji, The following commands solved the problem:

Code:

jack_control dps period 64
dbus-launch jack_control start

I'm up and running.

Glad to be of help :)


All times are GMT -5. The time now is 05:48 PM.