b687de40eb14ac07f2f662b701a1baa3795f087f
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Add wireplumber config to disable bluetooth HFP
Diff
1diff --git a/dot_config/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf b/dot_config/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf
2new file mode 100644
3index 0000000000000000000000000000000000000000..556d8c7a2e84e9dabf5f86dc7866d61a257425cc
4--- /dev/null
5+++ b/dot_config/wireplumber/wireplumber.conf.d/11-bluetooth-policy.conf
6@@ -0,0 +1,3 @@
7+wireplumber.settings = {
8+ bluetooth.autoswitch-to-headset-profile = false
9+}
10diff --git a/dot_config/wireplumber/wireplumber.conf.d/50-bluez-config.conf b/dot_config/wireplumber/wireplumber.conf.d/50-bluez-config.conf
11new file mode 100644
12index 0000000000000000000000000000000000000000..08bff18204d3ca39861630da6490e607b6ea65ff
13--- /dev/null
14+++ b/dot_config/wireplumber/wireplumber.conf.d/50-bluez-config.conf
15@@ -0,0 +1,34 @@
16+monitor.bluez.properties = {
17+ bluez5.enable-msbc = false
18+ bluez5.enable-sbc-xq = true
19+ bluez5.enable-hw-volume = true
20+ bluez5.roles = [ a2dp_sink a2dp_source ]
21+ bluez5.codecs = [ sbc sbc_xq aptx aptx_hd aptx_ll aptx_ll_duplex ]
22+}
23+
24+monitor.bluez.rules = [
25+ {
26+ matches = [
27+ { device.name = "~bluez_card.*" }
28+ ]
29+ actions = {
30+ update-props = {
31+ bluez5.auto-connect = [ a2dp_sink ]
32+ bluez5.hw-volume = [ a2dp_sink a2dp_source ]
33+ }
34+ }
35+ }
36+]
37+
38+device.profile.priority.rules = [
39+ {
40+ matches = [
41+ { device.name = "~bluez_card.*" }
42+ ]
43+ actions = {
44+ update-props = {
45+ priorities = [ a2dp-sink ]
46+ }
47+ }
48+ }
49+]