| 1 |
## Template WirePlumber Bluetooth configuration |
| 2 |
|
| 3 |
wireplumber.settings = { |
| 4 |
## Whether to store state on the filesystem. |
| 5 |
# bluetooth.use-persistent-storage = true |
| 6 |
|
| 7 |
## Whether to use headset profile in the presence of an input stream. |
| 8 |
# bluetooth.autoswitch-to-headset-profile = true |
| 9 |
} |
| 10 |
|
| 11 |
monitor.bluez.properties = { |
| 12 |
## The properties used when constructing the 'api.bluez5.enum.dbus' plugin |
| 13 |
|
| 14 |
## Enabled roles (default: [ a2dp_sink a2dp_source bap_sink bap_source hfp_hf hfp_ag ]) |
| 15 |
## |
| 16 |
## Currently some headsets (Sony WH-1000XM3) are not working with |
| 17 |
## both hsp_ag and hfp_ag enabled, so by default we enable only HFP. |
| 18 |
## |
| 19 |
## Supported roles: hsp_hs (HSP Headset), |
| 20 |
## hsp_ag (HSP Audio Gateway), |
| 21 |
## hfp_hf (HFP Hands-Free), |
| 22 |
## hfp_ag (HFP Audio Gateway) |
| 23 |
## a2dp_sink (A2DP Audio Sink) |
| 24 |
## a2dp_source (A2DP Audio Source) |
| 25 |
## bap_sink (LE Audio Basic Audio Profile Sink) |
| 26 |
## bap_source (LE Audio Basic Audio Profile Source) |
| 27 |
# bluez5.roles = [ a2dp_sink a2dp_source bap_sink bap_source hsp_hs hsp_ag hfp_hf hfp_ag ] |
| 28 |
|
| 29 |
## Enabled A2DP codecs (default: all). |
| 30 |
# bluez5.codecs = [ sbc sbc_xq aac ldac aptx aptx_hd aptx_ll aptx_ll_duplex faststream faststream_duplex ] |
| 31 |
|
| 32 |
## These features do not work on all headsets, so they are enabled |
| 33 |
## by default based on the hardware database. They can also be |
| 34 |
## forced on/off for all devices by the following options: |
| 35 |
# bluez5.enable-sbc-xq = true |
| 36 |
# bluez5.enable-msbc = true |
| 37 |
# bluez5.enable-hw-volume = true |
| 38 |
|
| 39 |
## HFP/HSP backend (default: native). |
| 40 |
## Available values: any, none, hsphfpd, ofono, native |
| 41 |
# bluez5.hfphsp-backend = "native" |
| 42 |
|
| 43 |
## HFP/HSP native backend modem (default: none). |
| 44 |
## Available values: none, any or the modem device string as found in |
| 45 |
## 'Device' property of org.freedesktop.ModemManager1.Modem interface |
| 46 |
# bluez5.hfphsp-backend-native-modem = "none" |
| 47 |
|
| 48 |
## HFP/HSP hardware offload SCO support (default: false). |
| 49 |
## Using this feature requires a custom WirePlumber script that |
| 50 |
## handles audio routing in a platform-specific way. See |
| 51 |
## tests/examples/bt-pinephone.lua for an example. |
| 52 |
# bluez5.hw-offload-sco = false |
| 53 |
|
| 54 |
## Properties for the A2DP codec configuration |
| 55 |
# bluez5.default.rate = 48000 |
| 56 |
# bluez5.default.channels = 2 |
| 57 |
|
| 58 |
## Register dummy AVRCP player. Some devices have wrongly functioning |
| 59 |
## volume or playback controls if this is not enabled. Default: false |
| 60 |
# bluez5.dummy-avrcp-player = true |
| 61 |
|
| 62 |
## Opus Pro Audio mode settings |
| 63 |
# bluez5.a2dp.opus.pro.channels = 3 |
| 64 |
# bluez5.a2dp.opus.pro.coupled-streams = 1 |
| 65 |
# bluez5.a2dp.opus.pro.locations = [ FL,FR,LFE ] |
| 66 |
# bluez5.a2dp.opus.pro.max-bitrate = 600000 |
| 67 |
# bluez5.a2dp.opus.pro.frame-dms = 50 |
| 68 |
# bluez5.a2dp.opus.pro.bidi.channels = 1 |
| 69 |
# bluez5.a2dp.opus.pro.bidi.coupled-streams = 0 |
| 70 |
# bluez5.a2dp.opus.pro.bidi.locations = [ FC ] |
| 71 |
# bluez5.a2dp.opus.pro.bidi.max-bitrate = 160000 |
| 72 |
# bluez5.a2dp.opus.pro.bidi.frame-dms = 400 |
| 73 |
} |
| 74 |
|
| 75 |
monitor.bluez-midi.properties = { |
| 76 |
## The properties used when constructing the 'api.bluez5.midi.enum' plugin |
| 77 |
} |
| 78 |
|
| 79 |
monitor.bluez-midi.servers = [ |
| 80 |
## List of MIDI server node names. Each node name given will create a new instance |
| 81 |
## of a BLE MIDI service. Typical BLE MIDI instruments have on service instance, |
| 82 |
## so adding more than one here may confuse some clients. The node property matching |
| 83 |
## rules below apply also to these servers. |
| 84 |
|
| 85 |
# "bluez_midi.server" |
| 86 |
] |
| 87 |
|
| 88 |
monitor.bluez.rules = [ |
| 89 |
## The list of monitor rules |
| 90 |
|
| 91 |
## This rule example allows changing properties on all Bluetooth devices. |
| 92 |
# { |
| 93 |
# matches = [ |
| 94 |
# { |
| 95 |
# ## This matches all bluetooth devices. |
| 96 |
# device.name = "~bluez_card.*" |
| 97 |
# } |
| 98 |
# ] |
| 99 |
# actions = { |
| 100 |
# update-props = { |
| 101 |
# ## Auto-connect device profiles on start up or when only partial |
| 102 |
# ## profiles have connected. Disabled by default if the property |
| 103 |
# ## is not specified. |
| 104 |
# bluez5.auto-connect = [ hfp_hf hsp_hs a2dp_sink hfp_ag hsp_ag a2dp_source ] |
| 105 |
# |
| 106 |
# ## Hardware volume control (default: [ hfp_ag hsp_ag a2dp_source ]) |
| 107 |
# bluez5.hw-volume = [ hfp_hf hsp_hs a2dp_sink hfp_ag hsp_ag a2dp_source ] |
| 108 |
# |
| 109 |
# ## LDAC encoding quality |
| 110 |
# ## Available values: auto (Adaptive Bitrate, default) |
| 111 |
# ## hq (High Quality, 990/909kbps) |
| 112 |
# ## sq (Standard Quality, 660/606kbps) |
| 113 |
# ## mq (Mobile use Quality, 330/303kbps) |
| 114 |
# bluez5.a2dp.ldac.quality = "auto" |
| 115 |
# |
| 116 |
# ## AAC variable bitrate mode |
| 117 |
# ## Available values: 0 (cbr, default), 1-5 (quality level) |
| 118 |
# bluez5.a2dp.aac.bitratemode = 0 |
| 119 |
# |
| 120 |
# ## Opus Pro Audio encoding mode: audio, voip, lowdelay |
| 121 |
# bluez5.a2dp.opus.pro.application = "audio" |
| 122 |
# bluez5.a2dp.opus.pro.bidi.application = "audio" |
| 123 |
# } |
| 124 |
# } |
| 125 |
# } |
| 126 |
|
| 127 |
## This rule example allows changing properties on all Bluetooth nodes. |
| 128 |
# { |
| 129 |
# matches = [ |
| 130 |
# { |
| 131 |
# ## Matches all sources. |
| 132 |
# node.name = "~bluez_input.*" |
| 133 |
# } |
| 134 |
# { |
| 135 |
# ## Matches all sinks. |
| 136 |
# node.name = "~bluez_output.*" |
| 137 |
# } |
| 138 |
# ] |
| 139 |
# actions = { |
| 140 |
# update-props = { |
| 141 |
# node.nick = "My Node" |
| 142 |
# priority.driver = 100 |
| 143 |
# priority.session = 100 |
| 144 |
# node.pause-on-idle = false |
| 145 |
# resample.quality = 4 |
| 146 |
# channelmix.normalize = false |
| 147 |
# channelmix.mix-lfe = false |
| 148 |
# session.suspend-timeout-seconds = 5 |
| 149 |
# monitor.channel-volumes = false |
| 150 |
# |
| 151 |
# ## Media source role, "input" or "playback" |
| 152 |
# ## Defaults to "playback", playing stream to speakers |
| 153 |
# ## Set to "input" to use as an input for apps |
| 154 |
# bluez5.media-source-role = "input" |
| 155 |
# } |
| 156 |
# } |
| 157 |
# } |
| 158 |
] |
| 159 |
|
| 160 |
monitor.bluez-midi.rules = [ |
| 161 |
## The list of MIDI monitor rules |
| 162 |
|
| 163 |
## This rule example allows changing properties on all Bluetooth MIDI nodes. |
| 164 |
# { |
| 165 |
# matches = [ |
| 166 |
# ## Matches all bluez midi nodes. |
| 167 |
# { |
| 168 |
# ## Matches all sources. |
| 169 |
# node.name = "~bluez_midi.*" |
| 170 |
# } |
| 171 |
# ] |
| 172 |
# actions = { |
| 173 |
# update-props = { |
| 174 |
# node.nick = "My Node" |
| 175 |
# priority.driver = 100 |
| 176 |
# priority.session = 100 |
| 177 |
# node.pause-on-idle = false |
| 178 |
# session.suspend-timeout-seconds = 5 |
| 179 |
# node.latency-offset-msec = 0 |
| 180 |
# } |
| 181 |
# } |
| 182 |
# } |
| 183 |
] |