Ubuntu: mpd: Failed to read mixer for 'My ALSA Device': no such mixer control: PCM



Question:

I had mpd/mpc running on my Ubuntu 12.04.3 LTS headless, X-less server. I decided to switch out the songs; I moved the old songs out of the /Music directory, moved the new songs in, and ran mpc update, but it failed to resume playing.

Naturally, I started changing things, according to what I could find on Google, but nothing seems to work.

When I run mpc commands, like mpc status, I get the error message Failed to read mixer for 'My ALSA Device': no such mixer control: PCM.

I can play music when I use the command sudo aplay piano.wav, and similar commands.

Here's some diagnostic info: http://pastebin.com/1CzbeYBC. It contains

  • /etc/mpd.conf
  • aplay -L
  • aplay -l
  • mpd verbose from the command line
  • amixer & amixer contents

I would appreciate any pointers! Thank you.


Solution:1

@CL was right; alsa was working but mpd was not.

I discovered that if I switched to the home folder of the mpd user (export HOME=/var/log/mpd), the aplay commands (e.g. sudo -u mpd aplay /usr/share/sounds/alsa/Front_Center.wav) would no longer work.

More Googling until I found http://ubuntuforums.org/showthread.php?t=1138454

The solution was sudo apt-get remove pulseaudio. Once that was done, everything was working again.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »