Turn Screen On bug?

Post your questions and help other users.

Moderator: Martin

Post Reply
colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Turn Screen On bug?

Post by colabi » 15 Feb 2014 17:31

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.

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Turn Screen On bug?

Post by MURTUMA » 15 Feb 2014 20:57

Why would you want to turn screen on briefly? I don'tfind any sense in that. Does single lock action cause this?

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Turn Screen On bug?

Post by colabi » 15 Feb 2014 21:23

My phone don't have LEDs for notifications of missed calls, sms, so I want to create a flow showing a white overlay briefly

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Turn Screen On bug?

Post by Martin » 16 Feb 2014 10:13

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?

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Turn Screen On bug?

Post by colabi » 16 Feb 2014 11:04

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).

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Turn Screen On bug?

Post by Martin » 16 Feb 2014 12:22

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?

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Turn Screen On bug?

Post by colabi » 16 Feb 2014 12:52

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)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Turn Screen On bug?

Post by Martin » 16 Feb 2014 13:18

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.

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Turn Screen On bug?

Post by colabi » 16 Feb 2014 15:43

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.

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Turn Screen On bug?

Post by colabi » 04 Mar 2014 23:43

Is working great with new options in EAP version 1.22.0-dev

Post Reply