[Pkg-utopia-maintainers] Bug#1036912: pipewire-pulse: Solved running mpd in user mode

C.Ch. cric.chaparro at outlook.com
Fri Feb 16 18:55:00 GMT 2024


Package: pipewire-pulse
Version: 0.3.65-3+deb12u1
Followup-For: Bug #1036912

Dear Maintainer,

Since mpd in Trixie is now installed by default in user mode I decided to try it to solve this problem.

First the instructions in the Debian Wiki are somewhat incomplete.

In user mode mpd reads mdp.conf from ~/.config/mpd

If you don't have this directory create it and copy mpd.conf there.

You need to edit mpd.conf to change the location of the configuration files:

db_file            "~/.config/mpd/database"
playlist_directory "~/.config/mpd/playlists"
pid_file           "~/.config/mpd/pid"
state_file         "~/.local/state/mpd/state"
sticker_file       "~/.config/mpd/sticker.sql"

You must create the playlists directory:

$ mkdir ~/.config/mpd/playlists

You must create the directory for the state file:

$ mkdir ~/.local/state/mpd

You must create and empty database file:

$ touch ~/.config/mpd/database


You are using systemd, comment or delete this line to log directly to systemd:

#log_file           "syslog"

You don't need to change your music directory from where it is.

Now you can follow the instructions from the Debian Wiki:

# As root, disable system service
systemctl disable --now mpd

# As user logged in the desktop session
systemctl --user enable mpd

Then start MPD:
systemctl --user start mpd

But I got an error mpd wouln't run. Using

$ systemctl --user status mpd.service

Showed this:

Feb 16 17:43:17 harpia mpd[1707]: exception: Failed to bind to '/run/mpd/socket'; Failed to bind socket: Permission deni>
Feb 16 17:43:17 harpia systemd[1689]: mpd.service: Main process exited, code=exited, status=1/FAILURE
Feb 16 17:43:17 harpia systemd[1689]: mpd.service: Failed with result 'exit-code'.
Feb 16 17:43:17 harpia systemd[1689]: Failed to start mpd.service - Music Player Daemon.

Commenting this line in mpd.conf made the error go away and mpd now runs correctly.

#bind_to_address		"/run/mpd/socket"


I changed the output from Pulseaudio to Pipewire.
This is the relevant section for Pipewire in mpd.conf:


#Pipewire 
audio_output {
        type            "pipewire"
        name            "PipeWire Sound Server"
}


I tried using a Pulseaudio output (under Pipewire) but got an error,
$ systemctl --user status mpd.service
Showed:

Feb 16 18:13:54 harpia mpd[1711]: exception: Failed to open "My Pulse Output" (pulse); failed to connect: Connection refused

I'm not going to close this bug. Obviously issues remain for Pulseaudio users and I'm too lazy to solve this these days. I recommend installing mpd in user mode and specify 
a Pipewire output.

Cheers



-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-17-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pipewire-pulse depends on:
ii  init-system-helpers  1.65.2
ii  pipewire             0.3.65-3+deb12u1

Versions of packages pipewire-pulse recommends:
ii  wireplumber  0.4.13-1

Versions of packages pipewire-pulse suggests:
ii  libspa-0.2-bluetooth  0.3.65-3+deb12u1
ii  pulseaudio-utils      16.1+dfsg1-2+b1

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list