• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Screen off timer doesn't activate when using secure settings

Mr Eric

Lurker
Hi to everyone. New to forum, so correct me if posting on wrong place. I've created tasker screen off / on profiles using prox sensor. So when i close my lid screen shuts and opening... Well opens. Using security settings. My biggest concern is that if I leave the lid open screen doesn't shut down like in 15 secs or what I've set the phones timer. So is the secure settings overriding phones own screen off timer? Should I post those tasks here?
 
Hi Mr. Eric, and welcome to the board :)

I assume that you're using the Secure Settings "Wake Device" action to, well, wake the device? That one can be a bit tricky, as it normally would set its own duration (seconds to minutes to forever). And yes, that overrides the normal timeout settings.

I'm not actually sure of a good way to handle Wake Device. I'm pretty sure that there used to be a Display On action, but it seems to have since been removed. I'm hoping someone else can provide some suggestions to help us both :D
 
I use the secure settings 'screen & keyboard lights on' to wake my device when I connect to my cars bluetooth. I've set it to stay on for 30 seconds.
 
Yeah, I've been using wake device action. Is there a some kind of other tasker plug in that could be used to set screen on? The prox sensor profile works otherwise just like I want. And yeah, my screen turns off also if I set wake screen like 15secs and don't do anything.after I use the screen it won't turn off. So any help resolving this would be more than welcome.
 
There is a bug with security settings "Wake device". It is sometimes hit or miss with turning the screen back off after using it to turn it on. I have solved this problem by adding a wait for a few seconds longer than the wake device setting and then kill app secure settings if it bugs. If it works, I have another profile that kills the task if it is still running upon the display turning off.

For example:
---------------------------------------
Profile: "Wakeon" trigger = state detects prox + state display state off
----->
Task: "Wakedevice"
%Displayon1 set to 1
wake device "Screen & Keyboard Lights On", 15 seconds.
Wait 17 secs
Kill app "Secure Settings"
%Displayon1 set to 0

Profile: "KillWakeon" trigger = event display off + state variable %Displayon1 = 1
----->
Task: "Killwakedevice"
Stop task "Wakedevice"
%Displayon1 set to 0
----------------------------------------
From my observation:
While the secure settings app is executing the "Wake Device", it will override the display timeout setting. If the app bugs, the app "secure settings" seems to hang in the background and the display will not turn off. What causes this, I have not a clue. The above example has solved this issue. So if the secure settings wake device does happen to work and display turns off then it kills the task from running further. If doesn't and bugs out, then by killing the secure settings app it will let the saved system's display time out execute. So far this is working really well for me. I hope this helps someone.
 
Last edited:
You can use Alert - Show Popup to wake your device. I use this to wake my phone from my Pebble smartwatch. I have it display a Welcome popup with a two seconds time out. It doesn't change normal time out settings.
 
For your consideration ...

Screen Off
Show Scene
Screen Off

tlaWake
A1: System Lock
A2: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A3: Variable Set [ Name:%par1 To:TEST Do Maths:Off Append:Off ]
A4: Show Scene [ Name:tlaWake Display As:Dialog Horizontal Position:100 Vertical Position:200 Animation:System Show Exit Button:Off Continue Task Immediately:On ]
A5: Wait [ MS:0 Seconds:5 Minutes:0 Hours:0 Days:0 ]
A6: Destroy Scene [ Name:tlaWake ]
A7: System Lock

Scene: tlaWake
P:1024x192 L:1024x192
Orientation: Portrait
Background Colour: #00000000
Action Bar Style: System
Title: tlaPopup
Subtitle:
Icon: null
Tab Labels:
Element: Text1/Text
Geometry:
P:0,0 1024x192 L:0,0 1024x192
Content:
Text: %par1
Text Size: 18
Text Width Scale Percent: 100
Text Colour: #FFFFFFFF
Font:
Position: Centre
Vertical Fit Mode: None
Text Format: Plain Text
Events:
Click: 59

... Thom
 
Back
Top Bottom