Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not broadcast intermediate tklock changes over D-Bus
If mce side state machines oscillate between tklock on and off, it can cause problems due to ui side trying to react to intermediate states. Use idle callback to delay sending of tklock state information so that only the final tklock state is communicated outside mce process. Hold a wakelock until the dbus ipc is actually made plus couple of seconds to make it more likely for ui side to have time to process the state change before device is allowed to suspend. Also clear last send state when tklock change requests are made over D-Bus. This way the state mce arrived at is always broadcast even if the request ends up getting ignored. [mce] Do not broadcast intermediate tklock changes over D-Bus
- Loading branch information
Showing
2 changed files
with
123 additions
and
17 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