Persistent battery charging limits
Persistent battery charging limits
Battery Control is an open source macOS status bar utility designed to manage the charging behavior of MacBook batteries. The application allows users to set specific maximum charge limits, such as maintaining the battery at 80 percent, and provides the ability to force the battery to discharge on demand even while the laptop is connected to a power source. By preventing the battery from remaining at a high voltage state for extended periods, the tool aims to minimize chemical degradation and extend the overall lifespan of the hardware. The utility is built using a hybrid architecture that combines a high performance Rust core with a web based frontend managed by the Tauri framework. To function correctly, the application interfaces directly with the macOS System Management Controller. Because modifying these system settings requires elevated privileges, the app configures a dedicated rule set within the system sudoers directory during its initial setup. This configuration allows the graphical interface to execute charging commands instantaneously without requiring the user to enter an administrator password for every change. This tool is primarily intended for MacBook users who frequently keep their laptops plugged into external monitors or desktop power adapters. In such scenarios, the application prevents the battery from sitting at a constant 100 percent charge, which is a common factor in battery wear. The workflow involves a tray accessory window where users can toggle between charging modes or adjust limits. Technical requirements for the application include macOS and administrator privileges for the initial installation to properly configure the necessary system helper tools and permissions.