Page 1 of 1

qjackctl and jack

Posted: Tue Jan 29, 2013 2:51 pm
by royleith
I want to get the internal sound going using the 3.5mm output jack. Alsa works well. However, no amount of fiddling with the qjackctl settings stopped jack (jackD2) from crashing.

Another thread suggested a couple of commands;

jackd -r -p 8 -d dummy

JACK server starting in non-realtime mode
Bus error

alsa_out -q 0 -v

Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
...
jack server is not running or cannot be started
jack server not running?

I checked Patchbay, and I could find the input and output midi of my keyboard, but not the system audio output ports. The audio hardware does appear in jack settings. It looks as though the jack daemon will not start up.

Any guidance?

Roy Leith

Re: qjackctl and jack

Posted: Thu Jan 31, 2013 9:30 pm
by AutoStatic
What distro are you using? JACK won't work, you need to patch it, unless this issue has been resolved in git (afaik this is not the case yet).

Re: qjackctl and jack

Posted: Sat Feb 02, 2013 9:27 am
by royleith
>>What distro are you using? JACK won't work, you need to patch it, unless this issue has been resolved in git (afaik this is not the case yet<<

I am using the official Raspbian with the latest apt upgrades. I will try again if I see any updates of jack on offer.

I have tried patching other programs, in the past, but I suspect the audio performance of the Raspi with jack may prove unusable (for useful music work) so I will wait for the outcome of the git work.

Roy Leith

Re: qjackctl and jack

Posted: Sat Feb 02, 2013 7:18 pm
by AutoStatic
royleith wrote:I have tried patching other programs, in the past, but I suspect the audio performance of the Raspi with jack may prove unusable (for useful music work) so I will wait for the outcome of the git work.
This won't be fixed soon in JACK's git repositories I think. I have patched packages available here: http://downloads.autostatic.com/rpi/jackd2/

Getting JACK to work properly on the RPi is a big struggle though. Only capture or playback works fine but full-duplex is a no-go it seems. I've also found Jack1 to work better for me, I will upload patched Jack1 packages shortly too.
I think a real-time kernel would help but afaik there is no RT kernel available for the RPi, not even working kernel configs to roll your own :(
And quite some useful music tools can run on pure ALSA so you can still use them. The big restriction then of course is that you can only use one music application at once (unless you use stuff like dmix but that introduces extra latency).

Jeremy

Re: qjackctl and jack

Posted: Sat May 25, 2013 4:38 pm
by pkrakow
I'm trying to get the patched instance of jackd running on my pi, and it doesn't seem to be working. I've followed the instructions on http://wiki.linuxaudio.org/wiki/raspberrypi (download the repository; install jackd; increase the size of /dev/shm/; etc), but when I try to run jackd I get the bus error message.

Is there a way to confirm I have the patched version of jackd installed on the pi?

Are there any steps in the installation that are missing from the linuxaudio.org instructions?

-paul

Re: qjackctl and jack

Posted: Mon May 27, 2013 10:11 am
by AutoStatic
Hi Paul,

What does aptitude show jackd{1,2} output? And apt-key list? If you get a bus error then you're probably not using a JACK package from my repository.

Jeremy

Re: qjackctl and jack

Posted: Tue May 28, 2013 12:22 am
by Guy999
I set up my Pi with Autostatic's repo from the start (having leaned of it from the Linux musicians forum) and Qjackctl works for me. I have it set to 'playback only' as that is always more stable than duplex.

The other thing I needed to do was have 'periods/buffer' set to three - I don't know why, but it does seem to make it work better than the default two.

I just wanted to run hydrogen through a TV to provide drums for Guitar practice and that works fine with jack, Alsa didn't work.

Re: qjackctl and jack

Posted: Wed May 29, 2013 5:35 am
by pkrakow
Here's a complete dump of what I've told my pi to do and what it's decided to share with me (see below). There's definitely some nastiness in the pi response. I could use help deciphering it.

I started with a clean Raspbian wheezy image, but I've done a handful of updates to get Tight VNC and Apache running. I bought the pi to build guitar Fx, so I'll start back at square 1 if that's what it takes to get good audio w/ Pure Data (Jack being a pre-req).

Full disclosure: I was listening to South of Heaven while trying to get this to work. Not sure if that helps or hurts, but figured I'd mention it. :D


pi@raspberrypi ~ $ wget -O - http://rpi.autostatic.com/autostatic.gpg.key| sudo apt-key add -
--2013-05-28 22:19:51-- http://rpi.autostatic.com/autostatic.gpg.key
Resolving rpi.autostatic.com (rpi.autostatic.com)... 83.81.61.166
Connecting to rpi.autostatic.com (rpi.autostatic.com)|83.81.61.166|:80... connec ted.
HTTP request sent, awaiting response... 200 OK
Length: 1772 (1.7K) [application/pgp-keys]
Saving to: `STDOUT'

100%[======================================>] 1,772 --.-K/s in 0s

2013-05-28 22:19:52 (21.9 MB/s) - written to stdout [1772/1772]

OK
pi@raspberrypi ~ $ sudo wget -O /etc/apt/sources.list.d/autostatic-audio-raspbia n.list http://rpi.autostatic.com/autostatic-au ... pbian.list
--2013-05-28 22:19:53-- http://rpi.autostatic.com/autostatic-audio-raspbian.lis t
Resolving rpi.autostatic.com (rpi.autostatic.com)... 83.81.61.166
Connecting to rpi.autostatic.com (rpi.autostatic.com)|83.81.61.166|:80... connec ted.
HTTP request sent, awaiting response... 200 OK
Length: 51 [text/plain]
Saving to: `/etc/apt/sources.list.d/autostatic-audio-raspbian.list'

100%[======================================>] 51 --.-K/s in 0s

2013-05-28 22:19:56 (791 KB/s) - `/etc/apt/sources.list.d/autostatic-audio-raspb ian.list' saved [51/51]

pi@raspberrypi ~ $ sudo apt-get update
Get:1 http://archive.raspberrypi.org wheezy Release.gpg [490 B]
Get:2 http://archive.raspberrypi.org wheezy Release [7,200 B]
Get:3 http://mirrordirector.raspbian.org wheezy Release.gpg [490 B]
Get:4 http://rpi.autostatic.com wheezy Release.gpg [490 B]
Get:5 http://archive.raspberrypi.org wheezy/main armhf Packages [6,260 B]
Get:6 http://mirrordirector.raspbian.org wheezy Release [14.4 kB]
Get:7 http://rpi.autostatic.com wheezy Release [940 B]
Get:8 http://rpi.autostatic.com wheezy/main armhf Packages [13.3 kB]
Get:9 http://mirrordirector.raspbian.org wheezy/main armhf Packages [7,414 kB]
Ign http://archive.raspberrypi.org wheezy/main Translation-en_GB
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://rpi.autostatic.com wheezy/main Translation-en_GB
Ign http://rpi.autostatic.com wheezy/main Translation-en
Get:10 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [23.2 kB ]
Get:11 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [48.0 k B]
Get:12 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [569 B]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en
Fetched 7,529 kB in 1min 48s (69.2 kB/s)
Reading package lists... Done
pi@raspberrypi ~ $ sudo apt-get --no-install-recommends install jackd1
Reading package lists... Done
Building dependency tree
Reading state information... Done
jackd1 is already the newest version.
jackd1 set to manually installed.
The following packages were automatically installed and are no longer required:
libblas3gf liblapack3gf liblo7 libqt4-dbus python-dbus python-dbus-dev qdbus
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
pi@raspberrypi ~ $ sudo apt-get install jackd1
Reading package lists... Done
Building dependency tree
Reading state information... Done
jackd1 is already the newest version.
The following packages were automatically installed and are no longer required:
libblas3gf liblapack3gf liblo7 libqt4-dbus python-dbus python-dbus-dev qdbus
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
pi@raspberrypi ~ $ sudo mount -o remount,size=128M /dev/shm
pi@raspberrypi ~ $ echo -n performance \
> | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performancepi@raspberrypi ~ $ jackd -P70 -p16 -t2000 -dalsa r44100 -s & [1] 2698
pi@raspberrypi ~ $ jackd 0.122.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn and oth ers.
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 ..
apparent rate = 44100
creating alsa driver ... hw:UA25|hw:UA25|1024|2|44100|0|0|nomon|swmeter|soft-mod e|32bit
^C
[1]+ Bus error jackd -P70 -p16 -t2000 -dalsa -dhw:UA25 -r44100 -s
pi@raspberrypi ~ $ aptitude show jackd{1,2}
Package: jackd1
State: installed
Automatically installed: no
Version: 1:0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1
Priority: optional
Section: sound
Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alio th.debian.org>
Architecture: armhf
Uncompressed Size: 797 k
Depends: coreutils (>= 4.0), debconf (>= 0.5) | debconf-2.0, libjack0 (=
1:0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1), libasound2 (>=
1.0.18), libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0), libreadline6 (>=
6.0), libsamplerate0 (>= 0.1.7), libsndfile1 (>= 1.0.20)
PreDepends: multiarch-support
Recommends: libpam-modules, qjackctl
Suggests: jack-tools, meterbridge
Conflicts: jack-daemon, jackd (< 3)
Replaces: jack-daemon, jackd (< 3), libjack0 (< 1:0.118+svn3796-4)
Provides: jack-daemon
Description: JACK Audio Connection Kit (server and example clients)
JACK is a low-latency sound server, allowing multiple applications to connect
to one audio device, and to share audio between themselves.

This package contains the daemon jackd as well as some example clients.
Homepage: http://jackaudio.org/

Package: jackd2
State: not installed
Version: 1.9.8~dfsg.4+20120529git007cdc37-5+fixed1~raspbian1
Priority: optional
Section: sound
Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alio th.debian.org>
Architecture: armhf
Uncompressed Size: 1,876 k
Depends: libasound2 (>= 1.0.18), libc6 (>= 2.13-28), libgcc1 (>= 1:4.4.0),
libjack-jackd2-0 (=
1.9.8~dfsg.4+20120529git007cdc37-5+fixed1~raspbian1), libsamplerate0
(>= 0.1.7), libsndfile1 (>= 1.0.20), libstdc++6 (>= 4.6), debconf (>=
0.5) | debconf-2.0, python, coreutils (>= 4.0), python-dbus
PreDepends: multiarch-support
Recommends: qjackctl, libpam-modules
Suggests: jack-tools, meterbridge
Conflicts: jack-daemon, jackd (< 3)
Replaces: jack-daemon, jackd (< 3), libjack0 (<= 1.9.5~dfsg-13)
Provides: jack-daemon
Description: JACK Audio Connection Kit (server and example clients)
JACK is a low-latency sound server, allowing multiple applications to connect
to one audio device, and to share audio between themselves.

This package contains the daemon jackd as well as some example clients.
Homepage: http://jackaudio.org/

pi@raspberrypi ~ $ apt-key list
gpg: fatal: /home/pi/.gnupg: directory does not exist!
secmem usage: 0/0 bytes in 0/0 blocks of pool 0/32768

Re: qjackctl and jack

Posted: Wed May 29, 2013 9:12 am
by AutoStatic
Guy999 wrote:The other thing I needed to do was have 'periods/buffer' set to three - I don't know why, but it does seem to make it work better than the default two.
http://linux-audio.4202.n7.nabble.com/u ... 42847.html

Re: qjackctl and jack

Posted: Wed May 29, 2013 9:27 am
by AutoStatic
pkrakow wrote:jackd1 is already the newest version.
jackd1 set to manually installed.
This means jackd1 from my repository was already installed which is true:
pkrakow wrote:pi@raspberrypi ~ $ aptitude show jackd{1,2}
Package: jackd1
State: installed
Automatically installed: no
Version: 1:0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1
So you shouldn't get a Bus error. Try reinstalling jackd1 with:

Code: Select all

sudo apt-get --reinstall --no-install-recommends install jackd1
And do you own an Edirol UA-25 too? If not you should check the ALSA name of your audio interface first with

Code: Select all

cat /proc/asound/cards
and use the designation between brackets with JACK:

Code: Select all

$ cat /proc/asound/cards
 0 [Device         ]: USB-Audio - Generic USB Audio Device
                      Generic USB Audio Device at usb-bcm2708_usb-1.2.4.4, full speed
$ ps -eLo cmd | grep [j]ackd
jackd -P84 -p8 -t2000 -d alsa -dhw:Device -p128 -n3 -r48000 -s

Re: qjackctl and jack

Posted: Wed May 29, 2013 2:23 pm
by pkrakow
First - thank you for the debug advice. This is great.

Second - I'm still getting bus error messages (see below). My USB Soundcard is a Logilink UA0053.



pi@raspberrypi ~ $ sudo apt-get --reinstall --no-install-recommends install jack d1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libblas3gf liblapack3gf liblo7 libqt4-dbus python-dbus python-dbus-dev qdbus
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 35 not upgraded.
Need to get 0 B/301 kB of archives.
After this operation, 0 B of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 66205 files and directories currently installed.)
Preparing to replace jackd1 1:0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1 ( using .../jackd1_1%3a0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1_armhf.deb) ...
Unpacking replacement jackd1 ...
Processing triggers for man-db ...
Setting up jackd1 (1:0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1) ...
pi@raspberrypi ~ $ cat /proc/asound/cards
0 [Set ]: USB-Audio - C-Media USB Headphone Set
C-Media USB Headphone Set at usb-bcm2708_usb-1.2, full spe ed
1 [ALSA ]: BRCM bcm2835 ALSbcm2835 ALSA - bcm2835 ALSA
bcm2835 ALSA
pi@raspberrypi ~ $ sudo mount -o remount,size=128M /dev/shm
pi@raspberrypi ~ $ echo -n performance \
> | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performancepi@raspberrypi ~ $ ps -eLo cmd | grep [j]ackd
pi@raspberrypi ~ $ jackd -P84 -p8 -t2000 -d alsa -dhw:Set -p128 -n3 -r48000 -s
jackd 0.122.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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 ..
apparent rate = 48000
creating alsa driver ... hw:Set|hw:Set|128|3|48000|0|0|nomon|swmeter|soft-mode|32bit
Bus error
pi@raspberrypi ~ $ jackd -P84 -p8 -t2000 -d alsa -dhw:ALSA -p128 -n3 -r48000 -s
jackd 0.122.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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 ..
apparent rate = 48000
creating alsa driver ... hw:ALSA|hw:ALSA|128|3|48000|0|0|nomon|swmeter|soft-mode|32bit
Bus error

Re: qjackctl and jack

Posted: Wed May 29, 2013 6:30 pm
by AutoStatic
Did you have JACK installed prior to adding my repository? Or did you try installing it from source? If so you have to make sure all references to this compiled version from source are deleted. If you had a version from the raspbian repositories installed before try purging it and then reinstall jackd1 again:

Code: Select all

sudo apt-get purge jackd jackd1 libjack0
sudo apt-get --no-install-recommends install jackd1

Re: qjackctl and jack

Posted: Thu May 30, 2013 2:43 am
by pkrakow
I'm still getting the bus error (see below). I'm thinking it might be time to try a fresh install of raspbian. I have band practice tonight, so that will have to wait a day or two.


---

pi@raspberrypi ~ $ sudo apt-get purge jackd jackd1 libjack0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'jackd' is not installed, so not removed
The following packages were automatically installed and are no longer required:
libblas3gf liblapack3gf liblo7 libqt4-dbus python-dbus python-dbus-dev qdbus
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libjack-jackd2-0
Suggested packages:
jackd2
The following packages will be REMOVED:
jackd1* libjack0*
The following NEW packages will be installed:
libjack-jackd2-0
0 upgraded, 1 newly installed, 2 to remove and 35 not upgraded.
Need to get 0 B/187 kB of archives.
After this operation, 348 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 66205 files and directories currently installed.)
Removing jackd1 ...
Purging configuration files for jackd1 ...
dpkg: libjack0:armhf: dependency problems, but removing anyway as you requested:
puredata-core depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0 is not installed.
Package libjack-0.116 is not installed.
Package libjack0:armhf which provides libjack-0.116 is to be removed.
libasound2-plugins:armhf depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0 is not installed.
Package libjack-0.116 is not installed.
Package libjack0:armhf which provides libjack-0.116 is to be removed.
puredata-extra depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0 is not installed.
Package libjack-0.116 is not installed.
Package libjack0:armhf which provides libjack-0.116 is to be removed.

Removing libjack0:armhf ...
Purging configuration files for libjack0:armhf ...
Processing triggers for man-db ...
Selecting previously unselected package libjack-jackd2-0:armhf.
(Reading database ... 66112 files and directories currently installed.)
Unpacking libjack-jackd2-0:armhf (from .../libjack-jackd2-0_1.9.8~dfsg.4+20120529git007cdc37-5+fixed1~raspbian1_armhf.deb) ...
Setting up libjack-jackd2-0:armhf (1.9.8~dfsg.4+20120529git007cdc37-5+fixed1~raspbian1) ...
pi@raspberrypi ~ $ sudo apt-get --no-install-recommends install jackd1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libblas3gf liblapack3gf liblo7 libqt4-dbus python-dbus python-dbus-dev qdbus
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libjack0
Suggested packages:
jack-tools meterbridge
Recommended packages:
qjackctl
The following packages will be REMOVED:
libjack-jackd2-0
The following NEW packages will be installed:
jackd1 libjack0
0 upgraded, 2 newly installed, 1 to remove and 35 not upgraded.
Need to get 0 B/356 kB of archives.
After this operation, 348 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
dpkg: libjack-jackd2-0:armhf: dependency problems, but removing anyway as you requested:
puredata-core depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0:armhf is to be removed.
Package libjack-0.116 is not installed.
Package libjack-jackd2-0:armhf which provides libjack-0.116 is to be removed.
libasound2-plugins:armhf depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0:armhf is to be removed.
Package libjack-0.116 is not installed.
Package libjack-jackd2-0:armhf which provides libjack-0.116 is to be removed.
puredata-extra depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0:armhf is to be removed.
Package libjack-0.116 is not installed.
Package libjack-jackd2-0:armhf which provides libjack-0.116 is to be removed.
puredata-core depends on libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116; however:
Package libjack-jackd2-0:armhf is to be removed.
Pack
(Reading database ... 66123 files and directories currently installed.)
Removing libjack-jackd2-0:armhf ...
Selecting previously unselected package libjack0:armhf.
(Reading database ... 66112 files and directories currently installed.)
Unpacking libjack0:armhf (from .../libjack0_1%3a0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1_armhf.deb) ...
Setting up libjack0:armhf (1:0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1) ...
Selecting previously unselected package jackd1.
(Reading database ... 66121 files and directories currently installed.)
Unpacking jackd1 (from .../jackd1_1%3a0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1_armhf.deb) ...
Processing triggers for man-db ...
Setting up jackd1 (1:0.121.3+20120418git75e3e20b-2.1+fixed1~raspbian1) ...
pi@raspberrypi ~ $ sudo mount -o remount,size=128M /dev/shm
pi@raspberrypi ~ $ echo -n performance \
> | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performancepi@raspbjackd -P84 -p8 -t2000 -d alsa -dhw:Set -p128 -n3 -r48000 -s jackd 0.122.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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 ..
apparent rate = 48000
creating alsa driver ... hw:Set|hw:Set|128|3|48000|0|0|nomon|swmeter|soft-mode|32bit
Bus error
pi@raspberrypi ~ $ jackd -P84 -p8 -t2000 -d alsa -dhw:ALSA -p128 -n3 -r48000 -s jackd 0.122.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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 ..
apparent rate = 48000
creating alsa driver ... hw:ALSA|hw:ALSA|128|3|48000|0|0|nomon|swmeter|soft-mode|32bit
Bus error

Re: qjackctl and jack

Posted: Sat Jun 01, 2013 1:38 pm
by pkrakow
Ok, so I've started from scratch with a fresh 2013-02-09-wheezy-raspbian image. From the config screen I enabled SSH on boot, expanded rootfs, moderately overclocked the pi, and ran the raspi-config update. That's it. Nothing else.

From there, I followed the steps on http://wiki.linuxaudio.org/wiki/raspberrypi line-by-line.

Still no audio. It looks like JACK is running, but ALSA is timing out (see below).

Has anyone gotten JACK and ALSA running on a clean install of 2013-02-09-wheezy-raspbian?



epi@raspb jackd -P84 -p8 -t3500 -d alsa -dhw:Set -p128 -n3 -r48000 -s
jackd 0.122.0
Copyright 2001-2009 Paul Davis, Stephane Letz, Jack O'Quinn, Torben Hohn 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 ..
apparent rate = 48000
creating alsa driver ... hw:Set|hw:Set|128|3|48000|0|0|nomon|swmeter|soft-mode|32bit
configuring for 48000Hz, period = 128 frames (2.7 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 3 periods for playback
delay of 3241.000 usecs exceeds estimated spare time of 2585.000; restart ...

delay of 3241.000 usecs exceeds estimated spare time of 2586.000; restart ...

Re: qjackctl and jack

Posted: Sat Jun 01, 2013 7:28 pm
by AutoStatic
pkrakow wrote:Still no audio.
Did you make the necessary connections with either jack_connect on the CLI or with QjackCtl?
pkrakow wrote:It looks like JACK is running, but ALSA is timing out (see below).
JACK runs, and it's not ALSA timing out but JACK facing some kind of delay. The delay is not big so try raising the period size, that should eliminate (most) of those messages.
pkrakow wrote:Has anyone gotten JACK and ALSA running on a clean install of 2013-02-09-wheezy-raspbian?
Yes, I have. And it works on your install too. You probably need to make some connections and then you should get sound. What kind of applications are you using to test the sound?

Re: qjackctl and jack

Posted: Mon Jun 03, 2013 5:14 am
by pkrakow
I'm working with Pure Data, and after some fiddling about this morning I got audio working via JACK and PD. The key piece of the puzzle that I was missing was that JACK keeps running in the terminal window (it doesn't return to the command prompt) so I had to open an additional terminal window to get pd running.

Thanks for all the help.

Re: qjackctl and jack

Posted: Mon Jun 03, 2013 10:35 am
by AutoStatic
Ah! That's true. You can fork jackd in the background by appending an ampersand (&) at the end of your jackd command:

Code: Select all

jackd -P84 -p8 -t3500 -d alsa -dhw:Set -p128 -n3 -r48000 -s &
Cool that it works now!

Re: qjackctl and jack

Posted: Thu Jun 12, 2014 3:03 pm
by bricolodu13
Hello,

I'm hardly trying to do Digital Room Correction with a Raspberry Pi running Squeezelite.
I'm trying this under a fresh Raspbian install first as it is the more docummented.
I have a ES9023 Terradack I2S connected to my Pi.
For the time being I have Squeezelite running !
I succeeded in installing Jack, tried to patch it (don't know weither it was successfull).
It looks like running from desktop (startx) ONLY (I usually want to run headless).
I have installed the ALSA JACK PCM plugin in order to route audio to/from generic ALSA-using applications (like squeezelite?):
I used the first approach from here :
http://proaudio.tuxfamily.org/wiki/inde ... PCM_plugin

When I list my availlable audio cards from Squeezelite I see Jack
They mention "You must install alsa-plugins with USE="jack"." - Don't know what should I do ?...
BUT I have never been able to send Squeezelite to jack, I get error message :
"test_open:124 playback open error : no such device or address"
"ouput_init_common:365 unable to open output device"

I also got qjackctl running , but can't make any succesfull connection

After, should I clear this mess, I want to run jconvolver from jack and send the resulting file to the I2S sound card ...

Do you have any idea of what I should do ?

Best regards,
Jean

Re: qjackctl and jack

Posted: Fri Jun 13, 2014 10:38 am
by bricolodu13
Ok, I succeeded in making jack to work with Squeezeslave but not with Squuezelite, don't know why.
It is not working headless (through SSH) don't know why either.
So first I open a Terminal (console) on the desktop and launch Jack
jackd -P70 -p16 -t2000 -dalsa -r44100 -S &
Then, I open a second Terminal on the desktop and launch Squeezeslave (o4 = ALSA dmix from jack server)
./squeezeslave -F -o4

Why is it not working with squeezelite ???
Why is it not working through SSH ???

Still have to try jconvolver, and here I'm feeling alone....