Advertisement
Guest User

pipewire-bluez-monitor.conf

a guest
Jun 21st, 2021
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. # Bluez monitor config file for PipeWire version "0.3.30" #
  2. #
  3. # Copy and edit this file in /etc/pipewire/media-session.d/
  4. # for systemwide changes or in
  5. # ~/.config/pipewire/media-session.d/ for local changes.
  6.  
  7. properties = {
  8. # Enable mSBC support, disabled by default. Be aware that
  9. # mSBC is not expected to work on all headset + adapter combinations.
  10. # This can be overloaded for a specific device and native backend
  11. # in rules section.
  12. bluez5.msbc-support = true
  13.  
  14. #bluez5.sbc-xq-support = false
  15.  
  16. # Enabled headset roles (default: [ hsp_hs hfp_ag ]), this
  17. # property only applies to native backend. Currently some headsets
  18. # (Sony WH-1000XM3) are not working with both hsp_ag and hfp_ag
  19. # enabled, disable either hsp_ag or hfp_ag to work around it.
  20. #
  21. # Supported headset roles: hsp_hs (HSP Headset),
  22. # hsp_ag (HSP Audio Gateway),
  23. # hfp_hf (HFP Hands-Free),
  24. # hfp_ag (HFP Audio Gateway)
  25. #bluez5.headset-roles = [ hsp_hs hsp_ag hfp_hf hfp_ag ]
  26.  
  27. # Enabled A2DP codecs (default: all).
  28. #bluez5.codecs = [ sbc aac ldac aptx aptx_hd ]
  29.  
  30. # Properties for the A2DP codec configuration
  31. #bluez5.default.rate = 48000
  32. #bluez5.default.channels = 2
  33. }
  34.  
  35. rules = [
  36. # An array of matches/actions to evaluate.
  37. {
  38. # Rules for matching a device or node. It is an array of
  39. # properties that all need to match the regexp. If any of the
  40. # matches work, the actions are executed for the object.
  41. matches = [
  42. {
  43. # This matches all cards.
  44. device.name = "~bluez_card.*"
  45. }
  46. ]
  47. actions = {
  48. # Actions can update properties on the matched object.
  49. update-props = {
  50.  
  51. # Auto-connect device profiles on start up or when only partial
  52. # profiles have connected. Disabled by default if the property
  53. # is not specified.
  54. #bluez5.auto-connect = [
  55. # hfp_hf
  56. # hsp_hs
  57. # a2dp_sink
  58. # hfp_ag
  59. # hsp_ag
  60. # a2dp_source
  61. #]
  62. bluez5.auto-connect = [ a2dp_sink a2dp_source hfp_hf hsp_hs ]
  63.  
  64. # Overload mSBC support for native backend and a specific device.
  65. #bluez5.msbc-support = false
  66.  
  67. # Hardware volume control (default: [ hfp_ag hsp_ag a2dp_source ])
  68. #bluez5.hw-volume = [
  69. # hfp_hf
  70. # hsp_hs
  71. # a2dp_sink
  72. # hfp_ag
  73. # hsp_ag
  74. # a2dp_source
  75. #]
  76.  
  77. # LDAC encoding quality
  78. # Available values: auto (Adaptive Bitrate, default)
  79. # hq (High Quality, 990/909kbps)
  80. # sq (Standard Quality, 660/606kbps)
  81. # mq (Mobile use Quality, 330/303kbps)
  82. #bluez5.a2dp.ldac.quality = auto
  83.  
  84. # AAC variable bitrate mode
  85. # Available values: 0 (cbr, default), 1-5 (quality level)
  86. #bluez5.a2dp.aac.bitratemode = 0
  87.  
  88. # Profile connected first
  89. # Available values: a2dp-sink (default), headset-head-unit
  90. #device.profile = a2dp-sink
  91. }
  92. }
  93. }
  94. {
  95. matches = [
  96. {
  97. # Matches all sources.
  98. node.name = "~bluez_input.*"
  99. }
  100. {
  101. # Matches all sinks.
  102. node.name = "~bluez_output.*"
  103. }
  104. ]
  105. actions = {
  106. update-props = {
  107. #node.nick = "My Node"
  108. #node.nick = null
  109. #priority.driver = 100
  110. #priority.session = 100
  111. node.pause-on-idle = false
  112. #resample.quality = 4
  113. #channelmix.normalize = false
  114. #channelmix.mix-lfe = false
  115. #session.suspend-timeout-seconds = 5 # 0 disables suspend
  116. #monitor.channel-volumes = false
  117.  
  118. # A2DP source role, "input" or "playback"
  119. # Defaults to "playback", playing stream to speakers
  120. # Set to "input" to use as an input for apps
  121. #bluez5.a2dp-source-role = input
  122. }
  123. }
  124. }
  125. ]
  126.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement