13

I recently switched from Windows to Ubuntu. My headphones either support stereo sound or mono sound with the microphone. So, I cant have a stereo and a microphone on at the same time. In windows, I could choose mono+mic as default. But in Ubuntu headphones are set to stereo and if I set microphone to my headphones then headphones get disconnected.

It will be great if someone can suggest me a solution. I have to boot into Windows whenever I have an online session which I don't want to do.

  • Model of Bluetooth headset: boat Rockerz 510
  • Ubuntu version: 18.04

EDIT: After further digging, I found that when I switch audio mode from "A2DP mode" to "HSP/HFP" my headphones get disconnected.

3 Answers 3

17
+50

Short answer : There is no solution as long as you are using Linux and a Bluetooth headset.

Long answer: For music playback only A2DP is suitable, but it does not have an INPUT mode so use of the headset for VoiP isn't possible. The HSP/HFP mode uses the CVSD codec which is sampled at 8 kHz, same as used in telephony systems (so sounds like an old telephone, if at all).

A fix was introduced in pulseaudio 10 for automatic switching between A2DP and HSP/HFP profiles, based on detecting that some phone application wants to access the microphone or not. But this doesn't work for all headsets and applications.

You may read the long-running bug-report Bug #508522 : Add automatic switching to HSP/HFP from A2DP when a mic is needed, starting in 2010 (!), and whose status today is still "New" after having been closed and re-opened during its long history.

Such headsets are reported as working perfectly well in Windows and MacOS, so the problem is only with the Linux pulseaudio implementation of Bluetooth. You would need to use a USB headset to avoid the problem.

8
  • 3
    Wow, 2010!!! I thaught in open source OS(at least something as big as Linux) issues should be solved pretty quickly. Will Bluetooth USB adapter work in this case? Commented Sep 30, 2020 at 9:35
  • 2
    The problem is with the implementation of the Bluetooth protocol, so another Bluetooth adapter will have the same problem.
    – harrymc
    Commented Sep 30, 2020 at 9:47
  • 2
    There are alternatives, but no guarantee they would do better.
    – harrymc
    Commented Sep 30, 2020 at 13:09
  • 1
    I will try JACK Audio Connection Kit and see if it works. Thanks for explaining. Also, this issue is with PulseAudio and not with any other module. Right? Because if it is with some other module then my efforts will be in vain. So please confirm this once. I understand that if JACK has same bug than nothing can be done. Commented Sep 30, 2020 at 14:10
  • 2
    I wouldn't go that far, but it would be complicated.
    – harrymc
    Commented Sep 30, 2020 at 16:33
2

There is a solution I have tested and which works on ubuntu 18 & 20: ofono It is not very convenient though so I still mostly use my android smartphone for video conferences with my BT headset, which is sad considering android is linux too...

3
0

Try this (if the other suggested solutions didn't help):

sudo alsa force-reload

(Solved on Ubuntu 20.04 for Sony WH-CH520)

MDH

1
  • 1
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Feb 1 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .