Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[tklock] Do not allow display wakeups when p-sensor state is unknown
Exceptional display on conditions cause proximity sensor power up.

We must allow time for that to happen and not act based on unknown
proximity sensor state.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Mar 15, 2019
1 parent 1a52966 commit fb4bec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tklock.c
Expand Up @@ -3797,7 +3797,7 @@ static void tklock_uiexception_rethink(void)
else if( lid_sensor_filtered == COVER_CLOSED ) {
mce_log(LL_NOTICE, "NOT UNBLANKING; lid covered");
}
else if( proximity_sensor_effective == COVER_CLOSED ) {
else if( proximity_sensor_effective != COVER_OPEN ) {
mce_log(LL_NOTICE, "NOT UNBLANKING; proximity covered");
}
else if( display_state_curr != MCE_DISPLAY_ON ) {
Expand Down

0 comments on commit fb4bec5

Please sign in to comment.