-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keep the display mode daemon process alive
On Android 14, a separate process was spawn on every display mode request (to turn the screen off or on). But starting a java process takes time (a few hundred milliseconds), causing a noticeable latency between the request to turn the screen off (MOD+o) or on (MOD+Shift+o) and the actual power mode change. To minimize this latency, keep the process alive between requests, so that only the first one will have to spawn the process. It would be possible to spawn the process in advance, so that even the first request would be immediate, but any problem would impact all Android 14 users even without using the "turn screen off" feature. PR #4446 <#4446>
- Loading branch information
Showing
2 changed files
with
60 additions
and
37 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