mbox series

[BlueZ,0/1] policy: connect HSP/HFP when A2DP is connected

Message ID 20250313090511.57938-1-yao.wei@canonical.com
Headers show
Series policy: connect HSP/HFP when A2DP is connected | expand

Message

Yao Wei (魏銘廷) March 13, 2025, 9:05 a.m. UTC
Bug: https://github.com/bluez/bluez/issues/1069

We found that with NVIDIA driver's suspend/resume script, it uses chvt
to switch to tty63 before suspend, and this causes pipewire to
disconnect Bluetooth headphones.  When system resumes, A2DP profile is
reconnected by default, but HSP/HFP is not.

This provides one of the fixes suggested, by reconnecting HSP/HFP when
A2DP is connected.

Yao Wei (魏銘廷) (1):
  policy: connect HSP/HFP when A2DP is connected

 plugins/policy.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 66 insertions(+), 1 deletion(-)