Turn the screen off/on based on proximity sensor when unlocked
With my Insmat flip cover, I'd really like the screen to turn off when I cover it and turn back on when I uncover it again (until it took me so long the phone locked itself already).
This would be only case for an unlocked phone.
The new event, condition -> action would be as follows:
- proximity sensor covered, phone unlocked -> turn the screen off (blank)
- proximity sensor uncovered, phone unlocked -> turn the screen on and reset respect timers as if a keepalive tap had occured
It is quite simple addition to behaviour and from what I found, it is nearly the same as how the phone work during a call. (Except for locking the touch during the call, which may or may not be implemented in this case.)
Battery concerns: From what I found out about proximity sensor, it runs all the time already. If software polling would be required for this, once a second should be quite enough at least for locking.
As I would expect this naturally from the system, I am tagging this a feature request.