[PlanetCCRMA] Newbie: can't get jackd to work

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Fri Sep 30 18:50:02 2005


On Fri, 2005-09-30 at 22:08 +0200, Jeroen Baten wrote:
> Op vrijdag 30 september 2005 20:15, schreef Mark Knecht:
> > You might enable realtime in QJC and then post back the first part of
> > the message window where Jack is starting, just so we could get a look
> > at what's going on.
> 
> 00:06:50.364 Patchbay activated.
> 00:06:50.691 Statistics reset.
> 00:06:50.765 MIDI connection graph change.
> 00:06:50.896 MIDI active patchbay scan...
> 00:06:50.897 p2: 62:0 Midi Through -> 62:0 Midi Through checked.
> 00:06:50.897 MIDI connection change.
> 00:06:51.098 MIDI active patchbay scan...
> 00:06:51.098 p2: 62:0 Midi Through -> 62:0 Midi Through checked.
> 00:06:52.251 Startup script...
> 00:06:52.251 artsshell -q terminate
> 00:06:52.466 Startup script terminated with exit status=256.
> 00:06:52.466 JACK is starting...
> 00:06:52.466 /usr/bin/jackd -v -R -dalsa -dhw:0 -r48000 -p1024 -n2
> 00:06:52.470 JACK was started with PID=5824 (0x16c0).
> cannot write to jackstart sync pipe 4 (Bad file descriptor)
> jackd: wait for startup process exit failed
> getting driver descriptor from /usr/lib/jack/jack_dummy.so
> getting driver descriptor from /usr/lib/jack/jack_oss.so
> getting driver descriptor from /usr/lib/jack/jack_alsa.so
> jackd 0.99.36
> Copyright 2001-2003 Paul Davis 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.
> server `default' registered
> loading driver ..
> apparent rate = 48000
> 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, buffer = 2 periods
> Couldn't open hw:0 for 32bit samples trying 24bit instead
> Couldn't open hw:0 for 24bit samples trying 16bit instead
> nperiods = 2 for capture
> nperiods = 2 for playback
> 5824 waiting for signals
> 00:06:54.514 Server configuration saved to "/home/jeroen/.jackdrc".
> 00:06:54.514 Statistics reset.
> 00:06:54.530 Client activated.
> 00:06:54.530 Audio connection change.
> 00:06:54.531 Audio connection graph change.
> registered builtin port type 32 bit float mono audio
> required capabilities not available
> capabilities: = cap_ipc_lock,cap_sys_nice,cap_sys_resource+e
> new client: alsa_pcm, id = 1 type 1 @ 0x805aa68 fd = -1
> new buffer size 1024
> registered port alsa_pcm:capture_1, offset = 4096
> registered port alsa_pcm:capture_2, offset = 8192
> registered port alsa_pcm:playback_1, offset = 0
> registered port alsa_pcm:playback_2, offset = 0
> ++ jack_rechain_graph():
> client alsa_pcm: internal client, execution_order=0.
> -- jack_rechain_graph()
> new client: qjackctl-5822, id = 2 type 2 @ 0xb5f40000 fd = 14
> ++ jack_rechain_graph():
> client alsa_pcm: internal client, execution_order=0.
> client qjackctl-5822: start_fd=6, execution_order=0.
> client qjackctl-5822: wait_fd=13, execution_order=1 (last client).
> -- jack_rechain_graph()
> 00:06:54.553 XRUN callback (1).
> 00:06:54.730 Audio active patchbay scan...
> 00:06:54.732 p2: alsa_pcm:capture_1 -> alsa_pcm:playback_1 connected.
> 00:06:54.733 p2: alsa_pcm:capture_2 -> alsa_pcm:playback_2 connected.
> 00:06:54.735 Audio connection graph change.
> connect alsa_pcm:capture_1 and alsa_pcm:playback_1 (output)
> ++ jack_rechain_graph():
> client alsa_pcm: internal client, execution_order=0.
> client qjackctl-5822: start_fd=6, execution_order=0.
> client qjackctl-5822: wait_fd=13, execution_order=1 (last client).
> -- jack_rechain_graph()
> connect alsa_pcm:capture_2 and alsa_pcm:playback_2 (output)
> ++ jack_rechain_graph():
> client alsa_pcm: internal client, execution_order=0.
> client qjackctl-5822: start_fd=6, execution_order=0.
> client qjackctl-5822: wait_fd=13, execution_order=1 (last client).
> -- jack_rechain_graph()
> 00:06:54.934 Audio active patchbay scan...
> 00:06:54.935 p2: alsa_pcm:capture_1 -> alsa_pcm:playback_1 checked.
> 00:06:54.936 p2: alsa_pcm:capture_2 -> alsa_pcm:playback_2 checked.
> 00:06:56.544 XRUN callback (48 skipped).
> 00:06:58.555 XRUN callback (48 skipped).
> 00:07:00.572 XRUN callback (49 skipped).
> jackd watchdog: timeout - killing jackd
> 00:07:02.580 XRUN callback (46 skipped).
> zombified - calling shutdown handler
> 00:07:02.765 Shutdown notification.
> 00:07:02.766 Client deactivated.
> 00:07:02.767 JACK is stopping...
> cannot read result for request type 7 from server (Verbinding door partner 
> opnieuw ingesteld)
> cannot send request type 7 to server
> cannot read result for request type 7 from server (Gebroken pijp)
> 00:07:02.967 JACK was stopped successfully.

Just a guess but I would imagine that for some reason the soundcard is
not delivering interrupts and eventually the watchdog notices and kills
jack (I think the timeout is 5 seconds by default). 

Are you able to play, say, a soundfile using just alsa?

You should try with the "edge" series of kernels (if they work for you).
Try installing "planetccrma-core-edge" and booting into it. 

> > Fernando 
> > may or may not have a good FC3 kernel yet for newish hardware.
> 
> Who is Fernando? (or is this a really stupid question :-)

That's me, I created/[try to :-]maintain Planet CCRMA...

> > Stanford has just started their year and I'm sure he's busy teaching
> > classes and keeping all those CCRMA people in line. That, and playing
> > in their new studio.. ;-)

Just getting everything to work in the newly renovated building we just
moved in. Very busy. 

The newest kernel for fc3 still lives, I think, in the planetedge
repository. The first thing to try is to install the "normal" edge
kernel and try it out. The second is to edit your /etc/apt/sources.list
file and add a line there, exactly like the current one that says
"planetcore" but instead replacing "planetcore" with "planetedge". And
then install the newer edge kernel that's there...

-- Fernando