#a2dp #pacmd #bluetoothctl #bluetthoo

bin+lib force_a2dp

Tool to force A2DP sink on any Bluetooth device

1 unstable release

0.1.0 Jun 24, 2021

#851 in Hardware support

MIT/Apache

9KB
123 lines

force_a2dp

WIP workaround fix for a pulse audio bug, HSP/HFP profiles in Ubuntu 20.04 have terrible quality, this mini scrcipt will force A2DP sink for any BT device connected. Note that A2DP is unidirectional (BT limitation), so if you force this profile bt mics will not be active.

This wraps pacmd and bluetoothctl so if there's an error setting the A2DP profile, it will restart Bluetooth and try to set the profile again.

Install

If you have Cargo installed:

cargo install force_a2dp

Or download from release tab

License

Licensed under either of

at your option.

Licensing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.1–3MB
~53K SLoC