From bfd05b69a5c9baf213085cba44f5aa76d60e74d9 Mon Sep 17 00:00:00 2001 From: Mark Salyzyn Date: Tue, 26 Sep 2017 11:10:12 -0700 Subject: [PATCH] init: shutdown,thermal shut off display immediately Remove a source of heat. Test: manual Change-Id: I9a7391ddb121b6748a4f49f4b5bfb77453ca1514 --- init/reboot.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init/reboot.cpp b/init/reboot.cpp index 049c95276..18f493a47 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp @@ -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; }