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

JohnZheng

New member
Oct 22, 2014
2
0
0
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?
 
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

Trending Posts

Members online

Forum statistics

Threads
956,349
Messages
6,967,724
Members
3,163,517
Latest member
amaka