Turn Screen On bug?
Moderator: Martin
Turn Screen On bug?
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.
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?
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?
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?
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?
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?
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).
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?
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?
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?
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)
...
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?
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.
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?
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.
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?
Is working great with new options in EAP version 1.22.0-dev