init: shutdown,thermal shut off display immediately
Remove a source of heat. Test: manual Change-Id: I9a7391ddb121b6748a4f49f4b5bfb77453ca1514
This commit is contained in:
parent
92c355cc4f
commit
bfd05b69a5
|
@ -483,6 +483,8 @@ bool HandlePowerctlMessage(const std::string& command) {
|
|||
// Run fsck once the file system is remounted in read-only mode.
|
||||
run_fsck = true;
|
||||
} else if (cmd_params[1] == "thermal") {
|
||||
// Turn off sources of heat immediately.
|
||||
TurnOffBacklight();
|
||||
// run_fsck is false to avoid delay
|
||||
cmd = ANDROID_RB_THERMOFF;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue