diff --git a/conf/init.freq.userdebug.rc b/conf/init.freq.userdebug.rc new file mode 100644 index 00000000..0eb79beb --- /dev/null +++ b/conf/init.freq.userdebug.rc @@ -0,0 +1,69 @@ +# Non Persistent Soft Max Freq +on property:vendor.softmaxfreq.cl0=* + write /sys/devices/platform/exynos-acme/freq_qos_max "0 ${vendor.softmaxfreq.cl0}" + +on property:vendor.softmaxfreq.cl1=* + write /sys/devices/platform/exynos-acme/freq_qos_max "4 ${vendor.softmaxfreq.cl1}" + +on property:vendor.softmaxfreq.cl2=* + write /sys/devices/platform/exynos-acme/freq_qos_max "8 ${vendor.softmaxfreq.cl2}" + +on property:vendor.softmaxfreq.bci=* + write /sys/devices/platform/170000a0.devfreq_bci/devfreq/170000a0.devfreq_bci/exynos_data/soft_max_freq "${vendor.softmaxfreq.bci}" + +on property:vendor.softmaxfreq.dsu=* + write /sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/exynos_data/soft_max_freq "${vendor.softmaxfreq.dsu}" + +on property:vendor.softmaxfreq.mif=* + write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/soft_max_freq "${vendor.softmaxfreq.mif}" + +# Persistent Soft Max Freq overrides +on property:persist.vendor.softmaxfreq.cl0=* + setprop vendor.softmaxfreq.cl0 "${persist.vendor.softmaxfreq.cl0}" + +on property:persist.vendor.softmaxfreq.cl1=* + setprop vendor.softmaxfreq.cl1 "${persist.vendor.softmaxfreq.cl1}" + +on property:persist.vendor.softmaxfreq.cl2=* + setprop vendor.softmaxfreq.cl2 "${persist.vendor.softmaxfreq.cl2}" + +on property:persist.vendor.softmaxfreq.bci=* + setprop vendor.softmaxfreq.bci "${persist.vendor.softmaxfreq.bci}" + +on property:persist.vendor.softmaxfreq.dsu=* + setprop vendor.softmaxfreq.dsu "${persist.vendor.softmaxfreq.dsu}" + +on property:persist.vendor.softmaxfreq.mif=* + setprop vendor.softmaxfreq.mif "${persist.vendor.softmaxfreq.mif}" + +on property:vendor.softmaxfreq.all=* + setprop vendor.softmaxfreq.cl0 "9999999" + setprop vendor.softmaxfreq.cl1 "9999999" + setprop vendor.softmaxfreq.cl2 "9999999" + setprop vendor.softmaxfreq.bci "9999999" + setprop vendor.softmaxfreq.dsu "9999999" + setprop vendor.softmaxfreq.mif "9999999" + +on property:vendor.lockfreq.max=* + write /sys/devices/platform/exynos-acme/freq_qos_min "0 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_max "0 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_min "0 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_min "4 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_max "4 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_min "4 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_min "8 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_max "8 9999999" + write /sys/devices/platform/exynos-acme/freq_qos_min "8 9999999" + write /sys/devices/platform/170000a0.devfreq_bci/devfreq/170000a0.devfreq_bci/exynos_data/soft_max_freq "9999999" + write /sys/devices/platform/170000a0.devfreq_bci/devfreq/170000a0.devfreq_bci/exynos_data/debug_scaling_devfreq_min "9999999" + write /sys/devices/platform/170000a0.devfreq_bci/devfreq/170000a0.devfreq_bci/exynos_data/debug_scaling_devfreq_max "9999999" + write /sys/devices/platform/170000a0.devfreq_bci/devfreq/170000a0.devfreq_bci/exynos_data/debug_scaling_devfreq_min "9999999" + write /sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/exynos_data/soft_max_freq "9999999" + write /sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/exynos_data/debug_scaling_devfreq_min "9999999" + write /sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/exynos_data/debug_scaling_devfreq_max "9999999" + write /sys/devices/platform/17000090.devfreq_dsu/devfreq/17000090.devfreq_dsu/exynos_data/debug_scaling_devfreq_min "9999999" + write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/soft_max_freq "9999999" + write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/debug_scaling_devfreq_min "9999999" + write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/debug_scaling_devfreq_max "9999999" + write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/debug_scaling_devfreq_min "9999999" + diff --git a/conf/init.zuma.rc b/conf/init.zuma.rc index 7f616eb3..84ca91b1 100644 --- a/conf/init.zuma.rc +++ b/conf/init.zuma.rc @@ -981,16 +981,6 @@ on post-fs-data && property:ro.vendor.factory=1 chmod 666 /sys/class/backlight/panel0-backlight/local_hbm_mode chmod 666 /sys/class/backlight/panel0-backlight/hbm_mode -# Persistent Soft Max Freq overrides -on property:persist.vendor.softmaxfreq.cl0=* - write /sys/devices/platform/exynos-acme/freq_qos_max "0 ${persist.vendor.softmaxfreq.cl0}" - -on property:persist.vendor.softmaxfreq.cl1=* - write /sys/devices/platform/exynos-acme/freq_qos_max "4 ${persist.vendor.softmaxfreq.cl1}" - -on property:persist.vendor.softmaxfreq.cl2=* - write /sys/devices/platform/exynos-acme/freq_qos_max "6 ${persist.vendor.softmaxfreq.cl2}" - # UFS on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running # Enable UFS powersaving in Off Mode Charger diff --git a/device.mk b/device.mk index 1a48a595..80afc5c7 100644 --- a/device.mk +++ b/device.mk @@ -282,6 +282,8 @@ PRODUCT_COPY_FILES += \ ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) PRODUCT_COPY_FILES += \ device/google/zuma/conf/init.debug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.debug.rc +PRODUCT_COPY_FILES += \ + device/google/zuma/conf/init.freq.userdebug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.freq.userdebug.rc endif # Recovery files