Bluetooth mSBC distortion on active wifi
- PipeWire version (
pipewire --version
): 0.3.39 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): Ubuntu 20.04.3 LTS - Desktop Environment: GNOME 3.36.8
- Kernel version (
uname -r
): 5.13.0-21-generic - BlueZ version (
bluetoothctl --version
): 5.53 -
lsusb
:
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 0bda:c123 Realtek Semiconductor Corp. Bluetooth Radio
Bus 003 Device 002: ID 27c6:55b4 Shenzhen Goodix Technology Co.,Ltd. Fingerprint Reader
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 5986:212a Acer, Inc Integrated Camera
Bus 001 Device 013: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
Bus 001 Device 016: ID 058f:9410 Alcor Micro Corp. Keyboard
Bus 001 Device 015: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 001 Device 014: ID 04f2:1113 Chicony Electronics Co., Ltd
Bus 001 Device 012: ID 8054:0001 GenesysLogic USB2.1 Hub
Bus 001 Device 011: ID 05e3:0614 Genesys Logic, Inc. Integrated Camera
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- Bluetooth devices:
Device 00:0C:8A:B6:4F:E8 Bose Mini SoundLink
Device 2C:41:A1:C8:33:DC Luke QC35 II
Device E9:08:EF:27:13:57 Symphonized NRG 2.0 W
Device 74:5C:4B:C1:69:B0 Jabra Talk 45
Device FF:DD:22:B1:00:35 Will nix
Description of Problem:
When using A2DP audio is fine and stays fine if the system get's under load (e.g. by doing a screen capture in a meeting, loading a website in the browser). If using a headset and mSBC codec the audio (speaker and microphone) are clear if the system isn't under any load, but as soon as you open applications, actively browse the web, do a screenshare in your meeting it get's heavily distorted and makes it difficult to understand the others in the meeting and also they have a hard time understanding you.
The Problem seems to occur on active wifi usage. If I'm on my docking station and the wifi's disabled it's fine also while having load on the system, but all above described load scenarios also include network traffic and enabling the wifi brings back the distortion (even if I'm connected to a 5Ghz wifi).
I assume there's nothing you can do about that, and that's maybe just a bad situation with my chips then?
How Reproducible:
Steps to Reproduce:
- connect bluetooth headset
- switch to use it for in and output with mSBC
- start some music playback
- make sure it sounds good
-
oad a heavy websitetrigger network traffic over your wifi, disable/enable wifi - notice the distortion
until the system get's back to nearly idleunder active network traffic through the wifi
Actual Results:
Audio is distorted using mSBC when traffic is going actively over the wifi.
Expected Results:
Audio should stay clear if it's not an actual cpu bottleneck independant from the network activity.
Additional Info (as attachments):
-
pw-dump > pw-dump.log
: pipewire-distortion_pw-dump.log - Bluetooth debug log, see here: pipewire-distortion_wireplumber.log
-
journalctl --user-unit=pipewire --user-unit=wireplumber --user-unit=pipewire-pulse
: pipewire-distortion.log - In order to try to fix it, I've adjusted the
clock-quantum
parameters. See attached pipewire.conf: pipewire.conf