Increase timeout for Bluetooth profile negotiation.

This allows more time for Bluetooth headsets to negotiate the supported
profiles with bluez so that the profile previously used with the headset
is automatically enabled in PulseAudio.

In particular, the previous timeout was not enough for Sennheiser
Momentum True Wireless 2, which would occasionally connect
in HSP/HFP mode instead of A2DP.

Refs https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1363.
Refs https://github.com/bluez/bluez/issues/359.
This commit is contained in:
Andrey Semashev 2025-11-13 18:03:05 +00:00
parent be2efb69b9
commit 920f8f7dd7

View file

@ -43,7 +43,7 @@
#include "bluez5-util.h"
#define WAIT_FOR_PROFILES_TIMEOUT_USEC (3 * PA_USEC_PER_SEC)
#define WAIT_FOR_PROFILES_TIMEOUT_USEC (5 * PA_USEC_PER_SEC)
#define DBUS_INTERFACE_OBJECT_MANAGER DBUS_INTERFACE_DBUS ".ObjectManager"