Ticket #119 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

Pulseaudio daemon doesn't start when default ALSA device is Pulse

Reported by: hugobo Owned by: lennart
Milestone: Component: alsa-plugins-pulse
Keywords: Cc:

Description

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.

Change History

Changed 4 years ago by tanuk

In your default.pa you tell module-alsa-source to use the "default" device, and in your asound.conf you say that "default" is pulseaudio. That's circular. You have to instruct module-alsa-source to use some other device, probably the hardware device is right choice, and can be specified by giving the argument "device=hw:0,0" (or if the desired input isn't at 0,0, then replace the numbers with the appropriate value).

Changed 4 years ago by lennart

  • status changed from new to closed
  • resolution set to invalid
  • component changed from daemon to alsa-plugins-pulse

As tanuk correctly stated, you're configuring PA in a loop.

Sorry, this is not a bug.

Note: See TracTickets for help on using tickets.