Bluetooth headphones disable pipewire autoswitching

I was having problems with my bluetooth headset always switching into “Handsfree mode” when using some function that requires the microphone (push to talk, voice messages etc.)
This resulted in poor audio quality.

After long searching I managed to change the wireplumber config to disable this “feature”.

open /usr/share/wireplumber/wireplumber.conf

  • edit like this:
    bluetooth.autoswitch-to-headset-profile = {
    description = “Whether to autoswitch to BT headset profile or not”
    type = “bool”
    default = true # change this to false
    }

That is changing a system file and potentially may be overwritten with updates to wireplumber. It seems that many apps have a similar config file that can be created under ~ /.local/share/APPNAME/ that also seems to override the settings in the system config file.

I do not have a bluetooth headset and am not able to test this, but it seems reasonable that you might be able to avoid altering the system file with creating a directory and file ~/.local/share/wireplumber/wireplumber.conf then place the changes there to see if it performs the same.