You are not logged in.
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
`systemctl --user restart pipewire-pulse.service`, it doesn't solve the problem.
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
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
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
Did you find any solution to this? I'm also facing similar issue.
Offline
@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
Likely related to this. This bug is fixed in kernel 5.16.11 which will arrive on Arch within a couple of days.
Offline