FS#26394 - [pulseaudio,mpd,dbus] - mpd cannot play using pulseaudio

Attached to Project: Arch Linux
Opened by John (graysky) - Tuesday, 11 October 2011, 12:12 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 11 October 2011, 19:53 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: Not too sure where the problem is so I tagged this with all three packages. Recently, mpd stopped playing on my system (xfce4/pulseaudio). Seems like mpd's requests to use pulseaudio are blocked. However, pulse works with vlc, mplayer, flash, etc. just fine.

# tail -f /var/log/mpd/mpd.log
output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
output: Failed to enable "pulse audio" [pulse]: pa_context_connect() has failed: Connection refused
player_thread: problems opening audio device while playing "Not_So_Hard_Stuff/Disturbed-The Sickness-2000/01_Voices.flac"

#tail -f /var/log/errors.log
localhost pulseaudio[5128]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
localhost pulseaudio[5125]: [pulseaudio] main.c: Daemon startup failed.

I can confirm that pulseaudio is running:

$ ps aux | grep pulse
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
facade 1888 0.0 0.0 239152 6460 ? S<l 14:32 0:00 /usr/bin/pulseaudio --start
facade 1902 0.0 0.0 93668 2844 ? S 14:32 0:00 /usr/lib/pulse/gconf-helper

Additional info:
* package version(s)
pulseaudio 1.0-3
mpd 0.16.4-1
dbus 1.4.16-1

Steps to reproduce:
1) Log into DE
2) rc.d start mpd
3) Try to play a song
This task depends upon

Closed by  Dave Reisner (falconindy)
Tuesday, 11 October 2011, 19:53 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Working as intended.
Comment by John (graysky) - Tuesday, 11 October 2011, 12:13 GMT
Oops, forgot to attach my /etc/mpd.conf

$ sed '/#/d' /etc/mpd.conf
music_directory "/media/data/all_genres"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"

gapless_mp3_playback "yes"
zeroconf_enabled "yes"
zeroconf_name "Music Player"

input {
plugin "curl"
}

audio_output {
type "pulse"
name "pulse audio"
}

mixer_type "software"
audio_buffer_size "35000"
buffer_before_play "5%"
Comment by Dave Reisner (falconindy) - Tuesday, 11 October 2011, 19:52 GMT
You're running mpd as a user other than yourself. This is expected behavior, as pulse only lets the active seat output to the audio device.

Loading...