You are not logged in.

#1 2012-12-14 04:06:51

iamgabo
Member
From: Argentina
Registered: 2011-10-12
Posts: 15

jackd + guitar: "timeouts and broken pipes"

Hi friends! I'm trying to pass my electric guitar via any rack/effects (like Guitarix or Creox) with no luck. I've got this sound card:

01:06.0 Multimedia audio controller: Creative Labs [SB Live! Value] EMU10k1X
01:06.1 Input device controller: Creative Labs [SB Live! Value] Input device controller

I try with QJackCtl and invoking jackd from the terminal with any luck.

jackd -d alsa -C -P
jackd 0.121.3
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

could not open driver .so '/usr/lib/jack/jack_net.so': libcelt0.so.2: cannot open shared object file: No such file or directory

could not open driver .so '/usr/lib/jack/jack_firewire.so': libffado.so.2: cannot open shared object file: No such file or directory

JACK compiled with System V SHM support.
loading driver ..
creating alsa driver ... hw:0|hw:0|1024|2|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 1024 frames (21.3 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 2 periods for playback
jackd watchdog: timeout - killing jackd
[gabo@machina ~]$ 

This is the output from QJackCtl:

00:12:07.126 Client deactivated.
00:12:07.130 JACK is being forced...
cannot read server event (Success)
cannot continue execution of the processing graph (Bad file descriptor)
zombified - calling shutdown handler
cannot send request type 7 to server
cannot read result for request type 7 from server (Broken pipe)
cannot send request type 7 to server
cannot read result for request type 7 from server (Broken pipe)
00:12:07.339 JACK was stopped with exit status=1.

I can hear my guitar and record with Audacity, but when jackd enter into the escenario everything blows up. I read that nowadays almost any sound card will work with QJackCtl with the default options. I play with the parameters and sometimes jack refuse to start. With the default options on i can make it run, but i get no sound of the racks or guitar effects processors neither the guitar tuners that use jack takes the sound from the guitar. My line input is in capture via alsamixer, but still no luck. Any clue on this? I'm skipping steps?

Thanks in advance.

iamgabo


Parez-vous, dansez, riez, - Je ne pourrai jamais envoyer l'Amour par la fenêtre.

Offline

#2 2012-12-14 15:06:54

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: jackd + guitar: "timeouts and broken pipes"

hi iamgabo,I've been using jack for 5-6yrs now, so i might be able to help you. I also used to own the exact soundcard you are using and it does work with jackd (although, i tend to use proaudio cards, not consumer grade)... But first, you should provide more information, k?

- can you post ~/.jackdrc ?  (with settings that are working in qjackctl/jackd)
- what kernel are you using?  (uname -a)
- what hardware are you using (cpu, etc)

At first glance, the way you are trying to start jackd from the commandline looks wrong... It seems like you should be using a couple more switches than you are... For example, on my machine if i execute jackd from the commandline, it would look like this;

/usr/bin/jackd -v -R -P89 -p512 -t10000 -m -dfirewire -r96000 -p256 -n3 

(note: this is my config, for my h/w and will not work with yours!)

You'll notice i've given jackd realtime priorites (-R -P89), specify the device (-dfirewire), sampling rate (in my case, 96000), the frames/period length (-p256) and finally period/buffer length (-n3)....   This config was created by qjackctl (with me setting it up via the gui), which is then saved in my home folder, as a hidden file ~/.jackdrc  ... As far as 'playing with the settings & jackd not starting' - if you don't know what you are doing and use settings that don't work with your soundcard, yes, jackd will fail to start... That is why i think it might be best for you to start (and post here) a working config, then we can possibly figure out what might be adjusted best for your setup smile

Now, you've mentioned that with jackd running, you get no sound out of the rack, tuners, etc... 1st, you do not use ALSAMIXER for your inputs, when using jack. The only time you _might_ need to use alsamixer, is if your input is on 'mute', or you need to adjust the volume, itself... You need to connect everything using qjackctl. (it sounds to me like you didn't have anything connected properly, to actually produce sound - thus probably are skipping a step or two). But no worries, i can give a quick tutorial;

1. start jackd/qjackctl
2. launch your app(s)
3. Open qjackctl and open the connections window;  You should see your h/w inputs and outs, as well as whatever apps you have launched.4. route your h/w input (ie: guitar) into your app, then connect your app to h/w output.

Here is a very quick video, showing me connecting my guitar to an app, then sending it's output to my system outputs;

http://www.youtube.com/watch?v=VeRsIdRYUpk

sorry about no sound, but my mics are not here right now. but i tried my best to atleast point out that it was making sound, and how things relate by drawing circles with my pointer. - it should be somewhat obvious what i am doing though (just connecting/routing from input to app to speaker).

Last edited by triplesquarednine (2012-12-14 15:16:57)

Offline

#3 2012-12-14 18:37:07

iamgabo
Member
From: Argentina
Registered: 2011-10-12
Posts: 15

Re: jackd + guitar: "timeouts and broken pipes"

Hi, triplesquarednine, and thanks for the tutorial and the answer.
Sorry for not posting more specs about my box, but heh, here they are.

I have an AMD Sempron processor at 1.8Gh with 1.5Gb of RAM.

cat /proc/cpuinfo 
processor	: 0
vendor_id	: AuthenticAMD
cpu family	: 15
model		: 95
model name	: AMD Sempron(tm) Processor 3400+
stepping	: 2
microcode	: 0x62
cpu MHz		: 1000.000
cache size	: 256 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 1
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow up extd_apicid pni cx16 lahf_lm extapic cr8_legacy
bogomips	: 2010.14
clflush size	: 64
cache_alignment	: 64
address sizes	: 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

Onboard video

00:0d.0 VGA compatible controller: NVIDIA Corporation C61 [GeForce 6100 nForce 405] (rev a2)

I use OpenBox at a DE because of the lack of resources of my machine, and i have tried to start jack with the core repo kernel and the Con Kolivas one, all with the same results.

Linux machina 3.6.9-1-ARCH #1 SMP PREEMPT Tue Dec 4 09:31:43 CET 2012 i686 GNU/Linux

.jackdrc

/usr/bin/jackd -p128 -dalsa -dhw:0 -r44100 -p128 -n2

QJackCtl

tZ3AwMA
tZ3AxaQ

And his error:

tZ3AxZg

Alsamixer

tZ3AwdQ
tZ3Awcw
tZ3Awdg

Thanks in advance!


Parez-vous, dansez, riez, - Je ne pourrai jamais envoyer l'Amour par la fenêtre.

Offline

#4 2012-12-14 19:42:02

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: jackd + guitar: "timeouts and broken pipes"

okay, i want to see a few other things. Can you just cut and past this whole line into your terminal;

groups && cat /proc/asound/cards && cat ~/.asoundrc && cat '/etc/security/limits.d/audio.conf' && jackd -v

then please post the output?

also, you aren't running pulseaudio are you? (EDIT: nevermind, your not running PA )

and lastly, qjackctl settings;

can you make the 'timeout' setting bigger please, but also see what interfaces are available via the 'interface' setting?

You might also want to change a few things in alsamixer. I would off the hop; 1. mute/disable 3d control, line-in, surround .2 unmute the mic ...

...and just a word of advice, cranking every setting to 100% is probably going to result in poor sound with distortion.

EDIT: can you also make sure that qjackctl is saving it's settings. this is found in 'setup' --> 'misc' ... just make sure it's checked, and saving to .jackdrc

Last edited by triplesquarednine (2012-12-14 20:01:42)

Offline

#5 2012-12-15 02:19:02

iamgabo
Member
From: Argentina
Registered: 2011-10-12
Posts: 15

Re: jackd + guitar: "timeouts and broken pipes"

Hi!

groups && cat /proc/asound/cards && cat ~/.asoundrc && cat '/etc/security/limits.d/audio.conf' && jackd -v
adm disk lp wheel http network video audio optical storage power users polkitd vboxusers wireshark kismet
 0 [Live           ]: EMU10K1X - Dell Sound Blaster Live!
                      Dell Sound Blaster Live! at 0xcc00 irq 17
#pcm.upmix71 {
	#type upmix
	#slave.pcm "surround71"
	#delay 15
	#channels 8
#}

pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 0
}

# convert alsa API over jack API
# use it with
# % aplay foo.wav

# use this as default
pcm.!default {
    type plug
    slave { pcm "jack" }
}

ctl.mixer0 {
    type hw
    card 1
}

# pcm type jack
pcm.jack {
    type jack
    playback_ports {
        0 system:playback_1
        1 system:playback_2
    }
    capture_ports {
        0 system:capture_1
        1 system:capture_2
    }
}
cat: /etc/security/limits.d/audio.conf: No such file or directory

I have a file called 99-audio.conf

cat /etc/security/limits.d/99-audio.conf 
@audio 	- rtprio 	99
@audio 	- memlock 	unlimited

Also i've seen some guys changing this file too:

cat /etc/security/limits.conf 
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain>        <type>  <item>  <value>
#
#Where:
#<domain> can be:
#        - an user name
#        - a group name, with @group syntax
#        - the wildcard *, for default entry
#        - the wildcard %, can be also used with %group syntax,
#                 for maxlogin limit
#
#<type> can have the two values:
#        - "soft" for enforcing the soft limits
#        - "hard" for enforcing hard limits
#
#<item> can be one of the following:
#        - core - limits the core file size (KB)
#        - data - max data size (KB)
#        - fsize - maximum filesize (KB)
#        - memlock - max locked-in-memory address space (KB)
#        - nofile - max number of open files
#        - rss - max resident set size (KB)
#        - stack - max stack size (KB)
#        - cpu - max CPU time (MIN)
#        - nproc - max number of processes
#        - as - address space limit (KB)
#        - maxlogins - max number of logins for this user
#        - maxsyslogins - max number of logins on the system
#        - priority - the priority to run user process with
#        - locks - max number of file locks the user can hold
#        - sigpending - max number of pending signals
#        - msgqueue - max memory used by POSIX message queues (bytes)
#        - nice - max nice priority allowed to raise to values: [-20, 19]
#        - rtprio - max realtime priority
#
#<domain>      <type>  <item>         <value>
#

#*               soft    core            0
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#@student        -       maxlogins       4


*               -       rtprio          0
*               -       nice            0
@audio          -       rtprio          65
@audio          -       nice           -10
@audio          -       memlock         unlimited
jackd 0.121.3

There are the snaps for QJackCtl

tZ3A2bA
tZ3A2bQ
tZ3A2bg
tZ3A2bw

Also, checkout this stuff that i've recorded with audacity, only from the line and nothing else

http://ompldr.org/vZ3A2eg

Thanks!

Last edited by iamgabo (2012-12-15 02:21:08)


Parez-vous, dansez, riez, - Je ne pourrai jamais envoyer l'Amour par la fenêtre.

Offline

#6 2012-12-20 19:04:14

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: jackd + guitar: "timeouts and broken pipes"

I think you may want to hit linuxaudio user list and possibly the jack-devel list for help.

I am not sure what your issue is and to be honest, since the end of last week have had zero time to look further into it.

I will say though, i find some of your configs to be a bit strange. For example; why do you have 2 different prio values for your @audio user?? ~ furthermore why do you have both limits.conf and 99-audio.conf editing the same things that only need to be defined in one or the other (not both with different values). Your .asoundrc also seems a bit odd, you don't even have jackd working and yet you've added jack-specific stuff (like alsa to jack - the old crappy method... ie: when you do get jackd running you should be looking at using zita-ajbridge, instead)...

I know for myself anyway, i never blindly add anything to a config - i always go step by step, making sure things are working properly on each step before going onto the next one (i also tend to keep working configs. ie: you said at one point qjackctl was working - it would have been nice if you had kept that config to work from)...out of curiosity, were you doing a lot of googling, seeing what other people have and then just copying and pasting bits from their configs??  (it kind of seems that way, although i could be wrong). 

anyway, sorry for not getting back to you sooner - but i am swamped with work and preperations for the holidays. (sorry)

but again, if i were you i might hit both of the lists mentioned and ask for help there

Ninez

PS: your audio file played nothing back

Offline

Board footer

Powered by FluxBB