diff options
| author | Steven Moreland <smoreland@google.com> | 2018-03-16 10:23:14 -0700 |
|---|---|---|
| committer | Georg Veichtlbauer <georg@vware.at> | 2023-05-21 22:24:43 +0200 |
| commit | a1902f5c88a2cfdf8eccbc977d15d74c6ff96352 (patch) | |
| tree | c063da52b0327a075659a3ef846641f5e944346c | |
| parent | ef256a8204e0b70e27b72015841d3d60b4cb4148 (diff) | |
msm8998-common: light: mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.
Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
including when an artificial 5s delay is inserted when
the phone normally fscks (which can also be quick)
Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
Merged-In: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
| -rw-r--r-- | light/android.hardware.light@2.0-service.msm8998.rc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/light/android.hardware.light@2.0-service.msm8998.rc b/light/android.hardware.light@2.0-service.msm8998.rc index 1a7329c3..3a3e0048 100644 --- a/light/android.hardware.light@2.0-service.msm8998.rc +++ b/light/android.hardware.light@2.0-service.msm8998.rc @@ -3,6 +3,8 @@ service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.m class hal user system group system + # shutting off lights while powering-off + shutdown critical on boot # Backlight |
