Skip to content

Instantly share code, notes, and snippets.

@perja12
Last active May 1, 2024 19:45
Show Gist options
  • Save perja12/a1c3b5c6e432ff2e6cf3403d65678ec9 to your computer and use it in GitHub Desktop.
Save perja12/a1c3b5c6e432ff2e6cf3403d65678ec9 to your computer and use it in GitHub Desktop.
Turn off BLE and always-on for UE BOOM 2 speaker to improve battery life

Use these commands to turn off BLE on the UE BOOM 2 speaker. The main reason for doing this is to avoid the battery drain when BLE is always on (even when turning off the device with the power button). This was added as "feature" to make it possible to turn on the speaker, but I want better battery life instead. I have used Fedora 39.

First pair the UE BOOM 2 speaker with the laptop and connect to it. Make sure to replace 88:C6:26:xx:xx:xx with the MAC address of your UE BOOM speaker. This can be found in Bluetooth settings in Fedora.

Note: uninstall the Android or iOS UE Boom App since it will enable BLE again!

Commands:

sudo rfcomm bind 0 88:C6:26:xx:xx:xx 1
echo -e "\x03\x01\xB9\x00" > /dev/rfcomm0
sudo rfcomm release 0

Check that BLE is disabled with the command sudo hcitool lescan. It should not show 88:C6:26:xx:xx:xx anymore.

BLE can be turned on again with:

sudo rfcomm bind 0 88:C6:26:xx:xx:xx 1
echo -e "\x03\x01\xB9\x01" > /dev/rfcomm0
sudo rfcomm release 0

Thanks to reverse engineering done here: https://blog.countableset.com/2022/02/22/ue-boom-reverse-engineering/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment