Skip to content

arpi 13 : framework patch

Peter Yoon edited this page Sep 14, 2022 · 3 revisions

Disable Low Power Mode of Bluetooth

Patch from https://github.com/android-rpi/device_arpi_rpi4/issues/25#issuecomment-673996293

Apply following changes under hardware/interfaces/

bluetooth/1.0/default/vendor_interface.cc
@@ line 347 @@ void VendorInterface::OnFirmwareConfigured(
   lib_interface_->op(BT_VND_OP_GET_LPM_IDLE_TIMEOUT, &lpm_timeout_ms);
   ALOGI("%s: lpm_timeout_ms %d", __func__, lpm_timeout_ms);

-  bt_vendor_lpm_mode_t mode = BT_VND_LPM_ENABLE;
+  bt_vendor_lpm_mode_t mode = BT_VND_LPM_DISABLE;
   lib_interface_->op(BT_VND_OP_LPM_SET_MODE, &mode);

Clone this wiki locally