Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix USB cable connection related issues in display blanking policy
There is logic in mce to process charging state separately from usb cable connect state, but since the legacy logic for detecting does not work charging status has been used for things that should depend on cable connect. This delays things like turning on display to show usb mode selection dialog and makes it hard to decide how long the display should be kept on. And turning on display when mce starts up while usb cable is already attached can cause problems during 1st boot if the display state restoration occurs close to starting up of the startup wizard. Use usb mode provided by usb_moded to determine usb cable state. The usb_moded tracking logic is derived from the implentation used in dsme. Both mce and dsme use LGPL v2.1 license. Use separate display on rules for charging and cable connect changes. Do not turn on the display when cable is removed / charging stops. Do not turn on the display if usb cable is already connected when mce is started. Fix glitches in display state handling and automatic brightness tuning during mce startup. [mce] Fix USB cable connection related issues in display blanking policy. Fixes JB#25788
- Loading branch information
Showing
16 changed files
with
752 additions
and
223 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
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
Oops, something went wrong.