org.bluez.Battery(5)

πŸ’– NAME πŸ’–

okay so bestie, this is org.bluez.Battery(5) β€” the BlueZ D-Bus Battery API documentation ✨ it’s chilling in Linux System Administration territory, and it’s giving β€œbattery info but make it D-Bus” πŸ”‹πŸ’…

πŸ”Œ INTERFACE πŸ”Œ

here’s the vibe check on how you reach this thing, no cap:

  • Service β€” org.bluez
  • Interface β€” org.bluez.Battery1
  • Object path β€” [variable prefix]/{hci0,hci1,...}/dev_{BDADDR}

πŸ“ PROPERTIES πŸ“

  • byte Percentage [readonly] β€” the percentage of battery left, as an unsigned 8-bit integer πŸ’―
  • string Source [readonly, optional] β€” tells you where the battery information comes from 🫢

this property is informational only and may be useful for debugging purposes πŸ‘€

providers from org.bluez.BatteryProvider(5) may make use of this property to indicate where the battery report comes from (e.g. "HFP 1.7", "HID", or the profile UUID) 🌸


catch you later bestie πŸ’… β€” this page is from BlueZ, dated October 2023, and the manual page is org.bluez.Battery(5) πŸŽ€βœ¨

πŸ“¦ where this page comes from