mozilla-b2g/gaia — pull request #2683 by andreasgal (2012-07-21 09:09:01+00:00)
Title: Only listen to idle state changes when the screen is on to avoid the tim...

...er but also to avoid a race condition where the idle state switches the screen of immediately after we try to switch it on.