You are not logged in.

#1 2021-03-08 14:50:35

allencch
Member
Registered: 2011-03-25
Posts: 119

[SOLVED] Pipewire pulse sink suspended when resume from sleep

Installed `pipewire 0.3.23` recently (using pulseaudio before this). And found some issue after I resume my laptop from sleep (suspend to RAM).

After resume from sleep, audio and video cannot be played. Checked the sink (`pactl list sinks`), found out it is suspended.

Sink #43
        State: SUSPENDED
        Name: alsa_output.pci-0000_00_1f.3.analog-stereo
        Description: Built-in Audio Analog Stereo
        Driver: PipeWire
        Sample Specification: s32le 2ch 48000Hz
        Channel Map: front-left,front-right
        Owner Module: 4294967295
        Mute: no

`pactl info` works fine


Library Protocol Version: 34
Server Protocol Version: 34
Is Local: yes
Client Index: 53
Tile Size: 65472
User Name: user
Host Name: mycomputer
Server Name: PulseAudio (on PipeWire 0.3.23)
Server Version: 14.0.0
Default Sample Specification: float32le 2ch 48000Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: 1ac7:4d01

I tried

  1. `systemctl --user restart pipewire-pulse.service`, it doesn't solve the problem.

  2. Remove the files in `~/.config/pipewire-media-session/` as wiki, doesn't solve the problem as well.

The only solution now I am using is to reboot the machine.

Does anyone have solution?

P/S: Not able to produce the issue recently (2021-03-11). Wait for more days for observation.

Last edited by allencch (2021-03-19 14:41:07)

Offline

#2 2021-03-08 15:16:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: [SOLVED] Pipewire pulse sink suspended when resume from sleep

And you are actually attempting to play to it still? What's your

sudo fuser -v /dev/snd/*
pactl list sink-inputs

during this.

Offline

#3 2021-03-13 16:59:36

allencch
Member
Registered: 2011-03-25
Posts: 119

Re: [SOLVED] Pipewire pulse sink suspended when resume from sleep

These are what I get,

Run `sudo fuser -v /dev/snd/*`

                     USER    PID ACCESS COMMAND
/dev/snd/controlC0:  user    815 F.... pipewire-media-
/dev/snd/controlC1:  user    815 F.... pipewire-media-
/dev/snd/seq:        user    814 F.... pipewire

If not playing any audio or video, `pactl list sink-inputs` produces nothing.

While trying to play audio, the audio is stuck at time 00:00:00, and run `pactl list sink-inputs`

Sink Input #65
	Driver: PipeWire
	Owner Module: n/a
	Client: 76
	Sink: 43
	Sample Specification: float32le 2ch 44100Hz
	Channel Map: front-left,front-right
	Format: pcm
	Corked: no
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Buffer Latency: 0 usec
	Sink Latency: 0 usec
	Resample method: PipeWire
	Properties:
		client.api = "pipewire-pulse"
		application.name = "mpv"
		application.process.id = "27658"
		application.process.user = "user"
		application.process.host = "my_computer"
		application.process.binary = "mpv"
		application.language = "C"
		window.x11.display = ":0"
		application.process.machine_id = "18d3a2da663442e7983d6251bb72b759"
		application.process.session_id = "2"
		media.icon_name = "mpv"
		media.name = "anysong - mpv"
		stream.is-live = "true"
		node.name = "mpv"
		node.autoconnect = "true"
		media.class = "Stream/Output/Audio"
		adapt.follower.node = ""
		factory.id = "6"
		audio.adapt.follower = ""
		factory.mode = "split"
		library.name = "audioconvert/libspa-audioconvert"
		object.id = "65"
		client.id = "76"
		node.latency = "2646/44100"
		pulse.attr.maxlength = "4194304"
		pulse.attr.tlength = "35280"
		pulse.attr.prebuf = "0"
		pulse.attr.minreq = "7056"
		module-stream-restore.id = "sink-input-by-application-name:mpv"

I tried to kill process 815 and 814 (from fuser command), then the audio can be played.

Offline

#4 2022-02-23 14:12:53

neerkoli
Member
Registered: 2022-02-09
Posts: 15

Re: [SOLVED] Pipewire pulse sink suspended when resume from sleep

Did you find any solution to this? I'm also facing similar issue.

Offline

#5 2022-02-23 14:40:15

allencch
Member
Registered: 2011-03-25
Posts: 119

Re: [SOLVED] Pipewire pulse sink suspended when resume from sleep

@neerkoli , I don't face the issue anymore for a long time. But my previous solution was to kill the processes, whenever the playback doesn't work. Refer to my previous post https://bbs.archlinux.org/viewtopic.php … 6#p1961596

Offline

#6 2022-02-23 21:38:53

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 681

Re: [SOLVED] Pipewire pulse sink suspended when resume from sleep

Likely related to this. This bug is fixed in kernel 5.16.11 which will arrive on Arch within a couple of days.

Offline

Board footer

Powered by FluxBB