You are not logged in.

#1 2021-07-01 20:36:43

spoon0
Member
Registered: 2021-07-01
Posts: 2

mpd can't resume after suspend with pipewire

I am using pipewire as a replacement for pulseaudio. I run mpd as a user service. If I pause a track and then suspend and resume, I am unable to start any tracks in mpd again. The following output demonstrates this.

$ mpc pause
Porter Robinson - Goodbye To A World
[paused]  #2/2   0:07/5:29 (2%)
volume:100%   repeat: off   random: off   single: off   consume: off

(suspend)

$ mpc play
Porter Robinson - Goodbye To A World
[playing] #2/2   0:07/5:29 (2%)
volume:100%   repeat: off   random: off   single: off   consume: off
$ sleep 5
$ mpc play
Porter Robinson - Goodbye To A World
[playing] #2/2   0:07/5:29 (2%) (timestamp is the same as previous output)
volume:100%   repeat: off   random: off   single: off   consume: off

Mpc reports that mpd is playing but there is no playback and the timestamp remains the same.

I found the following line in pipewire's log

pulse-server 0x55cb0831cc00: client:0x55cb08522e40 [Music Player Daemon] error -22 (Invalid argument)

In my mpd config, I have the following to enable pulseaudio

audio_output {
                type            "pulse"
                name            "pulse audio"

}

I should also mention that if I don't pause, I get the following error

pulse-server 0x55cb0839dc20: [Music Player Daemon] ERROR command:-1 (invalid) tag:4294967295 error:25 (Input/output error)

Last edited by spoon0 (2021-07-01 20:45:14)

Offline

#2 2021-07-02 07:04:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 13,805

Re: mpd can't resume after suspend with pipewire

Offline

#3 2021-07-02 19:29:25

spoon0
Member
Registered: 2021-07-01
Posts: 2

Re: mpd can't resume after suspend with pipewire

Thanks, so its an issue with pipewire. Hopefully upstream can fix this soon, but for now using alsa instead of pulse as the mpd output fixes the issue.

Offline

Board footer

Powered by FluxBB