Not sure if you found a solution but the easiest way is probably to download SleepDepriver from Cydia and then assign it to the Activator action Power-Connected.
Not sure if you found a solution but the easiest way is probably to download SleepDepriver from Cydia and then assign it to the Activator action Power-Connected.