Bluetooth audio stutters / drops out / accelerates during playback
Bluetooth Radio, Bluetooth Headset, Desktop Environment, Distribution, Version (Bluez, Kernel, and PipeWire):
eta@euston ~> lsusb; bluetoothctl devices; echo $XDG_SESSION_DESKTOP; grep PRETTY /etc/os-release; pipewire --version; bluetoothctl --version; uname -r
Bus 004 Device 002: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter
Device 00:1F:F0:11:20:FA Melomania R // Cambridge
Device 00:1F:F0:11:16:C5 Melomania L // Cambridge
gnome
PRETTY_NAME="Arch Linux"
pipewire
Compiled with libpipewire 0.3.38
Linked with libpipewire 0.3.38
bluetoothctl: 5.62
5.14.11-arch1-1
(output filtered to exclude non-relevant USB + Bluetooth devices, although note that a Bluetooth mouse and keyboard are also paired and in use)
Description of Problem: Using Bluetooth earbuds with pipewire results in xrun-like stuttering: the audio will occasionally contain gaps, and then accelerate a bit to keep time after such a gap.
How Reproducible: Usually all the time
Steps to Reproduce:
- Connect bluetooth earbuds
- Start playback (in my case, from Spotify)
- Wait a few seconds
Actual Results: Audio plays smoothly without dropouts
Expected Results: Audio starts stuttering; it is mostly usable (as in, it'll recover itself and continue playing for a bit before stuttering again), but not great
additional things as discussed on IRC:
Issue seems to be fixed by applying #1144 (comment 1056218); I've had that applied for the entire time listening to music writing this issue description and it hasn't glitched once :)
Magic acquire log line as requested:
Oct 17 14:47:23 euston pipewire-media-session[232606]: transport 0x555b24e6fdf0: Acquire /org/bluez/hci0/dev_00_1F_F0_11_16_C5/sep3/fd4, fd 50 MTU 672:895