Bob Hamil Info Page  
       Computer and Technical Performance Services


Updated
12/2/2011


FFADO & Jack2

(formerly the Presonus on Linux pages)
For a couple years I have been running my Presonus Firestudio 26x26 with FFADO and Jack2.  Early on, I needed to compile FFADO and Jack and Ardour..., but these days, I just install XFCE from DVD, and add FFADO and Jack2 from the repositories, use it after permissions changes for my Focusrite and Motu, and after adding a line to FFADO configuration, I can also use the Presonus.  I can also use any of these interfaces simultaneously as pairs, but not all three together.
Below are detailed instructions. 



XFCE-Jack version3
I've used XFCE lately because all the software is available from repos.  I have no idea if it's "the best" distro for this, but it works. 

Notice: I have not had recording work lately and the part-time day job has been more like full-time lately, so I HAVE NOT TESTED these setups other than I patch an input to an output in "Connect" and make sure I hear myself on mic through headphones, without noticeable latency or distortions. 
BUT, in the past, if I got the interface working this far, I was able to make whatever tweaks were recommended to improve recording, if there was even any limitation in the first place.  Also, I haven't gotten ffado-mixer to work with the Presonus, but others say they have. 

So, that being said, here is what works for me to use my Focusrite Saffire Pro24, Presonus Firestudio 26x26, and Motu Traveler mk3.  (oops, some recent change I've made has seemingly prevented the Motu from actually working - it's still seen, but ffado-mixer changes don't appear on the Traveler, and Jack2 shows all the i/o's, but never finishes connecting.  It works in Wxp. 
 
Note: I have also been able to connect any two combinations of these interfaces, and pass audio in one interface and out the other.  (but not the Motu, until I fix that.) 

This probably applies to other DICE interfaces also, and there is a section in the middle about getting those working. 

Make sure whatever interface you are using works in whatever operating system there are drivers available for. 

Make sure you have a Texas Instruments based firewire controller. 

Download the 32-bit version of XFCE from
http://blog.linuxmint.com/?p=1818
(I haven't tested 64bit yet.) 

Allow the system to update through Update Manager. 

In Synaptic, add:
ffado-mixer-qt4, (ffado-dBus-server, ffado-tools, libfaddo2 will also mark.)  (libffado-dev I don't think is needed.)  
jack2d-firewire (other dependcies will also add). 

Not necessary, but I also add: jack-mixer, jacktrip, pulseaudio-module-jack, silentjack. 
Press "Apply changes" and allow files to download and install. 
Close synaptic. 

Open File Manager, navigate to /usr/share/, right-click on libffado2 and choose "open folder as root".  Enter password if needed. 
Open the configuration file in gedit,
add these lines to the file to fit the obvious format (use cut and paste):
{
    vendorid = 0x000a92;
    modelid = 0x00000008;
    vendorname = "Presonus";
    modelname = "Firestudio 26x26";
    driver = 20;
},

Another intertface???
Try this:
ctrl-f and enter your interface name to look for your interface manufacturer.  Keep pressing "Enter" until you have seen the whole file and started back at the top. 
If you don't see your interface, don't dispair, you can install Gscanbus, and may be able use it to get the info needed to create a new configuration entry for your interface. 
Open Synaptic and find Gscanbus, mark it for install and apply.  When finished, close synaptic. 
Connect your interface with a Firewire cable and turn it on. 
Open a terminal window, and type gscanbus then press enter.  (If, instead of getting a Gscanbus GUI, you get error messages, you may need to complete some of the other steps below then try Gscanbus again). 
Hopefully, you see an icon for your interface, click on it, and you should get an info window that includes info needed for the config file.  Create a few lines with this info, that follow the model above and add them to the configuration file.


Back to the main task:

Start Menu | System | Users and Groups
Add your user name to these groups by double-clicking on each and checkboxing your user name:
audio, disk, video

******* may not be needed****Open File Manager, navigate to /etc/security/, right-click on limits.d and choose "open folder as root".  Enter password if needed.  Check if audio.conf is present.  It needs these lines:
@audio - rtprio 99
@audio - memlock unlimited
*****************

Navigate to /etc/udev/, right-click on rules.d and choose "open folder as root".  Enter password if needed. 

Right-click on empty space in the rules.d folder and choose "create document | empty file" and name it 50-udev-firewire.rules.  Paste GROUP=="audio" into the file and save it. 


Logout and back in for the chqnges to take effect. 

Connect your firewire interface and power it on. 

Start Qjackctl by Start Menu | Multimedia | Qjackctl. 

Open setup, choose firewire from the driver drop-down menu. 
Make sure Realtime is checked. 
Add 85 to the priority window, choose 256 from the Frames/Period window,
Only check verbose if you have trouble starting jack in the next steps. 
Click "OK". 

Click on "start" and see what happens.  If you also click on "messages", this is the output that my Presonus 26x26 produces after I press "stop":

10:10:09.012 Patchbay deactivated.
10:10:09.103 Statistics reset.
10:10:09.115 ALSA connection change.
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
10:10:09.158 ALSA connection graph change.
10:10:13.143 JACK is starting...
10:10:13.144 /usr/bin/jackd -P85 -dfirewire -r48000 -p256 -n3
Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
no message buffer overruns
10:10:13.247 JACK was started with PID=3370.
no message buffer overruns
jackdmp 1.9.7
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2011 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
JACK server starting in realtime mode with priority 85
libffado 2.999.0- built Apr  2 2011 11:55:07
06567801151: Warning (dice_eap.cpp)[ 113] init: no EAP mixer (device does not support EAP)
 DICE Parameter Space info:
  Global  : offset=0x0028 size=0360
  TX      : offset=0x0190 size=0568
                nb=   2 size=0280
  RX      : offset=0x03C8 size=1128
                nb=   2 size=0280
  UNUSED1 : offset=0x0830 size=0016
  UNUSED2 : offset=0x0000 size=0000
 Global param space:
  Owner            : 0x00000000FFFF0000
  Notification     : 0x00000040
  Nick name        : FIRESTUDIO
  Clock Select     : 0x02 0x0C
  Enable           : false
  Clock Status     : locked 0x02
  Extended Status  : 0x00000000
  Samplerate       : 0x0000BB80 (48000)
  Version          : 0x01000400
  Version          : 0x01000400 (1.0.4.0)
  Clock caps       : 0x13FF001E
  Clock sources    :
    SPDIF
    ADAT
    Word Clock
    Unused
    Unused
    Unused
    Unused
    Internal
 TX param space:
  Nb of xmit        : 2
  Transmitter 0:
   ISO channel       :  -1
   ISO speed         :   2
   Nb audio channels :  16
   Nb midi channels  :   1
   AC3 caps          : 0x00000000
   AC3 enable        : 0x00000000
   Channel names     :
     Mic/Inst 1
     Mic/Inst 2
     Mic/Line 3
     Mic/Line 4
     Mic/Line 5
     Mic/Line 6
     Mic/Line 7
     Mic/Line 8
     ADAT 1
     ADAT 2
     ADAT 3
     ADAT 4
     ADAT 5
     ADAT 6
     ADAT 7
     ADAT 8
  Transmitter 1:
   ISO channel       :  -1
   ISO speed         :   2
   Nb audio channels :  10
   Nb midi channels  :   0
   AC3 caps          : 0x00000000
   AC3 enable        : 0x00000000
   Channel names     :
     ADAT 9
     ADAT 10
     ADAT 11
     ADAT 12
     ADAT 13
     ADAT 14
     ADAT 15
     ADAT 16
     SPDIF L
     SPDIF R
 RX param space:
  Nb of recv        : 2
  Receiver 0:
   ISO channel       :   2
   Sequence start    :   0
   Nb audio channels :  16
   Nb midi channels  :   1
   AC3 caps          : 0x00000000
   AC3 enable        : 0x00000000
   Channel names     :
     DAW Out 1 (L)
     DAW Out 2 (R)
     DAW Out 3 (LS)
     DAW Out 4 (RS)
     DAW Out 5 (C)
     DAW Out 6 (Sub)
     DAW Out 7
     DAW Out 8
     DAW Out 9
     DAW Out 10
     DAW Out 11
     DAW Out 12
     DAW Out 13
     DAW Out 14
     DAW Out 15
     DAW Out 16
  Receiver 1:
   ISO channel       :   3
   Sequence start    :   0
   Nb audio channels :  10
   Nb midi channels  :   0
   AC3 caps          : 0x00000000
   AC3 enable        : 0x00000000
   Channel names     :
     ADAT 9
     ADAT 10
     ADAT 11
     ADAT 12
     ADAT 13
     ADAT 14
     ADAT 15
     ADAT 16
     DAW Out 17
     DAW Out 18
10:10:15.791 JACK connection change.
10:10:15.801 Server configuration saved to "/home/b/.jackdrc".
10:10:15.805 Statistics reset.
10:10:15.839 Client activated.
10:10:15.858 JACK connection graph change.
10:23:21.844 Client deactivated.
10:23:21.851 JACK is stopping...
jack main caught signal 15
no message buffer overruns
10:23:22.325 JACK was stopped successfully.








Home
Sound



My favorite photo (right now), World Trade Center, 1977My favorite photo (right now), World Trade Center, 1977
PhilippePetit

If you're looking for Bob Hamil from days past, I lived in Minneapolis many years ago.

 

Bob Hamil

Contact me at 

Email

sound engineer, lighting, gardening

Just A spamspidertest1@bobhamil.com