Turn tablet on/off when powercable is plugged / unplugged
I have a Nexus 7 2012 in my car and running Timur's Kernel.
When i disconnect the power the tablet goes to Deep sleep.
The problem is that the battery don't lasts more than max 24h, and that's if it is 100% (also I don't drive enough to charge 100% every day).
So the result is a flat battery, and then I have to wait 15-20min for the battery to be fully enough that the Nexus can be turned on.
Therefore I want the following functionality:
- When the Nexus receive power the tablet will turn on and start "Car Home Ultra".
- When the Nexus loose power it will go to Deep Sleep, and if the power is not back in X minutes it will turn off.
Is this possible?