You are not logged in.

#1 2021-11-19 01:28:31

burny02
Member
Registered: 2021-07-01
Posts: 129

[SOLVED] Default Audio Profile Bluetooth

Does anyone know if there is a way to make my Bluetooth headset connect automatically as HFP rather than A2DP?

Last edited by burny02 (2021-11-19 17:01:08)

Offline

#2 2021-11-19 09:46:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Default Audio Profile Bluetooth

https://www.freedesktop.org/wiki/Softwa … ettosticky

If you're on pipewire I think you can define the defaults for a certain node, but I'm not fully 100 on how exactly see e.g.: https://gitlab.freedesktop.org/pipewire … -Bluetooth

Offline

#3 2021-11-19 13:08:17

burny02
Member
Registered: 2021-07-01
Posts: 129

Re: [SOLVED] Default Audio Profile Bluetooth

I had seen some info around on how to do stuff on Pipewire, but thought it would be a real pain swapping from Pulseaudio

Turns out the 'Sticky' setting on Pulseaudio just reset every time the headset was disconnected.

Bit the bullet and moved to Pipewire, wasn't actually that tricky at all.

This setting on Pipewire is easy; edit  /usr/share/pipewire/media-session.d/bluez-monitor.conf

Edit this line:

# Profile connected first
# Available values: a2dp-sink (default), headset-head-unit
bluez5.profile = headset-head-unit

Reboot and you're done.

Hopefully Pipewire won't be giving me any issues. My experience with Pulseaudio hasn't been great to be fair

Offline

#4 2021-11-19 14:02:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,104

Re: [SOLVED] Default Audio Profile Bluetooth

Well the canonical way to do this on pulseaudio would be setting auto-switch=0 on module-bluetooth-policy https://www.freedesktop.org/wiki/Softwa … oth-policy

I did help someone else with a similar requirement and they did mention setting the sticky bit should've fixed things, granted your headset doesn't weirdly change identifiers. So I thought the linked method above wouldn't be necessary. Just so you have another option in case you notice issues with pipewire.

If you consider this [SOLVED] please mark it as such by editing the title in your first post.

Offline

Board footer

Powered by FluxBB