[Galaxy S 4 Mini Android Development] HemanthJabalpuri:
I added sweep2sleep in build.prop and rebooted but sweep2sleep doesnot works....!

Also same case with init.d too

Edit:-

Add these lines to init.qcom.post_boot.sh in etc for init.d

# Init.d support
if [ -e /system/xbin/su ]; then
SU="$(ls /su/bin/su 2>/dev/null || ls /system/xbin/su) -c"
mount -o rw,remount /system && SU="" || eval "$SU mount -o rw,remount /system"
eval "$SU chmod 755 /system/etc/init.d"
eval "$SU chmod 755 /system/etc/init.d/*"
eval "$SU mount -o ro,remount /system"
ls /system/etc/init.d/* 2>/dev/null | while read xfile ; do eval "$SU /system/bin/sh $xfile" ; done
else
mount -o remount,rw -t auto /system
mount -o remount,rw -t auto /data
mount -t rootfs -o remount,rw rootfs

if [ ! -e /system/etc/init.d ]; then
mkdir /system/etc/init.d
else
chown -R root.root /system/etc/init.d
chmod -R 755 /system/etc/init.d
fi

for FILE in /system/etc/init.d/*; do
sh $FILE >/dev/null
done;

mount -t rootfs -o remount,ro rootfs
mount -o remount,rw -t auto /data
mount -o remount,ro -t auto /system
fi

For sweep2sleep make a init.d script with following

echo "1" > /sys/sweep2sleep/sweep2sleep;

For KSM

echo "1" > /sys/kernel/mm/ksm/run
echo "1" > /sys/kernel/mm/ksm/deferred_timer

For LowMemoryKiller

echo "1" > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk
echo "53059" > /sys/module/lowmemorykiller/parameters/vmpressure_file_min

For hotplug configure make a init.d script with following

HotPlug=
# alucard, msm, intelli, lazy, sleepy

if [ "$HotPlug" = "alucard" ]; then
# Enable and Set AlucardPlug Parameters
stop mpdecision
echo "1" > /sys/kernel/alucard_hotplug/hotplug_enable
elif [ "$HotPlug" = "msm" ]; then
# Enable and Set MyFluxi MSM-hotplug
stop mpdecision
echo "1" > /sys/module/msm_hotplug/msm_enabled
echo "30" > /sys/module/msm_hotplug/offline_load
echo "400" > /sys/module/msm_hotplug/fast_lane_load
elif [ "$HotPlug" = "intelli" ]; then
# Enable and Set IntelliPlug Parameters
stop mpdecision
echo "1" > /sys/module/intelli_plug/intelli_plug_active
echo "0" > /sys/module/intelli_plug/nr_run_hysteresis
# Set your own IntelliPlug Profile (Default one is Balanced)
# 0=Balanced 1=Performance 2=Conservative 3=Eco-Performance 4=Eco-Conservative
echo "0" > /sys/module/intelli_plug/nr_run_profile_sel
elif [ "$HotPlug" = "lazy" ]; then
# Enable and Set Lazyplug Parameters
stop mpdecision
echo "1" > /sys/module/lazyplug/parameters/lazyplug_active
echo "0" > /sys/module/lazyplug/parameters/touch_boost_active
# Set your own Lazyplug Profile (Default one is Balanced)
# 0=Balanced 1=Performance 2=Conservative 3=Eco-Performance 4=Eco-Conservative
echo "0" > /sys/module/lazyplug/parameters/nr_run_profile_sel
elif [ "$HotPlug" = "sleepy" ]; then
# Enable and Set Sleepy Plug Parameters
stop mpdecision
echo "1" > /sys/sleepy_plug/sleepyplug
else
echo "HotPlug not defined"
fi

For Kernel frequencies & governors

#########################
CPU_MIN=81
CPU_MAX=2052
CPU_GOV=alucard
GPU_CLOCK=627
GPU_GOV=performance
#########################
#CPU Frequencies(in Mhz) :- 81 135 189 384 486 594 702 810 918 1026 1134 1242 1350 1458 1566 1674 1728 1836 1890 1944 1998 2052
#CPU Governors :- alucard slim wheatley smartmax preservative impulse intellimm intellidemand intelliactive interactive ondemandplus powersave lionheart ondemand performance
#GPU Frequencues(in Mhz) :- 627 600 545 504 450 320 192
#GPU Governers :- performance ondemand

for a in 0 1; do
chmod 644 /sys/devices/system/cpu/cpu$a/cpufreq/scaling_min_freq
echo "$((CPU_MIN*1000))" > /sys/devices/system/cpu/cpu$a/cpufreq/scaling_min_freq
chmod 644 /sys/devices/system/cpu/cpu$a/cpufreq/scaling_max_freq
chmod 666 /sys/kernel/msm_cpufreq_limit/cpufreq_limit
echo "$((CPU_MAX*1000))" > /sys/kernel/msm_cpufreq_limit/cpufreq_limit
chmod 644 /sys/devices/system/cpu/cpu$a/cpufreq/scaling_governor
echo "$CPU_GOV" > /sys/devices/system/cpu/cpu$a/cpufreq/scaling_governor
done;
chmod 644 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
echo "$((GPU_CLOCK*1000000))" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/max_gpuclk
chmod 644 /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor
echo "$GPU_GOV" > /sys/devices/platform/kgsl-3d0.0/kgsl/kgsl-3d0/pwrscale/trustzone/governor

To make gov parameters as init.d script

#!/system/bin/sh

output=/sdcard/output.txt;
location="/sys/devices/system/cpu/cpufreq/intellidemand";

for target in $location; do
echo "if [ -d $target ]; then">> $output;
for file in $(ls $target); do
echo "echo \"`cat $target/$file`\" >" $location/$file >> $output;
done;
echo "fi" >> $output;
echo -e "\n" >> $output;
done;

It seems like links are not working. Below is my I9192 backup mirror.

AndroidFileHost.com | Download GApps, Roms, Kernels, Themes, Firmware and more. Free file hosting for all Android developers.

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

androidfilehost.com

MD5:- 6ca2f01feb5f262a7effed29764b0c97