Closed AxelBlaz3 closed 6 years ago
Control file location:
/sys/devices/platform/mt-battery/disable_charger 1 = Charging disabled 0 = Charging enabled
Testing
/sys/devices/platform/mt-battery # echo 1 > disable_charger /sys/class/power_supply/battery # cat status Not charging
Comment: Device won't charge anymore. The led charging light gets turned off and device stops charging.
/sys/devices/platform/mt-battery # echo 0 > disable_charger /sys/class/power_supply/battery # cat status Charging
Comment: Device charges now.
As you've already contributed a PR, I will close this. Thank you!
Control file location:
/sys/devices/platform/mt-battery/disable_charger 1 = Charging disabled 0 = Charging enabled
Testing
/sys/devices/platform/mt-battery # echo 1 > disable_charger /sys/class/power_supply/battery # cat status Not charging
Comment: Device won't charge anymore. The led charging light gets turned off and device stops charging.
/sys/devices/platform/mt-battery # echo 0 > disable_charger /sys/class/power_supply/battery # cat status Charging
Comment: Device charges now.