You are not logged in.
Pages: 1
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
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
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
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
Pages: 1