Hello everyone! Long time lurker and finally my first post...a cry for help.
I have a pair of Sony WH-100XM5 headphones connected via Bluetooth. They connect and work to the A2DP profile as expected. However when I try to switch to HFP, it does not work. I also tried using Blueman and it fails with the error: "Failed to change profile to handsfree_head_unit"
This previously worked in Zorin OS 16 for me using the settings and the Quick Settings Audio Panel Gnome Extension.
Looking at the repository packages, the maintainer has not included Jammy in its repository. It has Focal (Zorin OS 16) as well as interim releases like Hirsute and Groovy...
I am uncertain why the maintainer has not included the latest LTS... But we may need to find another way...
I have the same model headphones and found a solution for Zorin OS 17 after an annoyed week. PipeWire for the win!
I used the guide linked below. Pay attention to follow the Ubuntu 20.04 comments and include the Bluetooth part.
You can check the installation via:
pactl info | grep "PipeWire"
Server Name: PulseAudio (on PipeWire 1.0.0)
qpwgraph will then give you a nice overview of what is currently happening in audio.
Then it's personal preference how you would like to switch your audio profiles between "high fidelity playback" to enjoy music and "headset head unit" for calls.
blueman works for me, screenshot of my preferred pavucontrol below.