Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Turn tablet on/off when powercable is plugged / unplugged

OP Evelen

19th May 2014, 07:40 PM   |  #1  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
Hi.

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?
19th May 2014, 10:48 PM   |  #2  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
Sign bootloader?
ok, i found this: http://www.mp3car.com/android-tablet...er-button.html

Quote:

EDIT: This worked perfectly. Unlock your bootloader and type "fastboot oem off-mode-charge 0". Now, even if the tablet is completely turned off, when you apply power it automatically boots to the home screen. No power button needed ever again.

But how do i write commands in bootloader? My devoice is rooted, but I don't know if the bootloader is unlocked.
20th May 2014, 01:16 AM   |  #3  
Senior Member
Flag Central Kentucky
Thanks Meter: 1,117
 
7,013 posts
Join Date:Joined: Apr 2008
More
Quote:
Originally Posted by Evelen

ok, i found this: http://www.mp3car.com/android-tablet...er-button.html



But how do i write commands in bootloader? My devoice is rooted, but I don't know if the bootloader is unlocked.

You do exactly what it says to do.. Boot into the bootloader and type the command given.

If you're rooted, your bootloader is most likely unlocked.
20th May 2014, 06:48 AM   |  #4  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
Quote:
Originally Posted by khaytsus

You do exactly what it says to do.. Boot into the bootloader and type the command given.

If you're rooted, your bootloader is most likely unlocked.

O thanks, I must connect my Nexus to the computher t do this, right?
20th May 2014, 07:09 PM   |  #5  
OP Member
Thanks Meter: 2
 
41 posts
Join Date:Joined: Mar 2014
Thumbs up
worked perfect.
Now I need som tasker help: http://forum.xda-developers.com/show...php?p=52799192
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes