pipewire-pulse intermittently fails to reconnect to remote output after switching to ethernet from wi-fi
Hi
I use pipewrire-pulse to stream audio from my laptop to the speakers connected to my deskop over network. My laptop runs Arch Linux with Gnome and pipewire 1:0.3.58-1, my desktop also runs Arch Linux and pipewire 1:0.3.58-1 but with KDE Plasma. I have configured my systems occording the instructions available in the following article from Arch wiki: https://wiki.archlinux.org/title/PipeWire#Sharing_audio_devices_with_computers_on_the_network
Steps to reproduce:
- connect to wi-fi network
- stream audio over network - I stream with Strawberry music player or Opera browser playing a video in youtube
- during the streaming, connect a network cable to the ethernet adapter
After the last step, my laptop disconnects from wi-fi, then the wired connection is stabilished thanks to this dispatcher and one of the following results occurs inconsistently:
- Sometimes the streaming continues as expected
- Sometimes the streaming hangs permanently until suspend/resume cycle
- Sometimes the streaming hangs for a few seconds, then the laptop disconnects from the desktop computer, the remote audio output disappears from sound menu of Gnome and the sound is output from the laptop speakers.
When the result 3 occurs, journal log prints these messages:
out 07 10:52:37 arch-laptop NetworkManager[426]: <info> [1665150757.4535] policy: set 'Conexão cabeada 1' (enp1s0) as default for IPv4 routing and DNS
out 07 10:52:37 arch-laptop audit[426]: USYS_CONFIG pid=426 uid=0 auid=4294967295 ses=4294967295 msg='op=radio-control arg="wireless-enabled:off" pid=30414 uid=0 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
out 07 10:52:37 arch-laptop NetworkManager[426]: <info> [1665150757.4544] audit: op="radio-control" arg="wireless-enabled:off" pid=30414 uid=0 result="success"
out 07 10:52:37 arch-laptop NetworkManager[426]: <info> [1665150757.4551] manager: rfkill: Wi-Fi now disabled by radio killswitch
out 07 10:52:37 arch-laptop kernel: audit: type=1111 audit(1665150757.451:262): pid=426 uid=0 auid=4294967295 ses=4294967295 msg='op=radio-control arg="wireless-enabled:off" pid=30414 uid=0 result=success exe="/usr/bin/NetworkManager" hostname=? addr=? terminal=? res=success'
out 07 10:52:37 arch-laptop NetworkManager[426]: <info> [1665150757.4560] device (wlan0): new IWD device state is disconnected
out 07 10:52:37 arch-laptop gnome-shell[1222]: DWifi Debug: Device Current State: 20
out 07 10:52:37 arch-laptop NetworkManager[426]: <info> [1665150757.4624] manager: NetworkManager state is now CONNECTED_SITE
out 07 10:52:37 arch-laptop systemd[1093]: Starting Rygel DLNA/UPnP server...
out 07 10:52:37 arch-laptop ntpd[30325]: ntpd exiting on signal 15 (Terminated)
out 07 10:52:37 arch-laptop ntpd[30325]: 72.30.35.89 local addr 192.168.0.18 -> <null>
out 07 10:52:37 arch-laptop ntpd[30325]: 189.91.231.12 local addr 192.168.0.18 -> <null>
out 07 10:52:37 arch-laptop ntpd[30325]: 212.18.3.18 local addr 192.168.0.18 -> <null>
out 07 10:52:37 arch-laptop ntpd[30325]: 143.107.229.210 local addr 192.168.0.18 -> <null>
out 07 10:52:37 arch-laptop systemd[1]: Stopping Network Time Service...
out 07 10:52:37 arch-laptop systemd[1]: ntpd.service: Deactivated successfully.
out 07 10:52:37 arch-laptop systemd[1]: Stopped Network Time Service.
out 07 10:52:37 arch-laptop audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
out 07 10:52:37 arch-laptop kernel: audit: type=1131 audit(1665150757.477:263): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=ntpd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
out 07 10:52:37 arch-laptop rygel[30494]: Rygel v0.40.4 inciando…
out 07 10:52:37 arch-laptop systemd[1093]: Started Rygel DLNA/UPnP server.
out 07 10:52:37 arch-laptop rygel[30494]: Novo plug-in “Playbin” disponível
out 07 10:52:37 arch-laptop NetworkManager[426]: <info> [1665150757.7248] manager: NetworkManager state is now CONNECTED_GLOBAL
out 07 10:52:37 arch-laptop rygel[30494]: Novo plug-in “MediaExport” disponível
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop mx-extract[30525]: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out), extracting meta-data: true
out 07 10:52:38 arch-laptop rygel[30494]: “file:///home/stalker/M%C3%BAsica” colhido
out 07 10:52:38 arch-laptop rygel[30494]: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/stalker/M%C3%BAsica done in 0,116045
out 07 10:52:38 arch-laptop rygel[30494]: “file:///home/stalker/V%C3%ADdeos” colhido
out 07 10:52:38 arch-laptop rygel[30494]: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/stalker/V%C3%ADdeos done in 0,134623
out 07 10:52:38 arch-laptop mx-extract[30524]: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out), extracting meta-data: true
out 07 10:52:38 arch-laptop rygel[30494]: “file:///home/stalker/Imagens” colhido
out 07 10:52:38 arch-laptop rygel[30494]: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/stalker/Imagens done in 0,169907
out 07 10:52:38 arch-laptop mx-extract[30526]: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out), extracting meta-data: true
out 07 10:52:38 arch-laptop mx-extract[30527]: rygel-media-export-extract.vala:180: Started with descriptors 3 (in) 4 (out), extracting meta-data: true
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: “file:///home/stalker/Downloads” colhido
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: rygel-media-export-harvesting-task.vala:309: Harvesting of file:///home/stalker/Downloads done in 0,226372
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop PackageKit[813]: get-updates transaction /389_cdecbded from uid 1000 finished with success after 4ms
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:38 arch-laptop PackageKit[813]: get-updates transaction /390_eabecdae from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /391_cdacdcbe from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /392_aabddbeb from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /393_cbbceaaa from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /395_ceaeeacd from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /394_dcbadcec from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /396_dedcdcac from uid 1000 finished with success after 3ms
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /397_bdaeadad from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /398_eabbbaba from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /399_dbbccdcd from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /400_bbdbeada from uid 1000 finished with success after 3ms
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /401_badeecda from uid 1000 finished with success after 3ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /402_bcdacbee from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /403_caecdbae from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop PackageKit[813]: get-updates transaction /404_ccababbe from uid 1000 finished with success after 2ms
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:39 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:40 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:40 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:40 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:40 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:40 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:40 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop rygel[30494]: Error sending SSDP packet to FF05::C: Erro ao enviar mensagem: A rede está fora de alcance
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: mod.pulse-tunnel: failed to connect: Connection refused
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: mod.zeroconf-discover: Can't load module: Endereço ou dispositivo inexistente
out 07 10:52:41 arch-laptop pipewire-pulse[1106]: spa.loop: 0x56090c668df8: queue full 64, need 152
out 07 10:52:41 arch-laptop gsd-media-keys[1444]: Unable to get default sink