You are not logged in.
Hi
I use pulseaudio to stream audio from my laptop to the speakers
connected to my desktop computer over network.
Audio streaming works as expected after laptop boot, but it fails
after suspend/resume cycle with these symptoms:
my music player plays the current track (despite the seek bar shows
no progress) and then stops instead of playing the next track in the playlist.
If I play a video in youtube, the image is frozen and only the audio plays
for a few seconds and then the video starts to play again from the beginning.
Pulseaudio article in the wiki says:
Ensure that client and server systems agree on the time (i.e., use NTP), or audio streams may be choppy or may not work at all.source: https://wiki.archlinux.org/title/PulseA … rked_audio
Initially I was using systemd-timesyncd daemon (that gave me the same symptoms)
on both machines and then changed to ntpd to try to solve the problem.
ntpd service is running on both laptop and desktop.
desktop:
$ systemctl status ntpd.service
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor pres>
Active: active (running) since Tue 2022-05-10 11:15:07 -03; 1min 47s ago
Process: 488 ExecStart=/usr/bin/ntpd -g -u ntp:ntp (code=exited, status=0/S>
Main PID: 496 (ntpd)
Tasks: 2 (limit: 9354)
Memory: 3.0M
CPU: 40ms
CGroup: /system.slice/ntpd.service
└─ 496 /usr/bin/ntpd -g -u ntp:ntp
mai 10 11:15:06 Arch-PC ntpd[496]: proto: precision = 0.063 usec (-24)
mai 10 11:15:06 Arch-PC ntpd[496]: basedate set to 2020-06-19
mai 10 11:15:06 Arch-PC ntpd[496]: gps base set to 2020-06-21 (week 2111)
mai 10 11:15:06 Arch-PC ntpd[496]: switching logging to file /var/log/ntp.log
mai 10 11:15:02 Arch-PC systemd[1]: Starting Network Time Service...
mai 10 11:15:07 Arch-PC systemd[1]: Started Network Time Service.laptop:
$ systemctl status ntpd.service
● ntpd.service - Network Time Service
Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
Active: active (running) since Tue 2022-05-10 06:18:10 -03; 5h 0min ago
Process: 386 ExecStart=/usr/bin/ntpd -g -u ntp:ntp (code=exited, status=0/SUCCESS)
Main PID: 400 (ntpd)
Tasks: 2 (limit: 9401)
Memory: 3.1M
CPU: 1.955s
CGroup: /system.slice/ntpd.service
└─ 400 /usr/bin/ntpd -g -u ntp:ntp
mai 10 06:18:10 arch-laptop ntpd[400]: Listen and drop on 0 v6wildcard [::]:123
mai 10 06:18:10 arch-laptop ntpd[400]: Listen and drop on 1 v4wildcard 0.0.0.0:123
mai 10 06:18:10 arch-laptop ntpd[400]: Listen normally on 2 lo 127.0.0.1:123
mai 10 06:18:10 arch-laptop ntpd[400]: Listen normally on 3 lo [::1]:123
mai 10 06:18:10 arch-laptop ntpd[400]: Listening on routing socket on fd #20 for interface updates
mai 10 06:18:10 arch-laptop ntpd[400]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
mai 10 06:18:10 arch-laptop ntpd[400]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
mai 10 06:18:10 arch-laptop systemd[1]: Started Network Time Service.
mai 10 06:18:16 arch-laptop ntpd[400]: Listen normally on 4 wlan0 192.168.0.14:123
mai 10 06:18:16 arch-laptop ntpd[400]: new interface(s) found: waking up resolverbefore suspend/resume, while the audio streaming is working as expected,
I get this output:
$ ntpq -c sysinfo
associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync,
system peer: gps.jd.ntp.br:123
system peer mode: client
leap indicator: 00
stratum: 2
log2 precision: -23
root delay: 27.044
root dispersion: 24.679
reference ID: 200.160.7.197
reference time: e624f2f4.3d0d5004 Tue, May 10 2022 11:19:32.238
system jitter: 3.480044
clock jitter: 6.351
clock wander: 0.610
broadcast delay: -50.000
symm. auth. delay: 0.000after suspend/resume, while the symptoms explained above occur,
I get a different output:
$ ntpq -c sysinfo
associd=0 status=c016 leap_alarm, sync_unspec, 1 event, restart,
system peer: 0.0.0.0:0
system peer mode: unspec
leap indicator: 11
stratum: 16
log2 precision: -23
root delay: 0.000
root dispersion: 0.660
reference ID: INIT
reference time: (no time)
system jitter: 0.000000
clock jitter: 0.000
clock wander: 0.000
broadcast delay: -50.000
symm. auth. delay: 0.000The audio streaming fixes itself a few minutes after suspend/resume cycle.
networkmanager-dispatcher-ntpd package is installed on both machines.
https://aur.archlinux.org/packages/netw … tcher-ntpd
My laptop runs Arch + Gnome, my desktop runs Arch + KDE Plasma, both systems
are fully updated.
Any idea how to make audio streaming to work correctly immediately after
suspend/resume cycle?
Thanks for reading.
Offline