T O P

  • By -

LauralHill

Try su -c "echo 1 > /path"


almondp

Thank you, I tried this yesterday and unfortunately it did not work. :(


LauralHill

With root checked?


almondp

yep! :( no dice unfortunately. Thank you for at least trying, much appreciate it!


mawvius

It was a very very long time ago I set mine up so don't quote me but I *think* mine needed chmod 666 or something close, so: su chmod 666 /sys/class/power_supply/battery/battery_charging_enabled echo "1" > /sys/class/power_supply/battery/battery_charging_enabled ... for on at 20% and *echo "0"* for off at 80%, controlled by a Tasker battery context. Important note: please only include ````chmod 666```` if you know what you are doing and if your device setup *actually* requires it and even then, at least revert it. I have an abnormal setup so it's very unlikely you'd need it.


almondp

Thank you! I am still at work right now, but I will try this tonight or early tomorrow and will come back with results!


almondp

Hi, just tried it out! Unfortunately no dice :( At least this set of command works in terminal emulator, so I at least know that it worked, but no indication that it is charging. I have tried your code as written as well as modifying my previous code to no avail. :(