Howto Get mpd running with pulseaudio in Ubuntu 8.04 (Hardy Heron)

Sponsored Link
Music Player Daemon (MPD) is a server that allows remote access for playing audio files (Ogg-Vorbis, FLAC, MP3, Wave, and AIFF), streams (Ogg-Vorbis, MP3) and managing playlists. Gapless playback, buffered output, and crossfading support is also included. The design focus is on integrating a computer into a stereo system that provides control for music playback over a TCP/IP network. The goals are to be easy to install and use, to have minimal resource requirements (it has been reported to run fine on a Pentium 75), and to remain stable and flexible.

The daemon is controlled through a client which need not run on the same computer mpd runs on. The separate client and server design allows users to choose a user interface that best suites their tastes independently of the underlying daemon (this package) which actually plays music.

PulseAudio is the standard sound server in Ubuntu Hardy Heron 8.04.

PulseAudio Preferences (paprefs) is a simple GTK based configuration dialog for the PulseAudio sound server.

Install mpd and paprefs using the following command

sudo aptitude install mpd paprefs

In PulseAudio Preferences, make sure these two options are enabled

* Enable network access to local sound devices
* Don't require authentication

Now you need to edit mpd.conf file

sudo gedit /etc/mpd.conf

add the following lines

audio_output {
type "pulse"
name "My MPD PulseAudio Output"

save and exit the file

Don't add any other options to this! Let MPD just use PulseAudio's defaults.

Now, restart MPD using the following command

sudo /etc/init.d/mpd restart

Howto fix system sounds in hardy pulseaudio

If you have any problems with system sounds in hardy pulseaudio follow this procedure

Edit /etc/pulse/ file using the following command
sudo gedit /etc/pulse/default.paMake this change
# original line
#load-module module-esound-protocol-unix
#changed line
load-module module-esound-protocol-unix socket=/tmp/.esd/socket
save and exit the file

Sponsored Link

You may also like...

9 Responses

  1. Luis says:

    Hi, when I add the audio_ouput section

    i get the error message
    improperly formatted config file at line 69: name

    When I uncomment one of the predefined audio_output secions, the daeaon starts up fine.

    Do you have any idea?

  2. Luis says:

    Of course, i have to remove the suggested section

    audio_output {
    type “pulse”
    name “My MPD PulseAudio Output”

    to make it startup ok.

  3. val says:


    I got the same error message. I copy pasted and the “” are wrong, replace them by retyping them, and the problem is gone.

  4. henriquemaia says:

    Thanks Val. I had the same message and your tip did the trick.

    Thanks Ubuntugeek for this howto.

  5. Phred says:

    Same here. The actual quotes are different and need to be retyped then restarts fine. Great how to. Thanx.

  6. migatxu says:

    Thank you very much. Finally I can get mpd works properly with Pulseaudio, the trick of paprefs was what I need in my Fedora 10 box.

    All the best

  7. Alan Briolat says:

    I wanted to do the same thing in Ubuntu Intrepid, but didn’t like the idea of making my PulseAudio open to the network. My alternative method can be found at:

  8. Ethnopunk says:

    sudo /etc/init.d/mpd restart
    * Stopping Music Player Daemon mpd [fail]
    * Starting Music Player Daemon mpd mkdir: cannot create directory `~/.mpd’: No such file or directory
    chown: cannot access `~/.mpd’: No such file or directory
    * creating ~/.mpd/tag_cache…
    problem opening log file “/home/afrodeity/.mpd/log/mpd/mpd.log” (config line 11) for writing

  9. Ethnopunk says:

    I changed the paths, recreated the files, gave them write permission and it started and then gave me this.

    *** glibc detected *** /usr/bin/mpd: free(): invalid next size (normal): 0x00000000008ef7d0 ***
    ======= Backtrace: =========
    ======= Memory map: ========
    00400000-00441000 r-xp 00000000 08:01 7343555 /usr/bin/mpd
    00641000-00643000 rw-p 00041000 08:01 7343555 /usr/bin/mpd
    00643000-00647000 rw-p 00643000 00:00 0
    00842000-00848000 rw-p 00042000 08:01 7343555 /usr/bin/mpd
    00848000-00e20000 rw-p 00848000 00:00 0 [heap]
    387e600000-387e61d000 r-xp 00000000 08:01 2744856 /lib/
    387e81d000-387e81f000 rw-p 0001d000 08:01 2744856 /lib/
    387ea00000-387ea10000 r-xp 00000000 08:01 7344321 /usr/lib/
    387ea10000-387ec10000 —p 00010000 08:01 7344321 /usr/lib/
    387ec10000-387ec11000 rw-p 00010000 08:01 7344321 /usr/lib/
    387ee00000-387ee04000 r-xp 00000000 08:01 7340739 /usr/lib/
    387ee04000-387f004000 —p 00004000 08:01 7340739 /usr/lib/
    387f004000-387f005000 rw-p 00004000 08:01 7340739 /usr/lib/
    387f200000-387f248000 r-xp 00000000 08:01 7344396 /usr/lib/
    387f248000-387f447000 —p 00048000 08:01 7344396 /usr/lib/
    387f447000-387f44a000 rw-p 00047000 08:01 7344396 /usr/lib/
    387f44a000-387f44b000 rw-p 387f44a000 00:00 0
    387f800000-387f958000 r-xp 00000000 08:01 2745416 /lib/
    387f958000-387fb58000 —p 00158000 08:01 2745416 /lib/
    387fb58000-387fb5b000 r–p 00158000 08:01 2745416 /lib/
    387fb5b000-387fb5d000 rw-p 0015b000 08:01 2745416 /lib/
    387fb5d000-387fb62000 rw-p 387fb5d000 00:00 0
    387fc00000-387fc02000 r-xp 00000000 08:01 2745676 /lib/
    387fc02000-387fe02000 —p 00002000 08:01 2745676 /lib/
    387fe02000-387fe04000 rw-p 00002000 08:01 2745676 /lib/
    3880000000-3880080000 r-xp 00000000 08:01 2747325 /lib/
    3880080000-388027f000 —p 00080000 08:01 2747325 /lib/
    388027f000-3880281000 rw-p 0007f000 08:01 2747325 /lib/
    3880400000-3880416000 r-xp 00000000 08:01 2747324 /lib/
    3880416000-3880616000 —p 00016000 08:01 2747324 /lib/
    3880616000-3880618000 rw-p 00016000 08:01 2747324 /lib/
    3880618000-388061c000 rw-p 3880618000 00:00 0
    3880800000-3880816000 r-xp 00000000 08:01 5283863 /usr/lib/
    3880816000-3880a16000 —p 00016000 08:01 5283863 /usr/lib/
    3880a16000-3880a17000 rw-p 00016000 08:01 5283863 /usr/lib/
    3880c00000-3880c0d000 r-xp 00000000 08:01 2747461 /lib/
    3880c0d000-3880e0d000 —p 0000d000 08:01 2747461 /lib/
    3880e0d000-3880e0e000 rw-p 0000d000 08:01 2747461 /lib/
    3881000000-38810ff000 r-xp 00000000 08:01 5398967 /usr/lib/

Leave a Reply

Your email address will not be published. Required fields are marked *