Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-evaluate autolock if device wakes up from suspend
When display is automatically dimmed and then blanked there is a 30 second grace period before tklock gets applied. Since the device most likely also suspends soon after blanking the screen and we do not want to wake up just to toggle the tklock state, the end of grace period is evaluated when display is about to be turned on. This can cause ipc timing problems if powerkey/doubletap is configured also to remove the tklock. Also do opportunistic grace period end detection if the device wakes up from suspend due to reasons that would not cause the display to turn on. This should make it less likely that both lock and unlock happen at the same time. [mce] Re-evaluate autolock if device wakes up from suspend
- Loading branch information
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters