Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Assume lid sensor is broken until it has been switch to open position
Broken sensor hw / kernel drivers can make available lid sensors that are permanently locked to closed position. Ignore lid closed events until the sensor has been observed to flip into open position. Add lid_sensor_is_working_pipe datapipe for tracking this state and use a flag file to keep the status over mce / device restarts. Initialize lid sensor & policy datapipes to undefined state instead of open state, but logically treat undefined and open as equals. Replace old code that unconditionally forced lid sensor state to open position with evdev check that retrieves actual sensor state if it is available. [mce] Assume lid sensor is broken until it has been switch to open position. Contributes to JB#29011
- Loading branch information
Showing
6 changed files
with
138 additions
and
40 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