Battery Buddy support thread

Hi Matti,

as thanks to @rinigus and @vlagged we now have a very mature community port of Sailfish OS for the Xperia 1 and 5 Mark IV (Nagara platform), would it be possible for you to include Nagara specific charging control files in Battery Buddy? Please, see this post or the information below:

The Xperia 1 and 5 IV specific files are as follows:

  • the charger control file is /sys/class/qcom-battery/charging_enabled (1 or 0)
  • the charging current limitation takes two files: /sys/class/qcom-battery/restrict_cur (max charging current in microamps) and additionally one needs to write 1 to /sys/class/qcom-battery/restrict_chg in order to enable the limit. I used the set-write-permissions.sh script for that (i.e. echo 1 > /sys/class/qcom-battery/restrict_chg) so that it is re-enabled at every reboot as otherwise it gets reverted to 0
  • /sys/class/power_supply/usb/online holds information (0 or 1) whether USB charging takes place.
  • All other files are the same as on some other devices, so Battery Buddy already supports them.

It would be great if you could add it, so that 1 and 5 IV can be supported by Battery Buddy “out of the box” :slight_smile: For my own use, I’ve modified version 4.3.2-1 (which seemed to be the last release - i.e. non-beta - version) and I’ve been successfully using it on my 1 IV for almost a week now, enjoying 100% functionality of your app.

1 Like