You are not logged in.

#1 2013-04-02 21:49:02

Eregus
Member
Registered: 2013-04-02
Posts: 16

[SOLVED] mpd - no sound after Pulseaudio update

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. tongue
Thank you for any help

Last edited by Eregus (2013-04-03 19:22:29)

Offline

#2 2013-04-02 22:53:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: [SOLVED] mpd - no sound after Pulseaudio update

Do you use X?

Offline

#3 2013-04-02 23:23:13

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,840
Website

Re: [SOLVED] mpd - no sound after Pulseaudio update

*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

#4 2013-04-03 05:47:52

Eregus
Member
Registered: 2013-04-02
Posts: 16

Re: [SOLVED] mpd - no sound after Pulseaudio update

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

#5 2013-04-03 15:35:50

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,840
Website

Re: [SOLVED] mpd - no sound after Pulseaudio update

Eregus wrote:

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

#6 2013-04-03 16:27:02

Eregus
Member
Registered: 2013-04-02
Posts: 16

Re: [SOLVED] mpd - no sound after Pulseaudio update

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

#7 2013-04-03 16:55:24

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,059

Re: [SOLVED] mpd - no sound after Pulseaudio update

please mark your thread as solved


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#8 2013-04-03 22:40:47

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,840
Website

Re: [SOLVED] mpd - no sound after Pulseaudio update

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

Board footer

Powered by FluxBB