From 6c04c4470452f1c01646ab0981c9d3926875a355 Mon Sep 17 00:00:00 2001 From: Daniel Jacob Chittoor Date: Thu, 27 Oct 2022 22:15:51 +0530 Subject: [PATCH] sdm710-common: rootdir: Enable suspend to RAM Improves idle drain considerably. Change-Id: Iacef170a0f58ec74e6d82b89b3ae5ef60026ed07 Signed-off-by: helliscloser Signed-off-by: onettboots Signed-off-by: Sageofd6path --- rootdir/etc/init.target.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 7b1c368..39a84e6 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -78,6 +78,10 @@ on post-fs-data mkdir /data/vendor/hbtp 0750 system system mkdir /data/vendor/nnhal 0700 system system +on early-boot + # Enable suspend to RAM + write /sys/power/mem_sleep "deep" + # For cpusets initialize for Silver Only first and then Silver + Gold # Silver Only configuration cannot work with 0-7 on boot