You are not logged in.

#1 2021-06-07 04:10:35

Strangiato
Member
Registered: 2020-01-10
Posts: 382

[solved] laptop no longer streams audio over network as expected

Hi

My laptop fails to stream audio over network to speakers connected to my desktop computer.
Laptop runs Arch  + Gnome and desktop runs Arch + KDE Plasma, both fully updated.
Laptop plays audio through its own speakers normally, but when I switch to remote output pulseaudio in verbose mode gives me this output:

I: [pulseaudio] core.c: configured_default_sink: alsa_output.pci-0000_00_1b.0.analog-stereo -> tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo
I: [pulseaudio] core.c: default_sink: alsa_output.pci-0000_00_1b.0.analog-stereo -> tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo
I: [pulseaudio] sink.c: The sink input 25 "strawberry" is moving to tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo due to change of the default sink.
I: [pulseaudio] protocol-native.c: Requested tlength=200,00 ms, minreq=10,00 ms
I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1b.0.analog-stereo idle for too long, suspending ...
I: [alsa-sink-CX20757 Analog] alsa-sink.c: Device suspended...

So my player continues to play the current track until the end (although its seek bar stops) and then stops instead of playing the next track.

I think the problem is Arch installed on my laptop because another distribution installed on it called neon unstable (based on Ubuntu 20.04) can stream audio over network without any problem. I use pulseaudio on both machines, not pipewire-pulse. Any idea?

Edit:
When remote output is already selected and I start to play another track, verbose mode of pulseaudio says:

I: [pulseaudio] client.c: Freed 33 "strawberry"
I: [pulseaudio] protocol-native.c: Connection died.
I: [pulseaudio] client.c: Created 34 "Native client (UNIX socket client)"
I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: [pulseaudio] client.c: Freed 34 "strawberry"
I: [pulseaudio] protocol-native.c: Connection died.
I: [pulseaudio] client.c: Created 35 "Native client (UNIX socket client)"
I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
I: [pulseaudio] module-stream-restore.c: Restoring mute state for sink input sink-input-by-media-role:music.
I: [pulseaudio] sink-input.c: Created input 30 "pulsesink probe" on tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink-input.c:     media.name = "pulsesink probe"
I: [pulseaudio] sink-input.c:     application.name = "strawberry"
I: [pulseaudio] sink-input.c:     native-protocol.peer = "UNIX socket client"
I: [pulseaudio] sink-input.c:     native-protocol.version = "34"
I: [pulseaudio] sink-input.c:     media.role = "music"
I: [pulseaudio] sink-input.c:     application.process.id = "2766"
I: [pulseaudio] sink-input.c:     application.process.user = "stalker"
I: [pulseaudio] sink-input.c:     application.process.host = "arch-laptop"
I: [pulseaudio] sink-input.c:     application.process.binary = "strawberry"
I: [pulseaudio] sink-input.c:     application.language = "pt_BR.UTF-8"
I: [pulseaudio] sink-input.c:     window.x11.display = ":0"
I: [pulseaudio] sink-input.c:     application.process.machine_id = "f62a524e0f6b4cccb8caa88c2fdba6c8"
I: [pulseaudio] sink-input.c:     module-stream-restore.id = "sink-input-by-media-role:music"
I: [pulseaudio] protocol-native.c: Requested tlength=272,11 ms, minreq=20,00 ms
I: [pulseaudio] protocol-native.c: Final latency 540,00 ms = 250,00 ms + 2*20,00 ms + 250,00 ms
I: [pulseaudio] sink-input.c: Freeing input 30 "pulsesink probe"
I: [pulseaudio] module-stream-restore.c: Restoring mute state for sink input sink-input-by-media-role:music.
I: [pulseaudio] sink-input.c: Created input 31 "Playback Stream" on tunnel.Arch-PC.local.alsa_output.pci-0000_00_1b.0.analog-stereo with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink-input.c:     media.name = "Playback Stream"
I: [pulseaudio] sink-input.c:     application.name = "strawberry"
I: [pulseaudio] sink-input.c:     native-protocol.peer = "UNIX socket client"
I: [pulseaudio] sink-input.c:     native-protocol.version = "34"
I: [pulseaudio] sink-input.c:     media.role = "music"
I: [pulseaudio] sink-input.c:     application.process.id = "2766"
I: [pulseaudio] sink-input.c:     application.process.user = "stalker"
I: [pulseaudio] sink-input.c:     application.process.host = "arch-laptop"
I: [pulseaudio] sink-input.c:     application.process.binary = "strawberry"
I: [pulseaudio] sink-input.c:     application.language = "pt_BR.UTF-8"
I: [pulseaudio] sink-input.c:     window.x11.display = ":0"
I: [pulseaudio] sink-input.c:     application.process.machine_id = "f62a524e0f6b4cccb8caa88c2fdba6c8"
I: [pulseaudio] sink-input.c:     module-stream-restore.id = "sink-input-by-media-role:music"
I: [pulseaudio] protocol-native.c: Requested tlength=200,00 ms, minreq=10,00 ms
I: [pulseaudio] protocol-native.c: Final latency 520,00 ms = 250,00 ms + 2*10,00 ms + 250,00 ms

Last edited by Strangiato (2021-10-27 00:50:53)

Offline

#2 2021-06-26 12:42:59

Strangiato
Member
Registered: 2020-01-10
Posts: 382

Re: [solved] laptop no longer streams audio over network as expected

This problem is still happening regardless my laptop is connected to wi-fi or wired connection.
I even have reset pulseaudio settings on both desktop and laptop by deleting its configuration files in /home/myusername/.config/pulse and /etc/pulse and then reinstalling pulseaudio package. Currently the ptoblem is intermittent and I have not found the cause yet. Sometimes my laptop streams audio over network for hours without any problem until the problem occurs. Which log(s) should I observe to find the cause of the problem?

I also tried RTP following the instructions available in the wiki, but it is unusable for me because audio is out of sync.
https://wiki.archlinux.org/title/PulseA … er_network

Last edited by Strangiato (2021-06-26 12:48:16)

Offline

#3 2021-07-29 20:00:03

Strangiato
Member
Registered: 2020-01-10
Posts: 382

Re: [solved] laptop no longer streams audio over network as expected

The problem persists on my system after update to pulseaudio 15.
I have created a bug report in pulseaudio bug tracker

https://gitlab.freedesktop.org/pulseaud … ssues/1243

Offline

#4 2021-10-27 00:50:19

Strangiato
Member
Registered: 2020-01-10
Posts: 382

Re: [solved] laptop no longer streams audio over network as expected

I have solved this problem by enabling systemd-timesyncd on my laptop. It was already enabled on my desktop.

https://wiki.archlinux.org/title/systemd-timesyncd

Offline

Board footer

Powered by FluxBB