Bluetooth audio stutters when using A2DP

Hello everyone, I am using EndeavourOS with Hyprland and an issue with the audio appeared after a big update.

I am using pulseaudio now, but the issue started to happen with pipewire, I have no problem changing to pipewire again but afaik it is not related.

The audio artifacts/stutters appear when using the A2DP sink and happen with browser and local audio, like a movie in mpv.

I can provide logs in case that is needed, thanks in advance!

try this:

pactl list cards

you should see something similar to:

Card #2
	Name: bluez_card.00_1A_7D_XX_XX_XX
	Driver: module-bluez5-device.c
	...
	Ports:
		bluez_sink.00_1A_7D_XX_XX_XX.a2dp_sink:
			...
		bluez_sink.00_1A_7D_XX_XX_XX.headset_sink:

note down the value that resembles 00_1A_7D_XX_XX_XX 'cause it’s your device id.

then issue this command:


pactl set-port-latency-offset bluez_card (device name) (device port) 25

so you should get something like:
pactl set-port-latency-offset bluez_card.00_1A_7D_XX_XX_XX headset-output 25

you can try incremental numbers to see if there is any improvement. In some cases, people with this issue reported success (not me, I still have the issue so I wish you good luck), it seems like poor bluetooth audio performances are a thing with the current state of things