If its battery is defective. nothing helps

Also, if the firmware of the device, actually its launcher, after losing external power has no option or is not able to switch to standby mode, same thing - no options in the sys file can compensate for current.