From e84f3603d1a29ce5d0f613db0c7ce9efa69c5abe Mon Sep 17 00:00:00 2001 From: Ananth Raghavan Subramanian Date: Mon, 18 Jul 2022 15:16:53 -0700 Subject: [PATCH] init: Change pm_freeze_timeout Reduce /sys/power/pm_freeze_timeout to 1s from default of 20s. Data shows that the 20s timeout is rarely hit before suspend is aborted due to a wakeup/interrupt. Reducing the timeout will help with diagnosing task freezing issues and will reduce time spent attempting suspend. Bug: 239743579 Test: Successfuly boot to home, verify change in node Signed-off-by: Ananth Raghavan Subramanian Change-Id: I839764dd06ebd66110c11953baf13c06e598dd80 --- conf/init.gs201.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/init.gs201.rc b/conf/init.gs201.rc index 9951d52e..cbf3d1b5 100644 --- a/conf/init.gs201.rc +++ b/conf/init.gs201.rc @@ -788,6 +788,9 @@ on property:sys.boot_completed=1 # write serialno to battery path for pairing write /sys/class/power_supply/battery/dev_sn ${ro.boot.serialno} + # Reduce pm_freeze_timeout value + write /sys/power/pm_freeze_timeout 1000 + # IMS WiFi Calling service charonservice /system/vendor/bin/charon class main