You are not logged in.
Pages: 1
Topic closed
Hi,
I have just set up ALSA, PulseAudio and mpd-pulse on a new Arch box. MPD has created its database properly but will not play any music. When I try to play with ncmpcpp it pauses instantly, when I run
mpc volume 80
I get
error: problems setting volume
I can play audio with paplay. My /etc/mpd.conf is;
music_directory "/home/tsv/audio/pop_music"
playlist_directory "/home/tsv/.mpd/playlists"
db_file "/var/lib/mpd/db"
log_file "/var/log/mpd/log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
user "mpd"
audio_output {
type "pulse"
name "My Pulse Output"
# server "remote_server" # optional
# sink "remote_server_sink" # optional
}
The 'mpd' user is a member of audio, users, pulse, pulse-access, pulse-rt and mpd.
All help appreciated!
Offline
Hi tsv,
I had quite some difficulties but I could made work mpd, pulseaudio together.
First question, did you use mpd-pulse from AUR or did you recompile mpd with pulse-enabled? You can check if you have pulse output enabled by typing mpd --version in a terminal and checking the list of output available.
Next do you run pulseaudio on a per-user or system wide? Personnaly i run it on a per user.
Try to add this to your mpd.conf
mixer_type "software"
It seems you didn't have this problem yet but my biggest problem was that pulse kept idling and then exiting ( seen using pulseaudio -vvvv, give a lot of output useful for debugging) when I stopped playing music with mpd and when I played again, pulseaudio restarted but mpd used the device and therefore pulseaudio defaulted to a dummy output. I fixed this by changing the exit idle time in /etc/pulse/daemon.conf to -1 and therefore it never exit again.
Offline
Hi,
Thanks for the help. I've added that line and now get no errors, but no audio. MPD seems to think it is running ok, progress bar etc. acts normally in ncmpcpp.
I'm running pulse per-user, and used mpd-pulse from AUR, and pulse is listed as a supported output with --version. I can't see anything useful with pulseaudio -vvvv, and nothing's being written to my MPD log.
Argh!
Offline
Just to be sure did you unmute everything in the alsamixer? Do you get sound from other applications?
Personnaly I recompiled myself mpd with abs just editing the PKGBUILD to enable pulse. But I don't think that is the problem, as you said no error appear in the log.
Do you see in pulseaudio volume control the volume for mpd? or for any other applications?
If other application are just playing fine, perhaps you could try to comment all output in your mpd.conf. Mpd should then automatically detect the alsa output, which will then be catch by pulseaudio assuming that you installed the compatibility plugin (available in alsa-plugins).
Good luck and don't give up
Offline
Try to add this to your mpd.conf
mixer_type "software"
This worked for me.
Offline
Hi Adam, and welcome to the Arch Linux forums. Thanks for a relevant contribution, but watch the age of the threads -- I hope they are not still struggling with this six years later
I''ll use this opportunity to go ahead and close this thread.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed