Bluetooth_Headset_Battery_Level
Bluetooth_Headset_Battery_Level copied to clipboard
Device becomes unresponsive when switching bluetooth profile
I'm trying to create a script that checks the battery status at regular intervals. My headphone also has a mic so I have to switch Bluetooth profile from A2DP to HSP/HFP since A2DP doesn't allow mic and speaker to work simultaneously. Since the release of Pulseaudio v. 11.0 this profile switching can be performed automatically. (I've followed this guide to do so. It works.) But if the script runs while I'm on HSP/HFP profile the headphones become unresponsive. I have to restart the headphone to get them working. Any workarounds?
I don't know any workarounds for this at the moment. I have made a few changes to the script today. You might want to give it another try.
Gave the new script a try, doesn't solve the problem. When the headphones are in HSP/HFP profile, and the script is run the connections breaks but even after that battery status can be checked. Maybe the problem lies with how PulseAudio handles HSP/HFP profile.