Pipewire & mpd not working

I have setup pipewire and everything works for except mpd. (alsa)
(working with pipewire = mpv , firefox , tauon music box)

I run mpd as a system server not as user. I’m not sure if I need to change this to user, as pipewire seems to run as user only not system.

I have also removed any trace of pulseaudio. Only need alsa

$ systemctl --user status mpd.service
○ mpd.service - Music Player Daemon
     Loaded: loaded (/usr/lib/systemd/user/mpd.service; disabled; preset: enabled)
     Active: inactive (dead)
TriggeredBy: × mpd.socket
       Docs: man:mpd(1)
             man:mpd.conf(5)


 $ systemctl status mpd.service
● mpd.service - Music Player Daemon
     Loaded: loaded (/usr/lib/systemd/system/mpd.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/mpd.service.d
             └─00-arch.conf
     Active: active (running) since Mon 2023-01-02 15:29:58 AEST; 3h 23min ago
TriggeredBy: ● mpd.socket
       Docs: man:mpd(1)
             man:mpd.conf(5)
   Main PID: 504 (mpd)
      Tasks: 3 (limit: 38399)
     Memory: 91.4M
        CPU: 1.716s
     CGroup: /system.slice/mpd.service
             └─504 /usr/bin/mpd --systemd

Jan 02 15:29:35 archlabs-dk systemd[1]: Starting Music Player Daemon...
Jan 02 15:29:37 archlabs-dk mpd[504]: Ignoring the 'pid_file' setting in systemd mode
Jan 02 15:29:37 archlabs-dk mpd[504]: Jan 02 15:29 : decoder: Decoder plugin 'wildmidi' is unavailable: configuration file>
Jan 02 15:29:58 archlabs-dk systemd[1]: Started Music Player Daemon.
lines 1-19/19 (END)

part of my mpd.conf

##audio_output {
##	type		"pipewire"            <<<<<<<< I have no sound if use pipewire.
##	name		"Pipewire Sound Server"
##	buffer_time   "50000"  # (50ms); default is 500000 microseconds (0.5s)
##}

# An example of an ALSA output:
#
audio_output {
	type		"alsa"
	name		"Alsa"
    device		"hw:1,0"	# optional
	buffer_time   "50000"  # (50ms); default is 500000 microseconds (0.5s)
}

Thanks for any help.

Do you have pipewire-alsa installed? I don’t know if that will help just a thought. I use mpd with pipewire and run it as user instead of system.

Thanks for replying yes I have pipewire-alsa installed.

I may change mpd to usr ~/.config

Only when you run mpd in per-user mode.

Your mpd is running on the same machine?

All good yes same machine.
Changed my mind on this will keep mpd as system server mode.
It’s all about alsa not really pipewire for a home user like me, with a dac and speakers. And at the moment not even using the dac as I have way better control over sound just using the keyboard and 1220a OBS. Plus I would like to try optical which my dac does not have trs only.

At 64 half deaf keep dreaming old man.

Thanks anyway

2 Likes

I’m sorry I installed pipewire crackling at the start of UT movies, have tried everything I can fine on line nothing seems to work. mpv is a bit so so at the start of movies too.

Just glad I can still run mpd with alsa.

Remember if you install full pipewire it is very hard to remove it.

1 Like