You are not logged in.
I have bluetooth Earphones "OPPO Enco Air".
Before wireplumber was pipewire-media-session with pipeware and everything work as expected, but after update to new version pipeware, wireplumber was installed and replaced pipewire-media-session.
Now I have very bad quality of input audio via Earphones.
I tried change config but nothing changes.
Сould you suggest a solution?
~/.config/wireplumber/bluetooth.lua.d/50-bluez-config.lua
bluez_monitor.enabled = true
bluez_monitor.properties = {
-- These features do not work on all headsets, so they are enabled
-- by default based on the hardware database. They can also be
-- forced on/off for all devices by the following options:
--["bluez5.enable-sbc-xq"] = true,
--["bluez5.enable-msbc"] = true,
["bluez5.enable-hw-volume"] = false,
-- See bluez-hardware.conf for the hardware database.
-- Enabled headset roles (default: [ hsp_hs hfp_ag ]), this
-- property only applies to native backend. Currently some headsets
-- (Sony WH-1000XM3) are not working with both hsp_ag and hfp_ag
-- enabled, disable either hsp_ag or hfp_ag to work around it.
--
-- Supported headset roles: hsp_hs (HSP Headset),
-- hsp_ag (HSP Audio Gateway),
-- hfp_hf (HFP Hands-Free),
-- hfp_ag (HFP Audio Gateway)
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]",
-- Enabled A2DP codecs (default: all).
["bluez5.codecs"] = "[ sbc sbc_xq aac ldac aptx aptx_hd aptx_ll aptx_ll_duplex faststream faststream_duplex ]",
-- HFP/HSP backend (default: native).
-- Available values: any, none, hsphfpd, ofono, native
["bluez5.hfphsp-backend"] = "native",
-- Properties for the A2DP codec configuration
["bluez5.default.rate"] = 48000,
["bluez5.default.channels"] = 2,
-- Register dummy AVRCP player, required for AVRCP volume function.
-- Disable if you are running mpris-proxy or equivalent.
--["bluez5.dummy-avrcp-player"] = true,
-- Enable the logind module, which arbitrates which user will be allowed
-- to have bluetooth audio enabled at any given time (particularly useful
-- if you are using GDM as a display manager, as the gdm user also launches
-- pipewire and wireplumber).
-- This requires access to the D-Bus user session; disable if you are running
-- a system-wide instance of wireplumber.
["with-logind"] = true,
}
bluez_monitor.rules = {
-- An array of matches/actions to evaluate.
{
-- Rules for matching a device or node. It is an array of
-- properties that all need to match the regexp. If any of the
-- matches work, the actions are executed for the object.
matches = {
{
-- This matches all cards.
{ "device.name", "matches", "bluez_card.*" },
},
},
-- Apply properties on the matched object.
apply_properties = {
-- Auto-connect device profiles on start up or when only partial
-- profiles have connected. Disabled by default if the property
-- is not specified.
--["bluez5.auto-connect"] = "[ hfp_hf hsp_hs a2dp_sink hfp_ag hsp_ag a2dp_source ]",
["bluez5.auto-connect"] = "[]",
-- Hardware volume control (default: [ hfp_ag hsp_ag a2dp_source ])
--["bluez5.hw-volume"] = "[ hfp_hf hsp_hs a2dp_sink hfp_ag hsp_ag a2dp_source ]",
-- LDAC encoding quality
-- Available values: auto (Adaptive Bitrate, default)
-- hq (High Quality, 990/909kbps)
-- sq (Standard Quality, 660/606kbps)
-- mq (Mobile use Quality, 330/303kbps)
--["bluez5.a2dp.ldac.quality"] = "auto",
-- AAC variable bitrate mode
-- Available values: 0 (cbr, default), 1-5 (quality level)
--["bluez5.a2dp.aac.bitratemode"] = 0,
-- Profile connected first
-- Available values: a2dp-sink (default), headset-head-unit
--["device.profile"] = "a2dp-sink",
},
},
{
matches = {
{
-- Matches all sources.
{ "node.name", "matches", "bluez_input.*" },
},
{
-- Matches all sinks.
{ "node.name", "matches", "bluez_output.*" },
},
},
apply_properties = {
--["node.nick"] = "My Node",
--["priority.driver"] = 100,
--["priority.session"] = 100,
--["node.pause-on-idle"] = false,
--["resample.quality"] = 4,
--["channelmix.normalize"] = false,
--["channelmix.mix-lfe"] = false,
--["session.suspend-timeout-seconds"] = 5, -- 0 disables suspend
--["monitor.channel-volumes"] = false,
-- A2DP source role, "input" or "playback"
-- Defaults to "playback", playing stream to speakers
-- Set to "input" to use as an input for apps
--["bluez5.a2dp-source-role"] = "input",
},
},
}pw-cli dump
id: 86
permissions: rwxm
type: PipeWire:Interface:Device/3
properties:
api.bluez5.address = "48:D8:45:72:A4:65"
api.bluez5.class = "0x240404"
api.bluez5.connection = "disconnected"
api.bluez5.device = ""
api.bluez5.icon = "audio-headset"
api.bluez5.path = "/org/bluez/hci0/dev_48_D8_45_72_A4_65"
bluez5.auto-connect = "[]"
bluez5.profile = "off"
device.alias = "OPPO Enco Air"
device.api = "bluez5"
device.bus = "bluetooth"
device.description = "OPPO Enco Air"
device.form-factor = "headset"
device.icon-name = "audio-headset-bluetooth"
device.name = "bluez_card.48_D8_45_72_A4_65"
device.product.id = "0x0123"
device.string = "48:D8:45:72:A4:65"
device.vendor.id = "bluetooth:0094"
media.class = "Audio/Device"
factory.id = "14" ("client-device")
client.id = "35"
object.id = "86"
object.serial = "119"
params:
8 (Spa:Enum:ParamId:EnumProfile) r-
9 (Spa:Enum:ParamId:Profile) rw
12 (Spa:Enum:ParamId:EnumRoute) r-
13 (Spa:Enum:ParamId:Route) rw
1 (Spa:Enum:ParamId:PropInfo) r-
2 (Spa:Enum:ParamId:Props) rwLast edited by AndrewG (2022-07-08 22:01:27)
Offline
Well which profile are you picking/do you have available? What's your output for
pactl list cardsOffline
In Gnome settings I can not select any Profile
https://i.imgur.com/unCSsQY.png
pactl list cards
Card #434
Name: bluez_card.48_D8_45_72_A4_65
Driver: module-bluez5-device.c
Owner Module: n/a
Properties:
api.bluez5.address = "48:D8:45:72:A4:65"
api.bluez5.class = "0x240404"
api.bluez5.connection = "disconnected"
api.bluez5.device = ""
api.bluez5.icon = "audio-headset"
api.bluez5.path = "/org/bluez/hci0/dev_48_D8_45_72_A4_65"
bluez5.auto-connect = "[]"
bluez5.profile = "off"
device.alias = "OPPO Enco Air"
device.api = "bluez5"
device.bus = "bluetooth"
device.description = "OPPO Enco Air"
device.form_factor = "headset"
device.icon_name = "audio-headset-bluetooth"
device.name = "bluez_card.48_D8_45_72_A4_65"
device.product.id = "0x0123"
device.string = "48:D8:45:72:A4:65"
device.vendor.id = "bluetooth:0094"
media.class = "Audio/Device"
factory.id = "14"
client.id = "35"
object.id = "95"
object.serial = "434"
Profiles:
off: Off (sinks: 0, sources: 0, priority: 0, available: yes)
a2dp-sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 16, available: yes)
headset-head-unit: Headset Head Unit (HSP/HFP) (sinks: 1, sources: 1, priority: 1, available: yes)
a2dp-sink-sbc: High Fidelity Playback (A2DP Sink, codec SBC) (sinks: 1, sources: 0, priority: 18, available: yes)
a2dp-sink-sbc_xq: High Fidelity Playback (A2DP Sink, codec SBC-XQ) (sinks: 1, sources: 0, priority: 17, available: yes)
a2dp-sink-aac: High Fidelity Playback (A2DP Sink, codec AAC) (sinks: 1, sources: 0, priority: 19, available: yes)
headset-head-unit-cvsd: Headset Head Unit (HSP/HFP, codec CVSD) (sinks: 1, sources: 1, priority: 2, available: yes)
headset-head-unit-msbc: Headset Head Unit (HSP/HFP, codec mSBC) (sinks: 1, sources: 1, priority: 3, available: yes)
Active Profile: headset-head-unit-msbc
Ports:
headset-input: Headset (type: Headset, priority: 0, latency offset: 0 usec, available)
Properties:
port.type = "headset"
Part of profile(s): headset-head-unit, headset-head-unit-cvsd, headset-head-unit-msbc
headset-output: Headset (type: Headset, priority: 0, latency offset: 0 usec, available)
Properties:
port.type = "headset"
Part of profile(s): a2dp-sink, headset-head-unit, a2dp-sink-sbc, a2dp-sink-sbc_xq, a2dp-sink-aac, headset-head-unit-cvsd, headset-head-unit-msbcmoderator edit -- replaced oversized image with link.
Pasting pictures and code
Last edited by 2ManyDogs (2022-07-07 13:10:16)
Offline
The "Configuration" dropdown is your profile selection. did you used to have more than just mSBC or CVSTD ?
Offline
After update to latest version 1:0.3.54-1 input sound quality was fixed. Thank you all.
Offline