diff options
-rwxr-xr-x | rootdir/etc/init.qcom.power.rc | 21 | ||||
-rwxr-xr-x | rootdir/etc/init.qcom.rc | 7 |
2 files changed, 14 insertions, 14 deletions
diff --git a/rootdir/etc/init.qcom.power.rc b/rootdir/etc/init.qcom.power.rc index 0eb691b..27d57ca 100755 --- a/rootdir/etc/init.qcom.power.rc +++ b/rootdir/etc/init.qcom.power.rc @@ -30,6 +30,9 @@ on charger write /sys/module/lpm_levels/parameters/sleep_disabled 0 on enable-low-power + # Set ioscheduler + setprop sys.io.scheduler "bfq" + # Disable thermal hotplug to switch governor write /sys/module/msm_thermal/core_control/enabled 0 @@ -120,6 +123,13 @@ on enable-low-power write /proc/sys/vm/swappiness 5 write /proc/sys/vm/vfs_cache_pressure 60 + # Update cpusets now that boot is complete and we want better load balancing + write /dev/cpuset/top-app/cpus 0-3 + write /dev/cpuset/foreground/boost/cpus 0-2 + write /dev/cpuset/foreground/cpus 0-2 + write /dev/cpuset/background/cpus 0 + write /dev/cpuset/system-background/cpus 0-2 + service charger /charger class charger group system graphics @@ -128,14 +138,5 @@ service charger /charger on property:init.svc.recovery=running trigger enable-low-power -on property:dev.bootcomplete=1 - # Set ioscheduler - setprop sys.io.scheduler "bfq" - - # Update cpusets now that boot is complete and we want better load balancing - write /dev/cpuset/top-app/cpus 0-3 - write /dev/cpuset/foreground/boost/cpus 0-2 - write /dev/cpuset/foreground/cpus 0-2 - write /dev/cpuset/background/cpus 0 - write /dev/cpuset/system-background/cpus 0-2 +on property:sys.boot_completed=1 trigger enable-low-power diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index bf00cd8..3664578 100755 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -525,10 +525,6 @@ on post-fs-data chown radio radio /data/vendor/radio/db_check_done chmod 0660 /data/vendor/radio/db_check_done -on property:dev.bootcomplete=1 - # Selinux status in settings - chmod 0644 /sys/fs/selinux/enforce - # start camera server as daemon service qcamerasvr /vendor/bin/mm-qcamera-daemon class main @@ -722,6 +718,9 @@ on property:sys.boot_completed=1 chown media audio /sys/kernel/wcd_cpe0/fw_name + # Selinux status in settings + chmod 0644 /sys/fs/selinux/enforce + on property:persist.radio.atfwd.start=false stop atfwd |