Skip to content

direc85/harbour-batterybuddy

Repository files navigation

harbour-batterybuddy

Screenshot 1 Screenshot 4

Battery Buddy is a Sailfish OS application that pauses and resumes charging at set percentage values, or alerts the user when the battery charge level gets too high or too low. This helps in increasing the battery lifespan. There are a lot of research material on this, the numbers I pulled into the application as a reference were pulled from Battery Universe online article BU-808.

The application consist of three parts: the GUI, the monitoring daemon and the filesystem permission daemon. The filesystem daemon, harbour-batterybuddy-oneshot.service, always starts when the device boots. Its sole purpose is to set correct permissions for the charger control file of the device, so that everything else can be started as user defaultuser (or nemo), minimizing security impact. The monitoring daemon, harbour-batterybuddy.service, actually sends the notifications and pauses/resumes charging.

There's a logging feature, too, which writes to a simple text log. Depending on the log level it can log percentage changes, temperature changes and momentary device current draw. Note that the measurement can only be done when the device is not in deep sleep mode, so the power draw reading can never reflect the true lowest possible values.

You can download Battery Buddy using Storeman, or directly from Openrepos. For support, open a ticket or check out the Battery Buddy support thread over at Sailfish OS forum!

Keep your battery healthy and help our dying planet, even if it is just for a tiny little bit!