[PlanetCCRMA] Unable to get any sound through jackd

Ron Fox rfox-f8 at hawaii.rr.com
Sat Jul 12 20:55:56 PDT 2008


Oops, "QjackCtl starts with the fo" should have been "starts with the
following message window output:

17:50:51.691 Patchbay deactivated.
17:50:51.768 Statistics reset.
17:50:51.814 Startup script...
17:50:51.815 artsshell -q terminate
17:50:51.871 ALSA connection graph change.
17:50:52.234 Startup script terminated with exit status=256.
17:50:52.235 JACK is starting...
17:50:52.235 /usr/bin/jackd -dalsa -dhw:0 -r48000 -p256 -n3
17:50:52.236 JACK was started with PID=3631.
jackd 0.109.2
Copyright 2001-2005 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.
loading driver ..
SSE2 detected
apparent rate = 48000
creating alsa driver ... hw:0|hw:0|256|3|48000|0|0|nomon|swmeter|-|32bit
control device hw:0
configuring for 48000Hz, period = 256 frames (5.3 ms), buffer = 3
periods
ALSA: final selected sample format for capture: 32bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 32bit little-endian
ALSA: use 3 periods for playback
17:50:52.438 ALSA connection change.
17:50:54.452 Server configuration saved to "/home/rfox/.jackdrc".
17:50:54.454 Statistics reset.
17:50:54.458 Client activated.
17:50:54.462 JACK connection change.
17:50:54.465 JACK connection graph change.
SSE2 detected
17:50:54.475 XRUN callback (1).
17:50:56.471 XRUN callback (74 skipped).
17:50:58.559 XRUN callback (78 skipped).
17:51:00.568 XRUN callback (75 skipped).

jackd started in this manner seems stable and, except for the 75 or so
XRUNs per 2 seconds, I don't see any evidence of trouble.

Regards,
Ron

On Sat, 2008-07-12 at 17:46 -1000, Ron Fox wrote:
> Thanks for the quick response Fernando,
> 
> On Fri, 2008-07-11 at 15:55 +0200, Fernando Lopez-Lezcano wrote: 
> > On Fri, 2008-07-11 at 03:42 -1000, Ron Fox wrote:
> > > Aloha,
> > 
> > Aloha!!
> > 
> > > I'm new to Linux Audio but am a longtime Fedora and Linux user.
> > > 
> > > I'm not able to get any sound at all through jackd running on F8-ccrma
> > > on my Dell M90 laptop/workstation with built-in Intel Soundcard.
> > > 
> > > ALSA is working as demonstrated by running (as user=rfox)
> > > $ speaker-test -c2 -twav
> > > 
> > > Output from the alsa-info script is posted at http://pastebin.ca/1069099
> > > 
> > > I've followed configuration directions from many different documents,
> > > most recently "Professional audio with Fedora" by Keith Sharp: 
> > > 
> > > http://www.passback.org.uk/music/fedora-music-intro/
> > > 
> > > which was created on 19 Jan 2008.  I was hoping that the combination of
> > > jackd and ZynAddSubFx would give me a "simple as possible" environment
> > > to troubleshoot my problems but, even using this combination, I can't
> > > get a peep out of the ZynAddSubFx keyboard.
> > 
> > I usually use Hydrogen with one of the demo patterns for quick testing. 
> 
> OK, I have Hydrogen among the CCRMA applications.
> 
> > > Is there a set of steps that I can follow to setup jackd and hook a
> > > simple audio app to it?
> > > 
> > > Hear is what I've tried most recently
> > > --------------- starting ZynAddSubFx from the command line ---------
> > > [rfox at kolea ~]$ zynaddsubfx 
> > 
> > I would start jack first. 
> 
> I've tried it both ways but will start jackd with QJackctl first for
> consistency.
> 
> > A possible sequence of operations:
> > 
> > - verify that jackd is not running, kill it if it is. 
> > 
> > - start qjackctl
> > 
> > - if you are running on an hda-intel card (I think you are) you need to
> > change "Periods/Buffer" in the Setup/Settings dialog to "3" (not 2,
> > hda-intel hardware is not happy with that). Also check that "Interface"
> > is pointing to "hw:0". If you want lower latency you can lower
> > "Frames/Period" to, say, 128 (but after initial testing confirms things
> > are working). 
> 
> Yes, I have an Intel HDA as reported by amixer:
> 
> [rfox at kolea ~]$ amixer -c0 info
> Card hw:0 'Intel'/'HDA Intel at 0xefffc000 irq 21'
>   Mixer name    : 'SigmaTel STAC9200'
>   Components    : 'HDA:83847690 HDA:14f12bfa'
>   Controls      : 13
>   Simple ctrls  : 6
> 
> OK, have done this.  Periods/Buffer is now 3 (was 2) and Interface
> points to "hw:0".  No change to Frames/Period just yet.
> 
> > - start jack (press the "Play" button).
> 
> Assume you mean the "Start" button...
> 
> > - verify that it starts fine and is reasonably stable. 
> 
> Starts with the fo
> > - start Hydrogen, select one of the demo songs
> 
> started hydrogen from the command line:
> [rfox at kolea ~]$ hydrogen
> Warning: no locale
> found: /usr/share/hydrogen/data/i18n/hydrogen.en_US.UTF-8
> Warning: error loading
> locale: /usr/share/hydrogen/data/i18n/hydrogen.en_US.UTF-8.qm
> 
> Hydrogen 0.9.3 [Oct  9 2007]  [http://www.hydrogen-music.org]
> Copyright 2002-2005 Alessandro Cominu
> 
> 
> Compiled modules:  (FLAC) (Jack) (Alsa) (LRDF)
> 
> Hydrogen 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
> 
> Using data path: /usr/share/hydrogen/data
> [WARNING]   SongReader          [readSong] Trying to load a song created
> with a different version of hydrogen.
> [WARNING]   SongReader          [readSong] Song
> [/usr/share/hydrogen/data/demo_songs/GM_kit_demo1.h2song] saved with
> version 0.9.0
> [LadspaFX::getPluginList] reading directory: /usr/lib/ladspa
> [LadspaFX::getPluginList] reading directory: /usr/lib/hydrogen/plugins
> [LadspaFX::getLadspaFXGroup]
> [LadspaFX::getPluginList] reading directory: /usr/lib/ladspa
> [LadspaFX::getPluginList] reading directory: /usr/lib/hydrogen/plugins
> SSE2 detected
> SSE2 detected
> [WARNING]   JackDriver          [setBpm] 115
> [WARNING]   LocalFileMng        [readXmlString] Using default value in
> name
> [WARNING]   LocalFileMng        [readXmlString] Using default value in
> name
> [WARNING]   LocalFileMng        [readXmlString] Using default value in
> name
> -----------------------------------------------------------------------
> 
> Selected /usr/share/hydrogen/data/demo_songs/tutorial_georgyporgy.h2song
> 
> [WARNING]   SongReader          [readSong] Trying to load a song created
> with a different version of hydrogen.
> [WARNING]   SongReader          [readSong] Song
> [/usr/share/hydrogen/data/demo_songs/tutorial_georgyporgy.h2song] saved
> with version 0.9.0
> ------------------------------------------------------------------------ 
> > - go to qjackctl and connect the output of Hydrogen to the soundcard
> 
> There's already a pair of connections under the Audio tab of the
> Connections dialog:
> 
> Hydrogen-1 system
>   out_L    --------------------   playback_1
>   out_R    --------------------   playback_2
> 
> (Hydrogen File->Preferences->Audio System has a checkbox for "Connect to
> default output pair" that seems to be doing this - I can't uncheck this
> box)
> 
> > - press play in Hydrogen
> > 
> > - you should hear the pattern...
> 
> Nope.
> The Hydrogen status line changes to "Playing." for 5 seconds, then
> changes back to an empty status line.
> The timecode meter never changes from 00:00:00
> 
> No sound at all.
> 
> > = to check: verify mute state and volume of the soundcard...
> > 
> Can't check while Hydrogen and Qjackctl are hooked up as I get the
> following output:
>   [rfox at kolea ~]$ speaker-test -c2 -twav
> 
>   speaker-test 1.0.16
> 
>   Playback device is default
>   Stream parameters are 48000Hz, S16_LE, 2 channels
>   WAV file(s)
>   ALSA lib pcm_dmix.c:996:(snd_pcm_dmix_open) unable to open slave
>   Playback open error: -16,Device or resource busy
> 
> but after stopping jackd with QJackctl
> 
>   [rfox at kolea ~]$ speaker-test -c2 -twav
> 
>   speaker-test 1.0.16
> 
>   Playback device is default
>   Stream parameters are 48000Hz, S16_LE, 2 channels
>   WAV file(s)
>   Rate set to 48000Hz (requested 48000Hz)
>   Buffer size range from 2048 to 8192
>   Period size range from 1024 to 1024
>   Using max buffer size 8192
>   Periods = 4
>   was set period_size = 1024
>   was set buffer_size = 8192
>   0 - Front Left
>   1 - Front Right
>   Time per period = 2.856941
>   0 - Front Left
>   1 - Front Right
>   Time per period = 3.008038
>   0 - Front Left
>   1 - Front Right
> 
> The volume on both speakers is fine.
> 
> This is driving me crazy but I don't know where to look for the problem.
> 
> Again, the output from alsa-info is posted at http://pastebin.ca/1069099
> and I'd be happy to post output from other commands or post
> configuration file contents.
> 
> Mahalo,
> Ron
> 
> > -- Fernando
> > 
> > 
> > > lash_open_socket: could not connect to host 'localhost', service '14541'
> > > lash_comm_connect_to_server: could not create server connection
> > > jackd 0.109.2
> > > Copyright 2001-2005 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.
> > > loading driver ..
> > > SSE2 detected
> > > 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: 32bit little-endian
> > > ALSA: use 2 periods for capture
> > > ALSA: final selected sample format for playback: 32bit little-endian
> > > ALSA: use 2 periods for playback
> > > lash_open_socket: could not connect to host 'localhost', service '14541'
> > > lash_comm_connect_to_server: could not create server connection
> > > SSE2 detected
> > > Connected to JACK server with client name 'LASH_Server'
> > > Opened ALSA sequencer with client ID 128
> > > Listening for connections
> > > Created project project-1 in
> > > directory /home/rfox/audio-projects/project-1
> > > Added client 9551ce86-4b1c-4916-823c-2a08634382e3 of class ZynAddSubFX
> > > to project project-1
> > > 
> > > ZynAddSubFX - Copyright (c) 2002-2005 Nasca Octavian Paul
> > > Compiled: Oct 10 2007 18:06:01
> > > This program is free software (GNU GPL v.2) and 
> > >     it comes with ABSOLUTELY NO WARRANTY.
> > > 
> > > Try 'zynaddsubfx --help' for command-line options.
> > > Sound Buffer Size =     256 samples
> > > Internal latency =      5.3 ms
> > > ADsynth Oscil.Size =    512 samples
> > > SSE2 detected
> > > Internal SampleRate   = 48000
> > > Jack Output SampleRate= 48000
> > > 
> > > --note that this starts jackd according to
> > > $ ps auxwwf |grep jack
> > > rfox 11018  0.5  0.3 30092 3888 ? Ssl 02:51 0:01 /usr/bin/jackd -T
> > > -ndefault -T -d alsa
> > > 
> > > ----- starting qjackctl from the command line to make connections
> > > [rfox at kolea ~]$ qjackctl
> > > Warning: no locale found: /usr/share/locale/qjackctl_en_US.qm
> > > 
> > > 
> > > Before doing anything with the QJackctl GUI, the QJackctl message window
> > > shows:
> > > 02:58:45.411 Patchbay deactivated.
> > > 02:58:45.500 Statistics reset.
> > > 02:58:45.560 Client activated.
> > > 02:58:45.566 XRUN callback (1).
> > > SSE2 detected
> > > 02:58:45.763 JACK connection change.
> > > 02:58:45.765 ALSA connection change.
> > > 02:58:47.571 XRUN callback (29 skipped).
> > > 02:58:49.577 XRUN callback (29 skipped).
> > > 02:58:51.586 XRUN callback (30 skipped).
> > > 02:58:53.591 XRUN callback (28 skipped).
> > > 02:58:55.597 XRUN callback (28 skipped).
> > > 02:58:57.604 XRUN callback (30 skipped).
> > > every 2 seconds
> > > 
> > > Clicking on the [connect] button in QJackCtl, there are three tabs,
> > > Audio, MIDI and ALSA.  The Audio tab shows 2 readable clients named
> > > "system" and "ZynAddSubFx" and one writable client named "system".
> > > 
> > > I connect readable "ZynAddSubFx out_1" to writable "system playback_1"
> > > and readable "ZynAddSubFx out_2" to writable "system playback_2" and
> > > close the Connections window, the Messages window records:
> > > 
> > > 03:16:15.930 JACK connection change.
> > > 
> > > If I then press keys on the ZynAddSubFx keyboard, the key turns dark
> > > blue while pressed but there's no output from the speakers and the audio
> > > meter at the bottom of the ZynAddSubFx GUI shows no activity at all.
> > > 
> > > I'm well and truly stuck!
> > > 
> > > I'm scheduled to give a public presentation on using Linux as a Digital
> > > Audio Workstation and had hoped to be able to demo this and a virtual
> > > MIDI keyboard plus Soundgarden and other cool things in the CCRMA
> > > collection on Tuesday night but if I can't get past this hurdle, I'll
> > > have to switch to another topic.
> > > 
> > > Any help would be greatly appreciated.  I'll be happy to post output
> > > from any commands or the contents of any files but this post is getting
> > > long already.
> > 
> 
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma



More information about the PlanetCCRMA mailing list