Quantcast
Viewing all articles
Browse latest Browse all 275

[FIX] Bricked kernel fix for kernel tuner users

Some people that used kernel tuner had some problems with kernel tuner! it worked good for sometime but after a specified time the min freq would stick to 918 mhz(boost freq as showp has explained) for both cores and not switching lower! This would make my phone very warm and drain my battery very fast! so i came up with a solution to reset the cpu min freq when you turn on/of your screen! This script i have made has worked very good and battery is in its best with this truly beast kernel! To install the script:
1.copy it in your sdcard
2.save it to a file like S98bricked_fix
3.push it in /system/etc/init.d
4. change permisions
5. reboot or run from terminal emulator
su [enter]
exec /system/etc/init.d/S98bricked_fix [enter]
6.while in terminal emulatur turn on off the screen to see if the script works! you should see cpu freq fixed and after turn on cpu freq refixed! :D
Ps:Kernel tuner is not needed in this kernel :)

The script:


#!/system/bin/sh
#
# ================================================== ============
# ================================================== ============
# begining of bricked fix loop by Mr.Nigma
# ================================================== ============
# ================================================== ============


(while [ 1 ];
do


# ================================================== ============
# ================================================== ============
# ================================================== ============
# reset low when screen on
# ================================================== ============
# ================================================== ============
# ================================================== ============

AWAKE=`cat /sys/power/wait_for_fb_wake`;
if [ $AWAKE = "awake" ]; then
sleep 2 && chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ;
echo "384000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ;
echo cpu0 freq fixed;
AWAKE=;
fi;


# ================================================== ============
# ================================================== ============
# ================================================== ============
# reset low whwn screen off
# ================================================== ============
# ================================================== ============
# ================================================== ============

SLEEPING=`cat /sys/power/wait_for_fb_sleep`;
if [ $SLEEPING = "sleeping" ]; then

sleep 2 && chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ;
echo "384000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq ;
echo cpu0 freq refixed;
SLEEPING=;
fi;
done &);

Viewing all articles
Browse latest Browse all 275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>