From 05499d1bf77cfbce6dc882a605ff7870623c867a Mon Sep 17 00:00:00 2001 From: Paul Aumann Date: Tue, 17 Dec 2024 14:54:48 +0100 Subject: [PATCH] wireplumber, to disable hfp --- .../wireplumber.conf.d/disable-hsp_hfp.conf | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .config/wireplumber/wireplumber.conf.d/disable-hsp_hfp.conf diff --git a/.config/wireplumber/wireplumber.conf.d/disable-hsp_hfp.conf b/.config/wireplumber/wireplumber.conf.d/disable-hsp_hfp.conf new file mode 100644 index 0000000..0d54f49 --- /dev/null +++ b/.config/wireplumber/wireplumber.conf.d/disable-hsp_hfp.conf @@ -0,0 +1,32 @@ +## In WirePlumber there's a bug where some applications trigger switching to Headset Profile +## -- +## See issue #634, #645, #630, #629, #613 +## -- +## This config mitigates the issue by completely disabling the switching and support for Headset Profile (HFP) +## Using this would only make sense if you never plan on using the microphone that comes with your headset. + +wireplumber.settings = { + ## Whether to use headset profile in the presence of an input stream. + ## -- + ## Disable for now, as it causes issues. See note at the top as to why. + bluetooth.autoswitch-to-headset-profile = false +} + +monitor.bluez.properties = { + ## Enabled roles (default: [ a2dp_sink a2dp_source bap_sink bap_source hfp_hf hfp_ag ]) + ## + ## Currently some headsets (Sony WH-1000XM3) are not working with + ## both hsp_ag and hfp_ag enabled, so by default we enable only HFP. + ## + ## Supported roles: hsp_hs (HSP Headset), + ## hsp_ag (HSP Audio Gateway), + ## hfp_hf (HFP Hands-Free), + ## hfp_ag (HFP Audio Gateway) + ## a2dp_sink (A2DP Audio Sink) + ## a2dp_source (A2DP Audio Source) + ## bap_sink (LE Audio Basic Audio Profile Sink) + ## bap_source (LE Audio Basic Audio Profile Source) + ## -- + ## Only enable A2DP here and disable HFP. See note at the top as to why. + bluez5.roles = [ a2dp_sink a2dp_source ] +} \ No newline at end of file