Skip to content

Commit

Permalink
Explain why standby override is used for proximity and orientation se…
Browse files Browse the repository at this point in the history
…nsors
  • Loading branch information
spiiroin committed May 14, 2014
1 parent 6c37718 commit ceeda14
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mce-sensorfw.c
Expand Up @@ -1372,6 +1372,9 @@ static void mce_sensorfw_ps_start_sensor(void)
if( !mce_sensorfw_start_sensor(ps_name, ps_iface, ps_sid) )
goto EXIT;

/* The proximity sensor must stay active also when display is
* off and thus we need to set the standby override flag */

/* No error checking here; failures will be logged when
* we get reply message from sensord */
mce_sensorfw_set_standby_override(ps_name, ps_iface, ps_sid, true);
Expand Down Expand Up @@ -1794,6 +1797,11 @@ static void mce_sensorfw_orient_start_sensor(void)
if( !mce_sensorfw_start_sensor(orient_name, orient_iface, orient_sid) )
goto EXIT;

/* In order to have a upto date orientation state when display
* is fully powered up, mce starts orientation sensor in paralled
* with display power up; from sensord point of view the display
* is still off and thus we need to set the standby override flag */

/* No error checking here; failures will be logged when
* we get reply message from sensord */
mce_sensorfw_set_standby_override(orient_name, orient_iface, orient_sid, true);
Expand Down

0 comments on commit ceeda14

Please sign in to comment.