Page 1 of 1

Wake up/hibernate w key on/off

Posted: 13 Oct 2018 00:02
by bmccann101
Hello, I have a Samsung tab4 installed into a vehicle using a very decent vehicle launcher.. It will remain on indefinitely, but I'd like to :

Immediately hibernate when the key is off..




Wake up with key on, and also
Set screen time out to never w key on..


Thanks for any help.

Re: Wake up/hibernate w key on/off

Posted: 13 Oct 2018 06:14
by Desmanto
I think this should be posted in the user help section instead.

Should clear up some ambiguity. Hibernate means put the screen to off (phone sleep), but still on right (only screen off). The key on means you start the car and key off is stop the car.

I assume the tab has been connected to the car charger all the time. So when the car is on, the tab is charging and when the car is off, stop charging.
Use trigger power connected and action Set Screen time out to never. Add another action to turn the screen on, and unlock the device if you set lockscreen.
At another flow, power disconnected, and action lock device. Done.

Re: Wake up/hibernate w key on/off

Posted: 09 Aug 2019 18:45
by fytos
Is there a way to hibernate the phone as you say?
There are a lot of apps that set the display to 15 seconds or 5 but I want to set it in a flow so I can turn the display off straight'way without a 5 seconds delay. I used the normal turn off but I have to put a password to turn it on again :)

Re: Wake up/hibernate w key on/off

Posted: 10 Aug 2019 14:13
by Desmanto
AFAIK, Latest android version doesn't allow you to set the display timeout lower than 5. You can set it to 1, but it still take at least 5 seconds to get the screen off.

If you need to lock immediately, just use the normal action lock device or Control UI : lockScreen() if you have Android Pie. Directly set the keyguard state to off, enable the helper flow (see next). Then at next unlock, use trigger user present in helper flow and enable the keyguard back, disable the helper flow. So the keyguard only disabled when you use action to lock device in your hibernate flow. When you turn of the screen normally, the keyguard stays locked.