Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,742,696 Members 37,796 Now Online
XDA Developers Android and Mobile Development Forum

Turn tablet on/off when powercable is plugged / unplugged

Tip us?
 
Evelen
Old
#1  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
Battery Low Turn tablet on/off when powercable is plugged / unplugged

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?
 
Evelen
Old
#2  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: 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.
 
khaytsus
Old
#3  
Senior Member
Thanks Meter 1062
Posts: 6,837
Join Date: Apr 2008
Location: Central Kentucky
Quote:
Originally Posted by Evelen View Post
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.
AT&T LG G2 - 4.4.4, AOKP
Nexus 7 Wifi 2012 - 4.4.4, AOKP (m-kernel)
Samsung Note i717 - 4.2.2, Unofficial AOKP
Try my Alternative XDA CSS Themes (including 2010!)

--
http://theblackmoor.net
http://unlimitedphoto.com
 
Evelen
Old
#4  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
Quote:
Originally Posted by khaytsus View Post
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?
 
Evelen
Old
#5  
Member - OP
Thanks Meter 2
Posts: 34
Join Date: Mar 2014
worked perfect.
Now I need som tasker help: http://forum.xda-developers.com/show...php?p=52799192
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes