You are not logged in.

#1 2010-01-26 09:55:07

semerkhet
Member
Registered: 2010-01-04
Posts: 4

[PulseAudio] Connection refused

Hi, I am trying to install PulseAudio, but so far I have little luck.

I followed the ArchWiki, however I keep getting the message: Connection failed: connection refused (both in pavucontrol and mplayer). Here is some relevant info:

$ cat /etc/asound.conf
pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}
$ groups
wheel kvm network audio optical storage power users vboxusers pulse pulse-access pulse-rt lpadmin

I removed (and blacklisted) the snd-pcm-oss module. PulseAudio is running in user-mode. The packages I have installed are: pulseaudio, paprefs, pavucontrol, pavumeter, gstreamer0.10-pulse and alsa-plugins. Also I setup gstreamer to use pulse (using gconftool) I tried to install gnome-media-pulse from AUR, only it fails to replace gnome-media:

...
loading package data...
checking dependencies...
error: replacing packages with -U is not supported yet
error: you can replace packages manually using -Rd and -U
error: failed to prepare transaction (conflicting dependencies)
:: gnome-media-pulse: conflicts with gnome-media

Both PulseAudio and Avahi-daemon are running.

Here is what mplayer says:

$ mplayer test.mp3
...
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.80% (ratio: 12000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Connection refused

[AO_ALSA] Playback open error: Connection refused
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
waitpid(): No child processes
[AO_ALSA] alsa-lib: pulse.c:229:(pulse_connect) PulseAudio: Unable to connect: Internal error

AO: [sdl] 44100Hz 2ch s16le (2 bytes per sample)
...

I have no clue on what to try next. Btw ALSA withouth Pulse works fine.

Offline

#2 2010-01-27 03:33:00

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: [PulseAudio] Connection refused

Are you running mplayer as root? Running pulse as user means you should only use apps which run as user to access it.

Last edited by ngoonee (2010-01-27 03:33:21)


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-01-27 10:48:22

semerkhet
Member
Registered: 2010-01-04
Posts: 4

Re: [PulseAudio] Connection refused

No I run mplayer as the same user I used to start PulseAudio.

Offline

#4 2010-01-27 22:11:05

qubit
Member
Registered: 2007-04-25
Posts: 47

Re: [PulseAudio] Connection refused

try pulseaudio -k and then pulseaudio -vv and check the output if you can find something useful.

Last edited by qubit (2010-01-27 22:12:35)

Offline

#5 2010-01-28 10:46:48

semerkhet
Member
Registered: 2010-01-04
Posts: 4

Re: [PulseAudio] Connection refused

I already did but nothing useful shows up. If I open pavucontrol or mplayer with alsa output I don't see anything in the logs (doesn't seem right). Only if I select sdl audio output I see things hapening in the log (mainly alsa-sink messages).

Offline

Board footer

Powered by FluxBB