From 3bb091aab63d17937d409d79ffcd83c98d9f4b4d Mon Sep 17 00:00:00 2001 From: Daniel Jacob Chittoor Date: Thu, 27 Oct 2022 22:15:51 +0530 Subject: [PATCH] avicii: init: Enable suspend to RAM Improves idle drain considerably. Signed-off-by: Sandeep P S --- init/init.oplus.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/init.oplus.rc b/init/init.oplus.rc index c17e012..6e4cf44 100644 --- a/init/init.oplus.rc +++ b/init/init.oplus.rc @@ -52,6 +52,9 @@ on property:sys.boot_completed=1 copy /vendor/etc/Oppo_QC_LTM_Commercial_2020_01_03.pfm /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-958228818.pfm chown system system /mnt/vendor/persist/data/pfm/licenses/1000-1000-no-exp-958228818.pfm + # Enable suspend to RAM + write /sys/power/mem_sleep "deep" + on property:sys.usb.config=adb && property:sys.usb.configfs=1 write /config/usb_gadget/g1/idVendor 0x22D9 write /config/usb_gadget/g1/idProduct 0x2769