Poor sound quality in Bluetooth Headphones, sometimes
Apologies in advance if this is a duplicate. I don't know anything about Bluetooth, or audio, or codecs, so I can't tell if the same issue has already been reported.
I'm using the recently released PipeWire 0.3.24 (namely, pipewire-0.3.24-1.fc34) on Fedora 34. I have OnePlus Bullets Wireless 2 bluetooth earbuds, which apparently support something called "aptX". The headphones used to work OK when connected to my GNU/Linux machine running PulseAudio (I don't know whether they were using aptX or not, but the sound was good enough). Now that I've upgraded to F34 and PipeWire, the sound is noticeably bad and distorted. Moreover, apparently PipeWire only sees them as a mono output, not stereo.
Now, here's an interesting part: apparently, sometimes it works fine, and other times it doesn't, seemingly at random. When it works fine, it reports using "High Fidelity Playback (A2DP Sink, codec SBC)".
[OnePlus Bullets Wireless 2]# info Device 98:09:CF:FE:C0:A0 (public) Name: OnePlus Bullets Wireless 2 Alias: OnePlus Bullets Wireless 2 Class: 0x00240418 Icon: audio-card Paired: yes Trusted: yes Blocked: no Connected: yes LegacyPairing: no UUID: Vendor specific (00001100-d102-11e1-9b23-00025b00a5a5) UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb) UUID: Headset (00001108-0000-1000-8000-00805f9b34fb) UUID: Audio Sink (0000110b-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: Advanced Audio Distribu.. (0000110d-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: Handsfree (0000111e-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: Immediate Alert (00001802-0000-1000-8000-00805f9b34fb) UUID: Link Loss (00001803-0000-1000-8000-00805f9b34fb) UUID: Tx Power (00001804-0000-1000-8000-00805f9b34fb) UUID: Battery Service (0000180f-0000-1000-8000-00805f9b34fb) Modalias: bluetooth:v000ApFFFFdFFFF
oFono: Registering Profile /Profile/ofono failed hsphfpd: Registering application /Profile/hsphfpd/manager failed native: listen(): Address already in use bluez5-monitor: Failed to register battery provider. Error: org.freedesktop.DBus.Error.UnknownMethod bluez5-monitor: BlueZ Battery Provider is not available, won't retry to register it. Make sure you are running BlueZ 5.56+ with experimental features to use Battery Provider.
- BlueZ 5.56 (bluez-5.56-4.fc34)
- PipeWire 0.3.24 (pipewire-0.3.24-1.fc34)
- Linux 5.11.7 (kernel-5.11.3-300.fc34)