Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Bluetooth headset always connects as HSP/HFP

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Bluetooth headset always connects as HSP/HFP

#1 Post by kerryhall »

I would like it to default to A2DP sink, not HSP/HFP.

How do I set this as the default?

Using pulseaudio + blueman-applet.

klt
Posts: 13
Joined: 2022-08-29 10:59
Has thanked: 1 time

Re: Bluetooth headset always connects as HSP/HFP

#2 Post by klt »

Does this help you?
https://gitlab.freedesktop.org/pulseaud ... issues/975


Seems that
load-module module-card-restore restore_bluetooth_profile=true
did the trick.
Could you try if it worsk for you?

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: Bluetooth headset always connects as HSP/HFP

#3 Post by kerryhall »

Thank you!

I tried adding:

Code: Select all

load-module module-card-restore restore_bluetooth_profile=true
To the end of

Code: Select all

/etc/pulse/default.pa
and then restarted pulseaudio with:

Code: Select all

pulseaudio -k
I then turned my headset on, and it connected as HSP/HFP.

Perhaps it is supposed to remember the profile you last used for it, so I tried setting it to A2DP, disconnecting, and reconnecting, but same issue. It always connects as HSP/HFP unfortunately.

peer
Posts: 443
Joined: 2017-03-26 10:14
Has thanked: 8 times
Been thanked: 20 times

Re: Bluetooth headset always connects as HSP/HFP

#4 Post by peer »

Is pulseaudio-module-bluetooth installed?????

klt
Posts: 13
Joined: 2022-08-29 10:59
Has thanked: 1 time

Re: Bluetooth headset always connects as HSP/HFP

#5 Post by klt »

kerryhall wrote: 2022-09-01 03:00

Code: Select all

load-module module-card-restore restore_bluetooth_profile=true
To the end of

Code: Select all

/etc/pulse/default.pa
Instead adding it to the end, would you try to update the already existing line with

Code: Select all

load-module module-card-restore 
?
And see, if it helps this way... ;)

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: Bluetooth headset always connects as HSP/HFP

#6 Post by kerryhall »

Yes it is.

klt
Posts: 13
Joined: 2022-08-29 10:59
Has thanked: 1 time

Re: Bluetooth headset always connects as HSP/HFP

#7 Post by klt »

Does it work so?

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: Bluetooth headset always connects as HSP/HFP

#8 Post by kerryhall »

klt wrote: 2022-09-01 11:01 Does it work so?
Ah my apologies, I was replying to the post before yours.

I removed the line I had added to the end of /etc/pulse/default.pa, and instead modified the existing line as described and restarted pulseaudio.

Unfortunately the same issue still occurs.

From that link you sent, it looks like this was a recent fix? I'm on Debian 10, so perhaps this fix hasn't propagated yet?

klt
Posts: 13
Joined: 2022-08-29 10:59
Has thanked: 1 time

Re: Bluetooth headset always connects as HSP/HFP

#9 Post by klt »

If that did not work, I think it's better to revert the change.
I'm sorry.

But there may be an other way. Look at this:
https://www.freedesktop.org/wiki/Softwa ... oth-policy
According to this:
"Switch the card profile automatically to "hfgw" or "a2dp_source" when the remote end starts playing audio"
and this:
"auto_switch
An integer argument controlling whether Bluetooth devices (like headsets) should be switched between HFP and A2DP modes based on active streams
If set to 2, the switch happens based on some heuristics to detect whether there is a real need for a capture device to be available"
I would try to load that module with argument

Code: Select all

auto_switch=2
and try what it does in reality?

So I hope you have somewhere in your default.pa a line like

Code: Select all

load-module module-bluetooth-policy
Try to update it to

Code: Select all

load-module module-bluetooth-policy auto_switch=2
Restart Pulseadio, and try how it behaves with this settting?

kerryhall
Posts: 275
Joined: 2008-08-19 11:06
Has thanked: 3 times

Re: Bluetooth headset always connects as HSP/HFP

#10 Post by kerryhall »

Unfortunately no luck there either.

I did discover that I was restarting pulseaudio incorrectly, so I went back and tried everything with:

Code: Select all

systemctl --user restart pulseaudio.service
this time, still no luck.

klt
Posts: 13
Joined: 2022-08-29 10:59
Has thanked: 1 time

Re: Bluetooth headset always connects as HSP/HFP

#11 Post by klt »

Maybe it connects as HFP, but switches to A2DP when you start to play a music?
I myself can't try it, I don't have a similar hardware.

Post Reply