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 <ananthrs@google.com>
Change-Id: I839764dd06ebd66110c11953baf13c06e598dd80
This commit is contained in:
Ananth Raghavan Subramanian 2022-07-18 15:16:53 -07:00
parent 456bf1cb47
commit e84f3603d1

View file

@ -788,6 +788,9 @@ on property:sys.boot_completed=1
# write serialno to battery path for pairing # write serialno to battery path for pairing
write /sys/class/power_supply/battery/dev_sn ${ro.boot.serialno} 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 # IMS WiFi Calling
service charonservice /system/vendor/bin/charon service charonservice /system/vendor/bin/charon
class main class main