LePioo
Posts: 3
Joined: Tue Nov 21, 2017 6:44 pm

Installing Jack on RPI3

Fri Dec 01, 2017 5:06 pm

Hi
I got trouble installing Jackd on my rpi3..
I've started following this guide but it gives a link to http://rpi.autostatic.com/
I tried adding the repo but it results on many errors:

Code: Select all

[email protected]:~ $ sudo apt-get update
Atteint:1 http://archive.raspberrypi.org/debian stretch InRelease
Atteint:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Réception de:3 http://rpi.autostatic.com/raspbian jessie InRelease [1 457 B]
Ign:3 http://rpi.autostatic.com/raspbian jessie InRelease
1 457 o réceptionnés en 1s (1 245 o/s)
Lecture des listes de paquets... Fait
W: Erreur de GPG : http://rpi.autostatic.com/raspbian jessie InRelease : Les signatures suivantes ne sont pas valables : 71997F416FAB85BCA07092531CED24226B3D4B4C
W: The repository 'http://rpi.autostatic.com/raspbian jessie InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I'm not really used to repository manipulation, and I don't know where to go from here...

fruitoftheloom
Posts: 20487
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Installing Jack on RPI3

Fri Dec 01, 2017 6:42 pm

LePioo wrote:
Fri Dec 01, 2017 5:06 pm
Hi
I got trouble installing Jackd on my rpi3..
I've started following this guide but it gives a link to http://rpi.autostatic.com/
I tried adding the repo but it results on many errors:

Code: Select all

[email protected]:~ $ sudo apt-get update
Atteint:1 http://archive.raspberrypi.org/debian stretch InRelease
Atteint:2 http://mirrordirector.raspbian.org/raspbian stretch InRelease
Réception de:3 http://rpi.autostatic.com/raspbian jessie InRelease [1 457 B]
Ign:3 http://rpi.autostatic.com/raspbian jessie InRelease
1 457 o réceptionnés en 1s (1 245 o/s)
Lecture des listes de paquets... Fait
W: Erreur de GPG : http://rpi.autostatic.com/raspbian jessie InRelease : Les signatures suivantes ne sont pas valables : 71997F416FAB85BCA07092531CED24226B3D4B4C
W: The repository 'http://rpi.autostatic.com/raspbian jessie InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I'm not really used to repository manipulation, and I don't know where to go from here...

Why are you using some unknown repository and using Jessie related JackD in Stretch ?? remove all the crap and undertake the correct procedure !!

In Raspbian stretch

Code: Select all

sudo apt-get update
sudo apt-get install jackd

https://packages.debian.org/stretch/jackd
Retired disgracefully.....

Ant27
Posts: 4
Joined: Sat Jun 16, 2018 12:29 am

Re: Installing Jack on RPI3

Sun Aug 26, 2018 3:05 am

I want to update this thread because I kept coming across it trying to find an answer through google, and I imagine other people get caught up in the same circle. Jack2 in the default repository uses dbus and will fail to run on a headless pi. Previously, that Autostatic repository was how you installed the patched version of Jack2 for headless use, but it seems outdated now. The default Raspbian repository does have the patched version for a normal Pi (I guess RPi doesn't like packed structs and Jack2 needs to be patched to work in Raspbian). If you want to run Jack on a headless pi, you have to specifically install Jackd1. It doesn't support multiprocessing, but its still fast and uses less resources. Both jacks are actively maintained. Jackd1 reported less latency to me (probably because I had to startx to use jack2).

Alternatively, you can compile jack2 without dbus from the RPi patched jack2 in the raspbian repositories. Or you can trick jack2: https://wiki.linuxaudio.org/wiki/raspbe ... nning_jack

But before going into that article too deeply, its a mix of outdated and updated information. Ignore the outdated autostatic repository, and look for the updated section on tricking jack2 into seeing dbus specifically in Stretch.

Edit: That whole Linux Audio page is trouble. The tricks for getting jack to think dbus is there did something nasty and I had to start fresh with my SD card. If you're a beginner, just install jackd1. I just compiled jack, the newest version isn't in the repositories, and they added NEON optimizations for arm cpu's.

Code: Select all

sudo apt-get install -y libasound2-dev libsndfile1-dev libreadline-dev libreadline6-dev libtinfo-dev
git clone https://github.com/jackaudio/jack2.git --depth 1
cd jack2
./waf configure
./waf build
sudo ./waf install
sudo ldconfig
sudo sh -c "echo @audio - memlock 256000 >> /etc/security/limits.conf"
sudo sh -c "echo @audio - rtprio 75 >> /etc/security/limits.conf"
This is from the script here: https://github.com/BlokasLabs/modep/blo ... ep.sh#L105
and should take care of everything the repository package does, but without dbus. It works fine on my 3 b+.
If you've already installed jack before, you have to instead configure with this flag

Code: Select all

./waf configure --prefix /usr
in the above step to make sure it overwrites an existing jack install, otherwise "Failure to do this will more or less guarantee that JACK will no longer work on your machine."

jemfiner
Posts: 10
Joined: Sat Apr 04, 2015 9:05 am

Re: Installing Jack on RPI3

Fri Aug 31, 2018 2:55 pm

I've just updated an SD card to Stretch from Jessie to try and get it to run on an RPi 3 B+.

Using this card everything, including Jack, works fine (as does Supercollider) on a Pi Zero (headless). But on the 3 B+ Jack fails:

Cannot read socket fd = 6 err = Success
CheckRes error
JackSocketClientChannel read fail
Cannot open SuperCollider client
JackShmReadWritePtr1::~JackShmReadWritePtr1 - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
could not initialize audio.

I've tried both Ant27's and Fruitoftheloom's suggestions. Still the same situation.

So this must be something specific to the 3 B+. Any ideas ?

Thanks,

Jem
Last edited by jemfiner on Sat Sep 01, 2018 7:07 am, edited 1 time in total.

sigalov
Posts: 1
Joined: Sun Feb 17, 2019 1:26 pm

Re: Installing Jack on RPI3+

Sun Feb 17, 2019 1:43 pm

Hello all,
I'm still getting the error as in the previous post.
Any solution?

Return to “Beginners”