Power on when Plugged In

1,853 views
Skip to first unread message

tina...@raventelemetry.com

unread,
Nov 19, 2015, 4:48:22 PM11/19/15
to Automate
Hello,

I'm finding this app to be absolutely brilliant. I have one requirement that I haven't been able to do yet: turn on my device when it is plugged in to a power source. Using Automate, when the device is on and the fibre is running, I can reboot the device. However, I need to turn the device on when it is off. Is there any way to do this? For instance, is it possible to detect that there is a power source, and turn on?

Thanks,
Tina

Henrik Lindqvist

unread,
Nov 19, 2015, 5:35:23 PM11/19/15
to Automate, tina...@raventelemetry.com
Use the Power source plugged block. It's not possible turn on a device that's been powered off, neither the hardware nor Android support it.

tina...@raventelemetry.com

unread,
Nov 19, 2015, 10:57:01 PM11/19/15
to Automate, tina...@raventelemetry.com
Alright, I see. Thanks Henrik!

Tony G

unread,
Nov 20, 2015, 2:08:53 AM11/20/15
to Automate
Interestingly I have an older Amazon Kindle Fire, running a version of Gingerbread. It really irritates me that if the power is off and I plug it in or take out the plug, the device boots automatically. I don't think I've seen this behaviour anywhere else.

Tina - this event is not pleasant in practice, especially when walking into a room with someone sleeping, plugging in the device, and a minute later it announces startup with audio and/or an unexpected blast of light. Be careful what you ask for, you might get it.

tina...@raventelemetry.com

unread,
Nov 20, 2015, 10:00:54 AM11/20/15
to Automate
Hi Tony,

Swap tablets? I know, boot on charge is not a desirable property for personal use. However, our use case is for industry: Our tablets need to be on 24/7, and we give our tablets (along with enclosures that hide the power button) to clients. Sometimes they would shut down the entire workspace. We need the tablets to power on when their workplace receives power. Do you know any methods to make the tablets power on when plugged in? Or do you know any professionals/companies that can help? We've tried various methods on Google, but only ones we got to work are Samsung devices.

Tina

tgra...@gmail.com

unread,
Nov 22, 2015, 8:20:13 PM11/22/15
to Automate, tina...@raventelemetry.com
Sorry, this isn't my area of expertise. However, I googled for "android power on when plugged in" and it returned some good hits including this one:
http://android.stackexchange.com/questions/20021/automatically-power-on-android-when-the-charger-is-connected
That discussion and the following page also mention an app called NoMoarPowah.
http://www.lilitab.com/blogs/news/8907823-how-to-set-your-android-tablet-to-turn-on-when-connected-to-wall-power
But I don't see that in the store anymore. Be careful about installing apk's outside of the store.

HTH

tina...@raventelemetry.com

unread,
Nov 24, 2015, 4:31:09 PM11/24/15
to Automate, tina...@raventelemetry.com, tgra...@gmail.com
Hi, indeed those are good links! The method of editing the battery charging file (playlpm or lpm located in /system/bin/) to
#!/system/bin/sh
/system/bin/reboot
works for all the Samsung devices that I've tested. However, I had no luck finding the equivalent file in Acer and Asus devices, in particular, the Acer A1-840FHD, Asus Z580CA and Asus Z380KL.

Another method that seemed promising was unlocking the bootloader and writing a script to change the charge mode:
fastboot oem off-mode-charge 0 

However, that method seems to only work on Nexus devices, and when I tried it with the Asus Z380KL, it soft bricked the tablet.

I appreciate your input, and if anyone has any alternative methods, or any insights on where the battery charging file is located, please post here!

Tina
Reply all
Reply to author
Forward
0 new messages