Refused to switch profile to headset_head_unit when trying to use bluetooth headset microphone
Submitted by Yajo
Assigned to pul..@..op.org
Description
I have 2 bluetooth headsets. With the first one I can connect "without problems"[1], and enable HSP/HFP flawlessly[1] from GNOME sound settings. Its info:
Device 00:00:00:00:36:59 Name: BT-H06 Alias: BT-H06 Class: 0x240404 Icon: audio-card Paired: yes Trusted: yes Blocked: no Connected: yes LegacyPairing: no UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb) UUID: Headset (00001108-0000-1000-8000-00805f9b34fb) UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
The second device works fine in A2DP mode, but when switching to HSP/HFP from the same place it logs this:
[pulseaudio] module-bluez5-device.c: Refused to switch profile to headset_head_unit: Not connected
The device:
Device 7F:65:1D:43:BB:EC Name: Mini503-TF Alias: Mini503-TF Class: 0x240404 Icon: audio-card Paired: yes Trusted: yes Blocked: no Connected: yes LegacyPairing: yes UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb) UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb)
I see some differences between them, but both work fine with my Android phone so I guess it must be a PA/Bluez/oFono problem.
[1] Well, not exactly without problems. I had to apply workaround from https://bugs.freedesktop.org/show_bug.cgi?id=73325#c50 (downgrade to bluez 5.35) to make it work. But I'm not sure if both bugs are the same, because with bluez 5.36 the logs show the same message you have above for both headsets. Should I open a new bug for that?