title: Check battery level of connected bluetooth device on linux
body: <p>How can I check the battery level of a connected bluetooth device? The device shows the battery level on Android so I'm assuming the device supports the <a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.battery_service.xml" rel="noreferrer">GATT-based Battery Service</a>. However, by entering "menu gatt" in bluetoothctl and then listing the GATT attributes of the device with "list-attributes [dev]", nothing shows up.</p>
  
  <p>A <a href="https://stackoverflow.com/questions/48058357/how-to-check-battery-level-of-a-bluetooth-paired-remote" title="How to check battery level of a bluetooth paired remote">similar question was posted to SO</a> but the OP seems to have found a solution that doesn't work for me. When I run "info [dev]" in bluetoothctl I don't see the UUID for Battery Service.</p>
  
  <p>I would prefer a solution that runs on the command line and is distro-agnostic.</p>
  
  <p>Please let me know if this question should be posted on SuperUser instead.</p>