[pulseaudio-tickets] [PulseAudio] #119: Pulseaudio daemon doesn't start when default ALSA device is Pulse

PulseAudio trac-noreply at tango.0pointer.de
Sun Aug 19 09:01:21 PDT 2007


#119: Pulseaudio daemon doesn't start when default ALSA device is Pulse
--------------------+-------------------------------------------------------
 Reporter:  hugobo  |       Owner:  lennart
     Type:  defect  |      Status:  new    
 Priority:  normal  |   Milestone:         
Component:  daemon  |    Severity:  normal 
 Keywords:          |  
--------------------+-------------------------------------------------------
 Hi,
 According to the "Perfect setup" instructions, I have this
 {{{/etc/asound.conf}}} file:

 {{{
 pcm.pulse {
     type pulse
 }

 ctl.pulse {
     type pulse
 }
 }}}

 I can successfully access the !PulseAudio server under the virtual ALSA
 device {{{pulse}}} and the sound is correctly transmitted by PA over the
 network with the Esound protocol:

 {{{
 % aplay -Dpulse file1.wav
 }}}

 But if I try to replace my {{{/etc/asound.conf}}} file with this:

 {{{
 pcm.!default {
     type pulse
 }
 ctl.!default {
     type pulse
 }
 }}}

 The !PulseAudio server refuses to start. Here is the log:

 {{{
 Aug 19 11:26:24 (none) pulseaudio[23096]: main.c: Found user 'pulse' (UID
 1015) and group 'pulse' (GID 110).
 Aug 19 11:26:24 (none) pulseaudio[23096]: main.c: Successfully dropped
 root privileges.
 Aug 19 11:26:24 (none) pulseaudio[23096]: context.c: Trying to connect to
 /var/run/pulse/native...
 Aug 19 11:26:24 (none) pulseaudio[23096]: socket-client.c: connect(): No
 such file or directory (2)
 Aug 19 11:26:24 (none) pulseaudio[23096]: context.c: Trying to connect to
 /var/run/pulse/native...
 Aug 19 11:26:24 (none) pulseaudio[23096]: socket-client.c: connect(): No
 such file or directory (2)
 Aug 19 11:26:24 (none) pulseaudio[23096]: context.c: Trying to connect to
 tcp4:localhost...
 Aug 19 11:26:24 (none) pulseaudio[23096]: context.c: Trying to connect to
 tcp6:localhost...
 Aug 19 11:26:24 (none) pulseaudio[23096]: context.c: Trying to connect to
 via...
 Aug 19 11:26:24 (none) pulseaudio[23096]: socket-client.c: connect():
 Success
 Aug 19 11:26:24 (none) pulseaudio[23096]: module-alsa-source.c: Error
 opening PCM device default: Connection refused
 Aug 19 11:26:24 (none) pulseaudio[23096]: module.c: Failed to load  module
 "module-alsa-source" (argument: "device=default"): initialization failed.
 Aug 19 11:26:24 (none) pulseaudio[23096]: main.c: Module load failed.
 Aug 19 11:26:24 (none) pulseaudio[23096]: main.c: failed to initialize
 daemon.
 Aug 19 11:26:24 (none) pulseaudio[23096]: main.c: Daemon terminated.
 }}}

 Here is my {{{/etc/pulse/default.pa}}} file:

 {{{
 #!/usr/bin/pulseaudio -nF

 load-module module-alsa-source device=default
 load-module module-esound-sink server=via:16001
 load-module module-esound-protocol-unix auth-anonymous=1
 load-module module-native-protocol-unix auth-anonymous=1
 load-module module-volume-restore
 load-module module-rescue-streams
 }}}

 I'm using pulseaudio from SVN revision 1679.

-- 
Ticket URL: <http://pulseaudio.org/ticket/119>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list