Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b66decc4 authored by Steven Moreland's avatar Steven Moreland Committed by TARKZiM
Browse files

kitakami-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
parent 17e04880
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -39,3 +39,5 @@ service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.k
    class hal
    user system
    group system
    # shutting off lights while powering-off
    shutdown critical