Script to control Nexus 10 charge between 35%-55%

JohnZheng

New member
Oct 22, 2014
2
0
0
Visit site
I created a script to control nexus 10 charge on omnirom, keeping it between 35%-55%. It's user configurable to set your own charge range, for example 60%-80% if you prefer to keep a fuller charge with less battery longevity. Is it possible to add zip attachements here on androidcentral?
 

JohnZheng

New member
Oct 22, 2014
2
0
0
Visit site
Found the add attachment link under advanced edit.

To use this, unzip to /data/local/bin/charge_control.sh, and then run charge_control.sh as root user. This leverages the system interface /sys/devices/virtual/power_supply/manta-battery/charge_enabled to control charging. You can modify STOPLIMIT and STARTLIMIT to with desired charge levels. You can optionally create /data/local/etc/battery/STOPLIMIT and /data/local/etc/battery/STARTLIMIT and put the values in there. Those values would override the values in the script.

Let me know if you find it useful!
 

Attachments

  • charge_control_manta.zip
    783 bytes · Views: 2

Forum statistics

Threads
943,173
Messages
6,917,633
Members
3,158,861
Latest member
dumpsterrentals38