You are not logged in.
After update of Pulseaudio (1.04) I mpd doesn't work - there's no problem with other applications, only with mpd. I can't set volume and mpc says that there are problems with opening audio device:
eregus@arch ~ $ mpc
Black River - Street Games
[paused] #769/775 0:00/3:45 (0%)
volume: n/a repeat: off random: off single: off consume: off
ERROR: problems opening audio device
There's my /etc/mpd.conf:
music_directory "/mnt/sda3/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "syslog"
pid_file "/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
auto_update "yes"
input {
plugin "curl"
}
audio_output {
type "pulse"
name "pulse audio"
}
I use ALSA + Pulseaudio. My /etc/pulse/default.pa:
.nofail
.fail
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore
load-module module-augment-properties
load-module module-alsa-sink device=dmix
load-module module-alsa-source device=dsnoop
.ifexists module-udev-detect.so
.else
.endif
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect
.fail
.endif
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif
load-module module-default-device-restore
load-module module-rescue-streams
load-module module-always-sink
load-module module-intended-roles
load-module module-suspend-on-idle
.ifexists module-console-kit.so
.nofail
load-module module-console-kit
.fail
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif
load-module module-position-event-sounds
load-module module-role-cork
load-module module-filter-heuristics
load-module module-filter-apply
.ifexists module-dbus-protocol.so
load-module module-dbus-protocol
.endif
load-module module-switch-on-port-available
That's all. I would post /etc/asound.conf, but it seems that from last update it doesn't exist.
Thank you for any help
Last edited by Eregus (2013-04-03 19:22:29)
Offline
Do you use X?
Offline
*sigh* read the wiki.
In short: you are running mpd as user "mpd" but the pulse daemon belongs to your login user. either change the mpd user to your own user or use a workaround.
in long: https://wiki.archlinux.org/index.php/Mu … pd_user.29
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
Yes, I use X.
And yes, I know what's the problem with Pulseaudio - the tip in Arch Wiki didn't help.
Edit: Oh, I only tried that workaround, I didn't try to change user. I'll edit mpd.conf when I come back home.
Last edited by Eregus (2013-04-03 06:58:33)
Offline
Yes, I use X.
And yes, I know what's the problem with Pulseaudio - the tip in Arch Wiki didn't help.Edit: Oh, I only tried that workaround, I didn't try to change user. I'll edit mpd.conf when I come back home.
according to your config, you used that workaround wrongly. it will only work, if you point to the pulse server IP in mpd.conf. So add the server line in your pulse output. (its most likely 127.0.0.1)
Last edited by Rasi (2013-04-03 15:36:03)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
Yeah I noticed it just before you posted. Now it works correctly. Thank you for help and sorry about my stupidity. ^^
Btw. I can't understand how the heck it worked properly before the update ...
Offline
please mark your thread as solved
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
quick hint: you really want pulseaudio-alsa. If you dont have a asound.conf you are missing that package.
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline