DescriptionMove check for suspended displays out of common path
Checking if the displays are suspended in
DisplayConfigurator::RunPendingConfiguration is exposing a race
condition in the interaction between chrome and powerd. The original
reason for adding the check was to ensure that chrome did not attempt to
perform any modesets while the chrome os device was in a dark resume.
Since this really only happens when the display configuration changes,
we can move the check into OnConfigurationChanged. Also, to deal with
the possbility that the configuration timer was started right before the
system suspended, stop the timer in SuspendDisplays. The
DisplayConfigurator will force a probe and re-configuration on resume
anyway so stopping the timer at suspend time will not really make a
difference.
BUG=chrome-os-partner:36723, 459783
Committed: https://crrev.com/797288279c906fc0b8d89aec55bad18ad975f187
Cr-Commit-Position: refs/heads/master@{#316918}
Patch Set 1 #Patch Set 2 : update unittests #Patch Set 3 : check that SetDisplayPower and SetDisplayMode still work #
Messages
Total messages: 13 (3 generated)
|