[Pkg-mpd-maintainers] Bug#810218: Bug#810218: mpd fails to open audio device when started by init script

Florian Schlichting fsfs at debian.org
Thu Jan 7 23:47:48 UTC 2016


Hi Arian,

> I have mpd set up to use alsa and use my desktop user 'arian'. 
> When mpd is started by debian's init script, it is unable to open the alsa device:
> 
> Jan 07 11:42 : alsa_mixer: Failed to read mixer for 'My ALSA Device': failed to attach to default: No such file or directory
> ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
> ALSA lib conf.c:4260:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
> ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
...

I think you need to set 

    group       "audio"

>From mpd.conf:

# This setting specifies the group that MPD will run as. If not specified
# primary group of user specified with "user" setting will be used (if set).
# This is useful if MPD needs to be a member of group such as "audio" to
# have permission to use sound card.
#
#group                          "nogroup"


Florian



More information about the Pkg-mpd-maintainers mailing list