Battery Buddy

Rating: 
4.882355
Your rating: None Average: 4.9 (34 votes)

Note: Update to 3.15 resets all intervals to 24h, so please check the settings!

Fully discharging a battery and charging it back to full charge again wears it out sooner than you might expect. Battery Buddy can help you increase the battery lifetime by automatically pausing and resuming charging. You can set alerts for low and full enough charge levels, too.

Important: Battery Buddy 3.6-1 and later releases require SailfishOS 3.3. The legacy version that supports SailfishOS 2.2.0.18 and later can be downloaded manually from GitHub releases page.

The application comes with a service component that takes care of charger control and alerts. This means that the application doesn't have to be opened for alerts and limits to work - which is against Jolla Store policy, and hence worth mentioning here. You can control the service from the application (start/stop and enable/disable on boot).

There is now a logging option, which can be accessed via the Settings page pulley menu, with three logging options. You can copy the log contents, too, so submitting the service log for debugging purposes is now a lot more convenient! Using --verbose and --debug flags still work as before.

Please note that the charger control mechanism may not work for every device out there. So far it has been successfully tested with the following devices:

  • F(x)tec Pro¹
  • Jolla Phone
  • Sony Xperia 10
  • Sony Xperia 10 II
  • Sony Xperia X
  • Sony Xperia X Compact
  • Sony Xperia XA2
  • Sony Xperia XA2 Ultra
  • Sony Xperia Z3 Compact Tablet

Please let me know if it works for your device, or if it doesn't work!

Bug reports and translations are most welcome!

If you like my work and would like to support me, you can now buy me a coffee.

Source code can be found in GitHub.

Screenshots: 
Application versions: 
AttachmentSizeDate
File harbour-batterybuddy-3.11-1.aarch64.rpm114.97 KB27/04/2021 - 21:49
File harbour-batterybuddy-3.11-1.armv7hl.rpm110.85 KB27/04/2021 - 21:49
File harbour-batterybuddy-3.11-1.i486.rpm118.87 KB27/04/2021 - 21:49
File harbour-batterybuddy-3.12-3.aarch64.rpm118.18 KB01/05/2021 - 00:06
File harbour-batterybuddy-3.12-3.armv7hl.rpm113.77 KB01/05/2021 - 00:06
File harbour-batterybuddy-3.12-3.i486.rpm121.86 KB01/05/2021 - 00:06
File harbour-batterybuddy-3.13-1.aarch64.rpm129.69 KB23/05/2021 - 16:27
File harbour-batterybuddy-3.13-1.armv7hl.rpm125.48 KB23/05/2021 - 16:27
File harbour-batterybuddy-3.13-1.i486.rpm135.5 KB23/05/2021 - 16:27
File harbour-batterybuddy-3.14-1.aarch64.rpm130.32 KB30/05/2021 - 21:23
File harbour-batterybuddy-3.14-1.armv7hl.rpm126 KB30/05/2021 - 21:23
File harbour-batterybuddy-3.14-1.i486.rpm136.14 KB30/05/2021 - 21:23
File harbour-batterybuddy-3.15-1.aarch64.rpm129.34 KB25/07/2021 - 21:15
File harbour-batterybuddy-3.15-1.armv7hl.rpm125.55 KB25/07/2021 - 21:15
File harbour-batterybuddy-3.15-1.i486.rpm135.04 KB25/07/2021 - 21:15
File harbour-batterybuddy-3.15.1-1.aarch64.rpm129 KB10/10/2021 - 23:50
File harbour-batterybuddy-3.15.1-1.armv7hl.rpm125.09 KB10/10/2021 - 23:50
File harbour-batterybuddy-3.15.1-1.i486.rpm134.38 KB10/10/2021 - 23:50
File harbour-batterybuddy-3.16.1-1.aarch64.rpm128.8 KB11/10/2021 - 01:14
File harbour-batterybuddy-3.16.1-1.armv7hl.rpm125.13 KB11/10/2021 - 01:14
File harbour-batterybuddy-3.16.1-1.i486.rpm134.54 KB11/10/2021 - 01:14
File harbour-batterybuddy-3.16.2-1.aarch64.rpm128.95 KB24/11/2021 - 23:09
File harbour-batterybuddy-3.16.2-1.armv7hl.rpm125.24 KB24/11/2021 - 23:09
File harbour-batterybuddy-3.16.2-1.i486.rpm134.58 KB24/11/2021 - 23:09
Changelog: 

3.16.2-1

  • Fix .spec bin file path (thanks, leon and nephros)
  • Built with Sailfish OS SDK 3.7 for 4.3.0.12

3.16.1-1

  • Fix bogus version number

3.15.1-1

  • Built for SFOS 4.2.0.21 using SDK 3.6.6
  • Use semantic versioning
  • Use `systemctl-user` instead of `systemctl --user`

3.15-1

  • Implement BackgroundActivity timed events
  • Drop keepalive-tool

3.14-1

  • Special pi version release :D
  • Use keepalive-tool to mitigate deep sleep
  • Update translators and credits
  • Update Polish translation (thanks, atlochowski)
  • Update Deutch translation (thanks, nephros)

3.13-1

  • Show battery temperature and condition (thanks, nephros)
  • Show notifications about abnormal temperature and condition (thanks, nephros)
  • Fix broken notifications on SFOS 3.4 and earlier
  • Bring back SFOS 2.2 support

Full changelog in GitHub.

Comments

babba22's picture

Ok, I understand. Thank you very much for the app!

zipotron's picture

Dude, amazing app! Thanks a lot for that!!! Just a consideration, if you could deamonize the app is going a be just perfect !

direc85's picture

Thanks! I'll implement the service at some point for sure!

oxygenh's picture

I have issue: I'm not receiving notification, when charge below low limit or higher upper limit.
( http://prntscr.com/rn0vff )
ps: but charging control work good.
My settings: Sailfish X 3.2.1.20 (Sony xperia x compact)
console log:

[nemo@Sailfish ~]$ harbour-batterybuddy
[I] unknown:0 - Starting Battery Buddy...
[I] unknown:0 - Loaded lowAlert 39
[I] unknown:0 - Loaded highAlert 85
[I] unknown:0 - Loaded interval 300
[I] unknown:0 - Loaded limitEnabled 1
[I] unknown:0 - Loaded notificationsEnabled 1
[I] unknown:0 - Loaded lowLimit 76
[I] unknown:0 - Loaded highLimit 85
[I] unknown:0 - Loaded limitEnabled 1
[I] unknown:0 - Reading capacity from "/sys/class/power_supply/ba
ttery/capacity"
[I] unknown:0 - Reading charge state from "/sys/class/power_suppl
y/battery/status"
[I] unknown:0 - Reading charger status from "/sys/class/power_sup
ply/usb/present"
[I] unknown:0 - Controlling charging via "/sys/class/power_supply
/battery/charging_enabled"
[W] unknown:0 - Theme dir "/usr/share/themes/jolla/meegotouch/z1.
25/" does not exist
[I] unknown:0 - Launching GUI...
[W] unknown:518 - file:///usr/lib/qt5/qml/Sailfish/Silica/private
/PulleyMenuBase.qml:518:29: Unable to assign [undefined] to float
[W] unknown:518 - file:///usr/lib/qt5/qml/Sailfish/Silica/private
/PulleyMenuBase.qml:518:29: Unable to assign [undefined] to float

direc85's picture

Thanks for the --debug output below (you can remove it now so that there's less clutter).

I tested it, too, and it looks like I managed to break the notifications at some point. I'll fix it and release a new version soon (hopefully today).

EDIT: I deleted the debug output comment.

oxygenh's picture

Thank you very much! My issue absolutely fixed with last release. It's cool! Superbe!

direc85's picture

You're welcome!

direc85's picture

Try to run the application using "harbour-batterybuddy --debug". Its actually not documented yes. Whoops. And I still have to add debug stuff.

oxygenh's picture

Thank you very much for vry usefull app. Do you have plan built in system setting (like battery notifier), and make daemon?

direc85's picture

Thanks! Most likely I will do that in a month or so; I suddenly managed to rid myself of all free time for a month '-.-

oxygenh's picture

It will be cool! I will wait. Thank you.
Where do i send little donat? ;)

direc85's picture

TBH I'm working on it. Thank you for asking :)

PawelSpoon's picture

Great with Situations ! Starts on cable plugin

enrish's picture

Genius! I hoped for this new feature for long, as i often missed notifications when in another room. Thanks a lot. I also had problems after the very last update, and uninstalling-reinstalling did it.

mz_i_norge's picture

Why is it not possible to charge the battery up to 100% with automatic charging control? That stops at 95%.

direc85's picture

Thanks for feedback! That's just an arbitrary maximum value I chose. I have to revisit the sliders, too, because it's quite hard to get the value exactly right on Jolla Phone with its small display. I'll fix both of these in a future release.

t0t3u's picture

Fixed by reinstalling it.

t0t3u's picture

Oups!
Don't know if it's related but it failes to start after last update:
[nemo@Sailfish ~]$ harbour-batterybuddy
[I] unknown:0 - Starting Battery Buddy...
[I] unknown:0 - Loaded lowAlert 30
[I] unknown:0 - Loaded highAlert 76
[I] unknown:0 - Loaded interval 60
[I] unknown:0 - Loaded limitEnabled 0
[I] unknown:0 - Loaded notificationsEnabled 1
[I] unknown:0 - Loaded lowLimit 50
[I] unknown:0 - Loaded highLimit 70
[I] unknown:0 - Loaded limitEnabled 0
[I] unknown:0 - Reading capacity from "/sys/class/pow
er_supply/battery/capacity"
[I] unknown:0 - Reading charge state from "/sys/class
/power_supply/battery/status"
[I] unknown:0 - Reading charger status from "/sys/cla
ss/power_supply/usb/present"
Segmentation fault
[nemo@Sailfish ~]$

direc85's picture

Thanks for reporting. I'll have a look at the issue. Good to know that reinstalling helped, too...

t0t3u's picture

Great work!
I confirm that the automated part works on X10.

fllp's picture

Version 2.0 is a wonderful update. Thank you!
Automatic change limit works on Xperia X. Like a charm.

direc85's picture

Thanks for reporting, adding that one, too!

PawelSpoon's picture

Automatic turn off did work too

direc85's picture

Good to hear!

If manual part works, the automated part works too - as long as the logic behind works. So far so good :)

PawelSpoon's picture

At least manual part does work on X10 . Great !!

nephros's picture

Confirmed. This is great (and came out just as I was in the process of trying to get X10 support into battery notifier).

direc85's picture

Great! I'll add it to the list in the next update!

Pages