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/default.pa file using the following command
sudo gedit /etc/pulse/default.paMake this change
# original line
#load-module module-esound-protocol-unix
to
#changed line
load-module module-esound-protocol-unix socket=/tmp/.esd/socket
save and exit the file

Sponsored Link

Incoming search terms:

Related posts

9 thoughts on “Howto Get mpd running with pulseaudio in Ubuntu 8.04 (Hardy Heron)

  1. 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?

    [Reply]

  2. Of course, i have to remove the suggested section

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

    to make it startup ok.

    [Reply]

  3. Hi,

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

    [Reply]

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

    Thanks Ubuntugeek for this howto.

    [Reply]

  5. 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

    [Reply]

  6. 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
    [fail]

    [Reply]

  7. 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: =========
    /lib/libc.so.6[0x387f87408a]
    /lib/libc.so.6(cfree+0x8c)[0x387f877c1c]
    /usr/lib64/libmad.so.0(mad_stream_finish+0x12)[0x3893603104]
    /usr/bin/mpd[0x410945]
    /usr/bin/mpd[0x4109fd]
    /usr/bin/mpd[0x428102]
    /usr/bin/mpd[0x4281db]
    /usr/bin/mpd[0x41915f]
    /usr/bin/mpd[0x4192b1]
    /usr/bin/mpd[0x419033]
    /usr/bin/mpd[0x4190bf]
    /usr/bin/mpd[0x4192b1]
    /usr/bin/mpd[0x419033]
    /usr/bin/mpd[0x4190bf]
    /usr/bin/mpd[0x4192b1]
    /usr/bin/mpd[0x41932c]
    /usr/bin/mpd[0x420dc5]
    /lib/libc.so.6(__libc_start_main+0xf4)[0x387f81e1c4]
    /usr/bin/mpd[0x409909]
    ======= 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/ld-2.7.so
    387e81d000-387e81f000 rw-p 0001d000 08:01 2744856 /lib/ld-2.7.so
    387ea00000-387ea10000 r-xp 00000000 08:01 7344321 /usr/lib/libshout.so.3.2.0
    387ea10000-387ec10000 —p 00010000 08:01 7344321 /usr/lib/libshout.so.3.2.0
    387ec10000-387ec11000 rw-p 00010000 08:01 7344321 /usr/lib/libshout.so.3.2.0
    387ee00000-387ee04000 r-xp 00000000 08:01 7340739 /usr/lib/libao.so.2.1.3
    387ee04000-387f004000 —p 00004000 08:01 7340739 /usr/lib/libao.so.2.1.3
    387f004000-387f005000 rw-p 00004000 08:01 7340739 /usr/lib/libao.so.2.1.3
    387f200000-387f248000 r-xp 00000000 08:01 7344396 /usr/lib/libmikmod.so.2.0.4
    387f248000-387f447000 —p 00048000 08:01 7344396 /usr/lib/libmikmod.so.2.0.4
    387f447000-387f44a000 rw-p 00047000 08:01 7344396 /usr/lib/libmikmod.so.2.0.4
    387f44a000-387f44b000 rw-p 387f44a000 00:00 0
    387f800000-387f958000 r-xp 00000000 08:01 2745416 /lib/libc-2.7.so
    387f958000-387fb58000 —p 00158000 08:01 2745416 /lib/libc-2.7.so
    387fb58000-387fb5b000 r–p 00158000 08:01 2745416 /lib/libc-2.7.so
    387fb5b000-387fb5d000 rw-p 0015b000 08:01 2745416 /lib/libc-2.7.so
    387fb5d000-387fb62000 rw-p 387fb5d000 00:00 0
    387fc00000-387fc02000 r-xp 00000000 08:01 2745676 /lib/libdl-2.7.so
    387fc02000-387fe02000 —p 00002000 08:01 2745676 /lib/libdl-2.7.so
    387fe02000-387fe04000 rw-p 00002000 08:01 2745676 /lib/libdl-2.7.so
    3880000000-3880080000 r-xp 00000000 08:01 2747325 /lib/libm-2.7.so
    3880080000-388027f000 —p 00080000 08:01 2747325 /lib/libm-2.7.so
    388027f000-3880281000 rw-p 0007f000 08:01 2747325 /lib/libm-2.7.so
    3880400000-3880416000 r-xp 00000000 08:01 2747324 /lib/libpthread-2.7.so
    3880416000-3880616000 —p 00016000 08:01 2747324 /lib/libpthread-2.7.so
    3880616000-3880618000 rw-p 00016000 08:01 2747324 /lib/libpthread-2.7.so
    3880618000-388061c000 rw-p 3880618000 00:00 0
    3880800000-3880816000 r-xp 00000000 08:01 5283863 /usr/lib/libz.so.1.2.3.3
    3880816000-3880a16000 —p 00016000 08:01 5283863 /usr/lib/libz.so.1.2.3.3
    3880a16000-3880a17000 rw-p 00016000 08:01 5283863 /usr/lib/libz.so.1.2.3.3
    3880c00000-3880c0d000 r-xp 00000000 08:01 2747461 /lib/libgcc_s.so.1
    3880c0d000-3880e0d000 —p 0000d000 08:01 2747461 /lib/libgcc_s.so.1
    3880e0d000-3880e0e000 rw-p 0000d000 08:01 2747461 /lib/libgcc_s.so.1
    3881000000-38810ff000 r-xp 00000000 08:01 5398967 /usr/lib/libX11.so.6.2.0Aborted

    [Reply]

Leave a comment

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