[pulseaudio-discuss] Default pulseaudio setup on ubuntu feisty prevents audio

Marc MERLIN marc_pulse at merlins.org
Mon Sep 17 00:39:55 PDT 2007


Sorry if this is lacking some details, I got pulseaudio along with the
distro, and only learned about it being there when I realized it was
preventing me from playing audio.

ubuntu comes with pulseaudio 0.9.5-5ubuntu4.1.
>From experimentation, my system works fine (I use alsa) until something
tries to use esd, which in turn seems to launch esd, which launches
pulseaudio.
My system isn't setup to run pulseaudio as a daemon, it gets run on
demand, as myself. 
I did set DISALLOW_MODULE_LOADING=0 in the ubuntu config, but that didn't
help.

What I get is:
 
> MPlayer interrupted by signal 2 in module: play_audio
> gandalf:/var/local/space$ mplayer -ao alsa Dido\ -\ Sand\ In\ My\ Shoes\ -\ Above\ \&\ Beyond\ Remix.mp3 >/dev/null

File plays fine with alsa

> gandalf:/var/local/space$ psg pulse

Pulseaudio is not running (yet) I had just killed it.

> gandalf:/var/local/space$ mplayer -ao esd Dido\ -\ Sand\ In\ My\ Shoes\ -\ Above\ \&\ Beyond\ Remix.mp3 >/dev/null
> [AO ESD] esd_open_sound failed: No child processes
> Could not open/initialize audio device -> no sound.
> gandalf:/var/local/space$ Sep 17 00:25:07 gandalf pulseaudio[17919]: module.c: Failed to open module "module-gconf": module-gconf.so: cannot open shared object file: No such file or directory
> Sep 17 00:25:07 gandalf pulseaudio[17919]: module-esound-compat-spawnfd.c: WARNING: write(5, 1, 1) failed: Broken pipe
> Sep 17 00:25:07 gandalf pulseaudio[17919]: main.c: Module load failed.

file doesn't play with esd

> gandalf:/var/local/space$ psg pulse
> merlin   17919  0.7  0.1   8436  3500 ?        S    00:25   0:01 /usr/bin/pulseaudio --log-target=syslog -Lmodule-esound-compat-spawnfd fd=5

At this point, pulseaudio is launched and will now prevent me from playing anything with alsa

> gandalf:/var/local/space$ psg pulse
> merlin   17919  2.2  0.1   8436  3500 ?        S    00:25   0:00 /usr/bin/pulseaudio --log-target=syslog -Lmodule-esound-compat-spawnfd fd=5
> gandalf:/var/local/space$ mplayer -ao alsa Dido\ -\ Sand\ In\ My\ Shoes\ -\ Above\ \&\ Beyond\ Remix.mp3 >/dev/null
> Can't open joystick device /dev/input/js0: No such file or directory
> Can't init input joystick
> mplayer: could not connect to socket
> mplayer: No such file or directory
> Failed to open LIRC support. You will not be able to use your remote control.
> alsa-lib: pcm_hw.c:1242:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
> alsa-lib: pcm_dmix.c:864:(snd_pcm_dmix_open) unable to open slave
> alsa-init: playback open error: Device or resource busy
> Could not open/initialize audio device -> no sound.

At this point, my system will not be able to play music until I kill pulseaudio.

This clearly does the opposite of what it's supposed to do right now.

This may explain why to you, but not to me :)
> gandalf:~$ pulseaudio -vv
> caps.c: dropping root rights.
> module-hal-detect.c: Trying capability 0 (alsa)
> module-alsa-sink.c: Error opening PCM device hw:0: Device or resource busy
> module.c: Failed to load  module "module-alsa-sink" (argument: "device=hw:0 sink_name=alsa_output.pci_8086_27d8_alsa_playback_0"): initialization failed.
> alsa-util.c: Using mixer control "Capture".
> source.c: created 0 "alsa_input.pci_8086_27d8_alsa_capture_0" with sample spec "s16le 2ch 44100Hz"
> module-alsa-source.c: using 12 fragments of size 1408 bytes.
> module.c: Loaded "module-alsa-source" (index: #0; argument: "device=hw:0 source_name=alsa_input.pci_8086_27d8_alsa_capture_0").
> module-hal-detect.c: loaded 1 modules.
> module.c: Loaded "module-hal-detect" (index: #1; argument: "").
> module.c: Loaded "module-esound-protocol-unix" (index: #2; argument: "").
> protocol-native.c: loading cookie from disk.
> module.c: Loaded "module-native-protocol-unix" (index: #3; argument: "").
> module-volume-restore.c: starting with empty ruleset.
> module.c: Loaded "module-volume-restore" (index: #4; argument: "").
> module.c: Loaded "module-rescue-streams" (index: #5; argument: "").
> memblock.c: Memory block too large for pool: 59392 > 16376
> module.c: Loaded "module-x11-bell" (index: #6; argument: "sample=x11-bell").
> module-x11-publish.c: using already loaded auth cookie.
> module.c: Loaded "module-x11-publish" (index: #7; argument: "").
> module.c: Failed to open module "module-gconf": module-gconf.so: cannot open shared object file: No such file or directory
> main.c: Module load failed.
> main.c: Daemon startup complete.

So, why is pulseaudio hanging out to my sound playing devices if it's not able
to play anything?
Shouldn't it just syslog that it can't talk to alsa (it didn't), and then
exit and release my devices?

And all that said, any idea why pulseaudio can't play?
gandalf:/var/local/space$ cat /proc/asound/* 2>/dev/null
 0 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xee400000 irq 21
  0: [ 0]   : control
  1:        : sequencer
 16: [ 0- 0]: digital audio playback
 17: [ 0- 1]: digital audio playback
 24: [ 0- 0]: digital audio capture
 33:        : timer
 0 snd_hda_intel
00-01: AD198x Digital : AD198x Digital : playback 1
00-00: AD198x Analog : AD198x Analog : playback 1 : capture 1
G0: system timer : 1000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
  Client application 17987 : stopped
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-1-0: PCM playback 0-1-0 : SLAVE
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).

Thanks
Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/  



More information about the pulseaudio-discuss mailing list