Manage Librem Battery is a utility designed for Librem 5 smartphones to help users optimize battery life by controlling charging behavior. This tool allows the battery charge to toggle on and off based on predefined thresholds to extend battery health and efficiency.
Before installing the Manage Librem Battery service, ensure you have git installed on your device to pull the latest version of the script.
Follow these steps to install and set up the Manage Librem Battery service on your Librem 5:
-
Clone the repository:
git clone https://github.com/alivellani/manage_librem_battery.git cd manage_librem_battery -
Install the service: Copy the service and script files into the appropriate system directories.
sudo cp manage_librem_battery.service /etc/systemd/system/manage_librem_battery.service sudo cp manage_librem_battery.py /usr/bin/manage_librem_battery.py
-
Reload systemd: Inform systemd that a new service file exists.
sudo systemctl daemon-reload
-
Enable the service: Enable the service to start at boot.
sudo systemctl enable manage_librem_battery.service -
Start the service: Start the service immediately.
sudo systemctl start manage_librem_battery.service
Once installed, the Manage Librem Battery service will automatically monitor your device's battery level and adjust the charging state based on the set thresholds. The service runs in the background without needing further interaction.
Contributions to the Manage Librem Battery project are welcome. Please feel free to fork the repository, make improvements, and submit pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
This software comes with no warranty. You are responsible for reviewing the code and ensuring it meets your needs. The author is not responsible for any damage that may occur due to the use of this utility.