Page 1 of 1

Turn Screen On bug?

Posted: 15 Feb 2014 17:31
by colabi
I don't know if is a bug or normal behavior

Action: Lock Device
Action: Sleep > 3s
Action: Turn Screen On
Action: Lock Device

After execution the screen will turn off, after 3s, the screen turn on briefly (as expected) but, afer 4s~5s screen turn on again instead of remaining off.

Re: Turn Screen On bug?

Posted: 15 Feb 2014 20:57
by MURTUMA
Why would you want to turn screen on briefly? I don'tfind any sense in that. Does single lock action cause this?

Re: Turn Screen On bug?

Posted: 15 Feb 2014 21:23
by colabi
My phone don't have LEDs for notifications of missed calls, sms, so I want to create a flow showing a white overlay briefly

Re: Turn Screen On bug?

Posted: 16 Feb 2014 10:13
by Martin
There have been reports that Lock Device on some phones turned off the screen and then quickly turned the screen on again.
Adding actions Sleep 1s and Lock Device again did work on a Samsung device.

Your flow would become something like this:
Action: Lock Device
Action: Sleep > 3s
Action: Turn Screen On
Action: Sleep 1s (required on a Nexus 5 to actually turn the screen on)
Action: Lock Device
Action: Sleep 1s
Action: Lock Device


Is this working on your device? What device/ROM are you using?

Re: Turn Screen On bug?

Posted: 16 Feb 2014 11:04
by colabi
Hi Martin, thanks

LG P970 ICS 4.0.4

I don't think that is a problem with Lock Device in my case; if I execute a flow with only Lock Device action, phone remain off.
With your suggestion, same behavior: phone turn on after 4s~5s (not quickly).

Re: Turn Screen On bug?

Posted: 16 Feb 2014 12:22
by Martin
What happens when you execute following flow:
Action: Lock Device
Action: Sleep > 3s
Action: Turn Screen On
Action: Sleep 10s
Action: Lock Device

Will the screen also turn on again? If yes, with about the same timing (after ~4-5s)?

Are you using any other actions Turn Screen On in other flows that might interfere with this flow?

Re: Turn Screen On bug?

Posted: 16 Feb 2014 12:52
by colabi
No other actions Turn Screen On in other flows.

...
Action: Turn Screen On
Action: Sleep 10s
Action: Lock Device
screen remain off

...
Action: Turn Screen On
Action: Sleep 5s
Action: Lock Device
screen remain off

...
Action: Turn Screen On
Action: Sleep 4s
Action: Lock Device
screen remain off
screen turn on again

...
Action: Turn Screen On
Action: Sleep 3s
Action: Lock Device
screen remain off
screen turn on again

(same for 3s, 1s)

Re: Turn Screen On bug?

Posted: 16 Feb 2014 13:18
by Martin
Thanks for testing.
This probably needs a new setting in action Turn Screen On that specifies how long the action should turn the screen on. It currently uses 5s internally which seems to cause the trouble on your LG ROM. I did not add a setting yet because many ROMs ignore this value.

If your device is rooted, you could replace action Lock Device with an action Execute Root Command: input keyevent 26 which simulates pressing the power button. I'm not sure if this works around the problem but it might be worth a try.

Re: Turn Screen On bug?

Posted: 16 Feb 2014 15:43
by colabi
Action: Execute Root Command: input keyevent 26
Action: Sleep > 3s
Action: Turn Screen On
Action: Execute Root Command: input keyevent 26
same behavior: phone turn on after 4s~5s

A new setting will be great, thanks anyway
Maybe a new action to flash screen briefly for missed calls notifications (for devices without leds)
Or better, an action that turn on only touch buttons lights.

Re: Turn Screen On bug?

Posted: 04 Mar 2014 23:43
by colabi
Is working great with new options in EAP version 1.22.0-dev