From 920f8f7dd7acfc832fa6fb04a78e44d10df02c21 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Thu, 13 Nov 2025 18:03:05 +0000 Subject: [PATCH] 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. --- src/modules/bluetooth/bluez5-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/bluez5-util.c b/src/modules/bluetooth/bluez5-util.c index 2431b3831..c515d01f2 100644 --- a/src/modules/bluetooth/bluez5-util.c +++ b/src/modules/bluetooth/bluez5-util.c @@ -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"