From f41efd8883974813a73f6547fc65a72983acd641 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Thu, 6 Oct 2022 20:06:40 +0100 Subject: [PATCH] rosemary: initialize powerHAL when boot is completed --- rootdir/etc/init.mt6785.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init.mt6785.rc b/rootdir/etc/init.mt6785.rc index eca8d8a..f6b6a98 100644 --- a/rootdir/etc/init.mt6785.rc +++ b/rootdir/etc/init.mt6785.rc @@ -1077,6 +1077,10 @@ on property:sys.boot_completed=1 write /sys/devices/system/cpu/cpufreq/policy0/scaling_governor "schedplus" write /sys/devices/system/cpu/cpufreq/policy4/scaling_governor "schedplus" +# initialize powerHAL when boot is completed +on property:sys.boot_completed=1 + setprop vendor.mediatek.powerhal.init 1 + #service dpfd /vendor/bin/dpfd # user root # group system media