Skip to content

Report the battery's cycle count, maximum capacity and Low Power Mode #708

Closed

Description

@Seb-GRAF

Problem

The battery provider reports the charge, its state, the time left and whether macOS recommends service. It doesn't report what System Settings → Battery shows about the battery's condition, the cycle count and the maximum capacity, or whether Low Power Mode is on. A battery view in a popup (#706) can't show them.

Proposal

  • fields.cycles: the cycle count, such as 214.
  • fields.capacity: the maximum capacity as a whole percentage of the design capacity, such as 91.
  • fields.lowPower: true or false, and values.lowPower: 1 or 0, updated as soon as Low Power Mode changes.
  • The first two come from IOKit's battery entry and need no permission. They're left out on a Mac without a battery.
  • Low Power Mode is read-only: macOS offers no public way to switch it without administrator rights.

Possible today

Only with a script reading ioreg -rn AppleSmartBattery and pmset -g, which a widgets package can't run.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    good first issue
    on Nov 16, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.17.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuereleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions