[Q] Question about Calkulin's init.d Undervolt Scripts - Samsung Epic 4G Touch

Hey All,
I'm new here so sorry if this has already been asked. I was poking around the init.d scripts Calkulin has put up and I noticed that it doesn't seem to work. Here's the "4undervolt" script which you can find in /system/etc/init.d.
Code:
#!/system/bin/sh
#
# Created by Calkulin
# Epic 4G Touch -50mV v1.1
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
UV_TABLE=`cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table | wc -l`
CPU_MAX_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
STEPS_1600_200="1450 1350 1225 1125 1025 925 875"
STEPS_1704_200="1500 1450 1400 1350 1225 1125 1025 925 875"
if [ $UV_TABLE = "7" ] && [ $CPU_MAX_FREQ = "1600000" ]; then
echo $STEPS_1600_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
elif [ $UV_TABLE = "9" ] && [ $CPU_MAX_FREQ = "1704000" ]; then
echo $STEPS_1704_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
fi
fi
Well I just flashed 2.8.1 (I used to be on 2.5.1 with the same issue), and it seems like the UV_TABLE, which is supposed to be in /sys/devices/system/cpu/cpu0/cpufreq/, isn't there. This means that neither the if nor the elif is being taken, which basically means the script is having no effect.
Am I reasoning correctly? If so, it seems like it would affect a lot of people who think they're undervolting but really aren't. Could someone with more familiarity Android possibly take a look?
Also, is there a way for me to check the current voltage at the CPU?
Thanks!

If no one can help me, could anyone point me to somewhere I can get my question answered?
It seems like a lot of people could be having this problem if they're expecting the init.d scripts to work when they're really doing nothing.
Thanks.

Check the permissions of the scripts. Make sure they are executable

The permissions are rwxr-xr-x, so they do indeed seem executable. In fact I can run them from a terminal emulator and they don't print anything out. This also leads me to believe that while they're running, they have no effect.

parth750 said:
The permissions are rwxr-xr-x, so they do indeed seem executable. In fact I can run them from a terminal emulator and they don't print anything out. This also leads me to believe that while they're running, they have no effect.
Click to expand...
Click to collapse
Interesting. I'm running those scripts in Blazer ROM, and they work really well. Hopefully someone on Calk's can square you away

Well thanks for taking a look. I actually modified the script slightly, just to make sure I wasn't crazy, so that if the first if wasn't taken it would print "Script had no effect". I just ran the modified script, and it does print just that.
Maybe after one of Calk's kernel changes he lost init.d support? I'm running the stock Desperado - I guess it doesn't have support.

Ah, I figured it out. For the last several months, Calk has been running on Stock kernels repackaged by Rouge. This obviously means the UV_mV_table won't be there, which prevents undervolting. I flashed to the latest Hitman kernel and everything works like a charm!

parth750 said:
Ah, I figured it out. For the last several months, Calk has been running on Stock kernels repackaged by Rouge. This obviously means the UV_mV_table won't be there, which prevents undervolting. I flashed to the latest Hitman kernel and everything works like a charm!
Click to expand...
Click to collapse
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch

Vandam500 said:
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Click to expand...
Click to collapse
I can't remember which version is which but I believe there was one that required Tegrak to undervolt.
Sent from my SPH-D710 using xda premium

Vandam500 said:
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Click to expand...
Click to collapse
Calkulin's ROMs from 2.5.1 to 2.8.1 (maybe more, I haven't checked) use a stock kernel, which means no undervolting and any undervolt zips you do flash will have no effect.
EDIT: Just ran through the changelog. Looks like he's been using a stock kernel since v2.0.1a.

I wasn't seeing much difference from flashing the -100 and -50 scripts on 2.8.1 so I switched to Hitman kernel, flashed the stock mV script, and use SetCpu instead, now it seems to drain slower.
Transmission sent from a Galaxy S II with XDA Premium

maybe one of you guys can answer this for me so i dont have to post a new thread as the search brings me to this thread for the question i have.
is it as easy as uninstalling setCPU and re-flashing a kernel to get back my stock undervolt settings? or do i have to reflash the ROM?
i am running the latest blazer 3.8 with gunslinger kernel

If you're using SetCPU to change voltages, and you don't remember stock voltages, you could always reflash your kernel. Make sure you uncheck SetCPU's "Set on boot" options first.
Team Rogue's Stock kernels feature init.d support, which means Calk's scripts would work... make sure you don't have a conflicting program installed, and that the correct permissions are in place for the folder and the scripts.

parth750 said:
Hey All,
I'm new here so sorry if this has already been asked. I was poking around the init.d scripts Calkulin has put up and I noticed that it doesn't seem to work. Here's the "4undervolt" script which you can find in /system/etc/init.d.
Code:
#!/system/bin/sh
#
# Created by Calkulin
# Epic 4G Touch -50mV v1.1
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
UV_TABLE=`cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table | wc -l`
CPU_MAX_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
STEPS_1600_200="1450 1350 1225 1125 1025 925 875"
STEPS_1704_200="1500 1450 1400 1350 1225 1125 1025 925 875"
if [ $UV_TABLE = "7" ] && [ $CPU_MAX_FREQ = "1600000" ]; then
echo $STEPS_1600_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
elif [ $UV_TABLE = "9" ] && [ $CPU_MAX_FREQ = "1704000" ]; then
echo $STEPS_1704_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
fi
fi
Well I just flashed 2.8.1 (I used to be on 2.5.1 with the same issue), and it seems like the UV_TABLE, which is supposed to be in /sys/devices/system/cpu/cpu0/cpufreq/, isn't there. This means that neither the if nor the elif is being taken, which basically means the script is having no effect.
Am I reasoning correctly? If so, it seems like it would affect a lot of people who think they're undervolting but really aren't. Could someone with more familiarity Android possibly take a look?
Also, is there a way for me to check the current voltage at the CPU?
Thanks!
Click to expand...
Click to collapse
Based on my test, no init.d script was running at least on ICS. It's because there's something not working on the repacked kernel. There's workaround of this - check this out.
http://forum.xda-developers.com/showthread.php?t=1610741

Related

[Kernel] Gorilla O/C Kernel Overclock MYTOUCH 4G to 1.7 ghz Upated 1/4/2011

CURRENT VERSION IS v2.0
I used the work of Coolbho3000 from the G2 thread to do most of this, so I am crediting him here for his work.
Download stock kernel to revert back!
This kernel is only good for the stock shipping ROM and Iced Glacier.
Unzip the zImage and bcm4329.ko file.
In terminal Type: adb reboot bootloader,
Then: fastboot flash zimage /path/to/zImage
Then: fastboot reboot
Now just like in the G2 thread, your wifi will be broken, so following the instructions from that thread:
adb push bcm4329.ko /sdcard/bcm4329.ko
adb shell
su
mount -o remount,rw /dev/block/mmcblk0p25 /system
cat /sdcard/bcm4329.ko > /system/lib/modules/bcm4329.ko
Now your wifi will work.
I just uploaded a script that you can use with Gscript (get it in the market). If you copy the bcm4329.ko to the root of your sd card and run my script it will load the wifi module and fix your wifi.
Make a folder on your sd card called: gscript. Download my script and put it in this folder. Download gscript lite or paid from the market. open the app, click menu, add script. choose the wifi_driver_gscript, click load file. All you do now is open gscript and click the script, it runs very fast and fixes your wifi!
You still have to fastboot flash the zImage. For now anyway.
As usual I am not responsible if your phone breaks!
Enjoy the Overclock!!!!
Remember Everyone's silicon is not equal. Some will do great all way up to the top. Others will lock and freeze and have to scale the freq. down!
Source code here on Github
There is a donate link in signature if you appreciate my work.
If you haven't already, get a copy of SetCPU from the market to thank Coolbho3000 for all of his work. Without him we would not be overclocking like we do today!
Credits: scotty2 and #G2Root, Coolbho3000, Pershoot(helped me learn how to compile these), Cyanogen, Kmobs(for getting CM working on our phone), anyone I missed, sorry.
Kernels are on my site. AS of now you must get the proper Kernel for your ROM. There is a Stock kernel that should work on everything except CM. The CM kernel only works on CM. They both have the same Voltage's and Frequencies. Come to my Site and go to the Kernels Page and get them NOW!
Gorilla Development Site
Release Version 2.0 Come and get it here
Change Log is now on my site.
Latest Kernel based off of HTC source.
Not in Update.zip format yet.
Will upload update.zip version shortly.
Version-Beta-1.02
Get it here!
-Now built from CM source (Let me know if it breaks your video playback)
-Changed frequency steps
-Tweaked Voltages for stability
-BFQ Scheduler
-Interactive Governor added
-O2 level compiler optimizations
-set to 806400 on boot
-Voltages at low end are lowered - high end raised (battery life should be good at around 1ghz or lower)
-Update.zip format
Thank zebrapositions for the Update.zips! Get Update.zip Here!
You can get my kernel in the TeamSilence Rom.
Gorilla-Kernel-betaV1.0
This kernel is Undervolted. The values are based off of Pershoot's Undervolt Values for the G2.
Max clock is 1.600ghz Max voltage is 1275.
This kernel boots at 806mhz.
Gorilla-kernel-betaV05
This is much closer to the original voltages. The lowered voltages were causing too many freezes. The phone needs the Juice apparently. You can ramp this kernel all the way to max freq. without freezing (I can anyway).
The highest Freq. 1.7ghz may not work for everyone. Since it boots at 1.113 if it freezes up you can just pull the battery and reboot and then top your clock out at 1.6ghz.
Gorilla-Kernel-betav002
CFQ instead of deadline.
EXT4 support
Conservative Governor.
Max clock speed 1.612Ghz.
Set to 1113600 on boot.
Amazing , I don't even have the device and I'm thankful!
I hereby proclaim my love for you....both for bringing something new to us MT4G users, and being one of the few people to start doing things for this community.
Link?
Do u have to have a custom rom to overclock or just a rooted phone and then overclock it. Bec i am going to wait for good roms. I just want to overclock it.
Wow.I'm so stoked..I will be doing this tomorrow for sure! Thank you!
Sent from my HTC Glacier using XDA App
where's the link?
O btw Gorilla, you have 12 hours to post your source or the thread is closed. Sorry but rules are rules
Is there anyway I can use the terminal emulator to do everything if so can u please put up the commands for it.. I DoNT HAVE A CoMPUTER RIGHT NOW JUST SOLD IT...THANKS
Sent from my HTC Glacier using XDA App
Is there a way to adjust the speed, and voltage?
hi what is the voltage for the cpu set at? in Mv? and i am not able to set the speed, using setcpu. not too stable at 1.7 Ghz... i had a couple reboots heheheh
Same here just my phone.will someone put up the terminal command s
aoant23 said:
Is there anyway I can use the terminal emulator to do everything if so can u please put up the commands for it.. I DoNT HAVE A CoMPUTER RIGHT NOW JUST SOLD IT...THANKS
Sent from my HTC Glacier using XDA App
Click to expand...
Click to collapse
Sent from my HTC Glacier using XDA App
I flashed but I'm not able to use interactive or set any profile. Makes the phone hella fast but I'm scared its gonna heat up my phone with it running 1.7ghz all time
Sent from my HTC Glacier using XDA App
Yea, if I can't use profiles, this is risky. Ill give it a shot and post results.
{ 1017600, PLL_2, 3, 0, 192000, 1200, VDD_RAW(1200) },
{ 1113600, PLL_2, 3, 0, 192000, 1200, VDD_RAW(1200) },
{ 1209600, PLL_2, 3, 0, 192000, 1200, VDD_RAW(1200) },
{ 1305600, PLL_2, 3, 0, 192000, 1200, VDD_RAW(1200) },
{ 1401600, PLL_2, 3, 0, 192000, 1300, VDD_RAW(1300) },
{ 1497600, PLL_2, 3, 0, 192000, 1300, VDD_RAW(1300) },
{ 1612800, PLL_2, 3, 0, 192000, 1350, VDD_RAW(1350) },
{ 1708800, PLL_2, 3, 0, 192000, 1350, VDD_RAW(1350) },
These are the modifications, they are the same as the ones in the Coolbh3000 mods for the G2. I put in the freq all the way to 1.7 where he commented them out on his G2 Kernel.
My source is loading to Git now. I am also going to post a stock kernel with the wifi module so folks have it revert back too.
Gr8gorilla said:
These are the modifications, they are the same as the ones in the Coolbh3000 mods for the G2. I put in the freq all the way to 1.7 where he commented them out on his G2 Kernel.
My source is loading to Git now. I am also going to post a stock kernel with the wifi module so folks have it revert back too.
Click to expand...
Click to collapse
Thanks for your work on this kernel, it is much appreciated!
Anyway you can make this into a flashable zip?
flashed and profiles work, only has userspace...ondemand...performance governers. 56+ mflops in linpack, 2700 quadrant, phones getting a little hot we'll see how temp holds. I may have to revert back to kingxklick modules atr 1.5ghz.
how did you get the kernel to be stable on the MT4G i flashed mine and it locks up so i reverted back to the kingklicks 1.5... is there any special things you did to install this kernel?
aznpr1de808 said:
how did you get the kernel to be stable on the MT4G i flashed mine and it locks up so i reverted back to the kingklicks 1.5... is there any special things you did to install this kernel?
Click to expand...
Click to collapse
could be the freq is too high for all phones. I am compiling a version now with a few minor tweaks, and clocked to 1.6ghz. This new kernel will also set itself to 1113600 on boot for safety.
cool thats like it'll work better anyways... 1.7 just seems like alittle much this soon in development lol
jjlean said:
Same here just my phone.will someone put up the terminal command s
Click to expand...
Click to collapse
I haven't been able to get the Koush anykernel updater working with this yet. If I do I will certainly post a flashable version for everyone.

[KERNEL] [4.2.x] [GSM/LTE/CDMA] ⇒☆007☆ v3.7.1

·:*¨¨*:·..·:*¨☆007☆·:*¨¨*:·..·:*¨
straight from The Land of Smiles
Jame Bond kernels have always been about battery efficiency without sacrificing speed...
-latest version-v3.7.1
☆★☆★☆
-linaro gcc
-some debugging disabled
-undervolted
-interactive governor (default) is recommended
-GPU set to 307MHz
-boots to 1.2 (oc to 1.3)
-cm color control
-eze sound control
-imoseyon gamma control
-installation/Tweaks (colors)
Click to expand...
Click to collapse
-uv settings
Click to expand...
Click to collapse
-protips
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
note: please "rate" the thread
Thank you to those that have! If you are new to this thread, browse through the pages. I always try to answer questions quickly and thoroughly, as well as provide a stable kernel. If this kernel doesn't have the "features" you are looking for, or you have seen a cool new mod, just ask and I will try to accommodate (or at least give a reason why not)
thanks for your time -og
acronyms, notes, etc.
deprecated kernels
***************************************************************************************************************************************
4.2.x kernel(s)
1.2/3.5GHz◊GPU 307MHz
☆007☆ v3.7.1
Click to expand...
Click to collapse
4.1.x kernel(s)
that thae
1.2/3.5GHz◊GPU 307MHz
☆Jame Bond☆ v3.4
1.2/3.5GHz◊GPU 307MHz
☆Jame Bond☆ v3.3
mirror
khlang
1.2/3.5GHz◊GPU 307MHz
☆Jame Bond☆ v3.4.6
Click to expand...
Click to collapse
_____________________________________________________________________
thanks to coolbho3000 for his patches
support setcpu
» kernel source
» additional source
Control your Android phone's CPU! SetCPU for Root Users
installation
2 ways...
-download and extract boot.img from zip...non-ak versions
-enter fastboot mode by (with phone off) press and hold volume up&down and then power
then to test (reverts on reboot)
Code:
fastboot boot boot.img
to flash
Code:
fastboot flash boot boot.img
or
-download to sd card and flash from recovery
tweaks
version 3.7.x has several "tweaks" that are controlled in system/etc/init.d/007tweaks
-color control
-gamma control
-volume boost
-high performance sound
everything boots to stock settings
included is system/etc/init.d/007tweaks.bkk which are my preferred settings (just rename to 007tweaks)
also can be adjusted with (most likely not colors) GLaDOS Control and Trinity Kernel Toolbox (as well as other kernel apps)
007tweaks
Code:
#!/system/bin/sh
echo "0" > /sys/class/misc/samoled_color/red_v1_offset
echo "0" > /sys/class/misc/samoled_color/green_v1_offset
echo "0" > /sys/class/misc/samoled_color/blue_v1_offset
#default 0 0 0
echo "1670000000" > /sys/class/misc/samoled_color/red_multiplier
echo "1880000000" > /sys/class/misc/samoled_color/green_multiplier
echo "2000000000" > /sys/class/misc/samoled_color/blue_multiplier
#default 2004318071 2004318071 2004318071
mount -o remount,noauto_da_alloc /data /data
echo "0" > /sys/devices/platform/omapdss/manager0/gamma
#default 5 off 0 max 10 (10 being darkest)
echo "2" > /sys/class/misc/soundcontrol/volume_boost
#default 0 max 3
echo "0" > /sys/class/misc/soundcontrol/highperf_enabled
#default 0
permissions are set on flashing, but if changed with "es explorer" they need to be reset to
for roms that don't have "color slider adjustments" to have the changes take affect without rebooting, open a terminal and run....
Code:
su <enter>
run-parts /etc/init.d/ <enter>
kernels are preset
don't drop more than 75mV under default
protips-
force desktop mode on google chrome
create the file /data/local/chrome-command-line and add below
Code:
adb shell 'echo \"chrome --user-agent="[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.45 Safari/535.19]"\" > /data/local/chrome-command-line'
Click to expand...
Click to collapse
[GUIDE] Proper FULL wipe
Click to expand...
Click to collapse
Tutorial: How to properly post a bug
Click to expand...
Click to collapse
galaxy nexus factory images
Click to expand...
Click to collapse
VLC player for android
Click to expand...
Click to collapse
https://plus.google.com/u/0/101056148805473200158/posts/SsowCdLfTPn
Click to expand...
Click to collapse
-for better scrolling in apps (specifically twitter) go to settings/developer options and select "Force GPU rendering"
*may crash other non-ics optimized apps(twiiter updated for ics)
Click to expand...
Click to collapse
-cool recovery trick to get rid of all the extra "no's" (recovery)
Code:
adb shell
touch /sdcard/clockworkmod/.one_confirm
Click to expand...
Click to collapse
-md5 mismatch (recovery)
Code:
adb shell
cd /sdcard/clockworkmod/backup/2011-11-29.18.20.30
rm nandroid.md5
md5sum *img > nandroid.md5
Click to expand...
Click to collapse
enable 3g video chat (easiest way)
download this from market
Click to expand...
Click to collapse
battery saving tips-
disable gps unless navigating
don't use active widgets that need data
use 2g in low 3g signal areas
2g uses the least power
wifi uses less power than 3g
4g uses the most power, avoid when possible
Click to expand...
Click to collapse
great standby
overnight deep sleep (gsm)(ics)
more to come...
Omg happy to see you. Getting all the Samsung all stars here.
Sent from my Galaxy Nexus using XDA App
Can work with ARHD 2.1.2?
siewsphone said:
Can work with ARHD 2.1.2?
Click to expand...
Click to collapse
Shoult work! ARHD is 4.0.2! Try it out!
Im try it:
fastboot boot boot.img
But Device need to boot cca. 10-15 minutes. also Boot animation(THIS one) is very slow.
Does it have gpu oc?
Sent from my Galaxy Nexus using XDA App
anyone know why my phone need 1325mV for 350Mhz to work?
My settings:
350 / 1325mV
700 / 1175mV
920 / 1200mV
1200 / 1200mV
1400 / 1250mV
OTG
does it support OTG?
Great to see you in this forum mate. I loved your Kernel for the SGSII. I will be definately flashing it when AOSP pushes 4.0.3 properly.
tested on ARHD 2.1.2 and works fine
great job ogdobber
Nice to see a 4.0.2 kernel, thought we were forgotten.
Would you post an Anykernel version with just the kernel.
Thanks
Muchly appreciated! +1 to seeing a 4.0.2 kernel..
All running smooth as silk so far...
Kraenesk said:
Does it have gpu oc?
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
yes the gpu is set to 384
siewsphone said:
anyone know why my phone need 1325mV for 350Mhz to work?
My settings:
350 / 1325mV
700 / 1175mV
920 / 1200mV
1200 / 1200mV
1400 / 1250mV
Click to expand...
Click to collapse
those settings look way off check post 3
ymr0211 said:
does it support OTG?
Click to expand...
Click to collapse
yes, but not usb storage. I forgot all about that. I have been using chainfires stickmount app. It does support keyboard and mouse though.
Gingernut78 said:
Nice to see a 4.0.2 kernel, thought we were forgotten.
Would you post an Anykernel version with just the kernel.
Thanks
Click to expand...
Click to collapse
I will upload it shortly
Cool, thanks for the anykernel version. Didn't want to flash the boot.img as it will overwrite the tweaked boot.img from ARHD 2.1.2.
When I clock down the CPU to 1200, will the 384 for GPU will stay?
Originally Posted by ogdobber
yes i can tell you I hate the naming game...and I'm not good at it
v.1.x.x kernels are basically stock kernels with undervolting and overclocking ability
v2.1 are nd kernel variations
v.2.2.x are fs version...
v2.3.x ndsf
v2.4.x socfs
vX= major change
vx.X=minor change
vx.x.X=variation of that version
I still need to cleanup as long as you can read this line...
meaning there are currently socfs kernels that are 2.3.x ans ndfs that are 2.2.x
I admit , its a mess, but i will get it organized
Click to expand...
Click to collapse
acronyms explained
ND=non-debug
fs=fsync disabled
ndfs=add the ^above
socfs= it is a ndfs building with a different config
cc= color control
fc= fast charge (usb)
mv= morfic vibration
ak= any kernel. keeps original ramdisk(all roms)
up2u=kernel will boot to stock voltages (must be user set)
*not all phones will be able to run 1.4GHz
-ND and fs kernels will see a significant battery savings in standby
Will the Kernel boot @ standard voltages or is he already undervolted, when yes, can you post standard voltages, thanks!

[KERNEL] Next |Ep7.8 / 7.9| |Ep8.5| |Ep10.4| |Sense / AOSP|

Disclaimer : I'm no developer. I don't know how to write code. Just cherry-pick stuff. Flash at your own risk. Just thought to share.
Huge Credit & Thanks to these guy/lady :
LorD ClockaN, Thömy, n3ocort3x, maxwen, franciscofranco, faux123, Xmister, show-p1984, lyapota, tbalden, metallice, tripnraver,Christopher83, AICP Team, p880 devs, all rom/kernel developer, all guide author and the community.
Were tested before release. But not fully on sense. AOSP my daily driver.
Feature
Govenor : + smartmax, smartmax eps, gaming, intelliactive, wheatly
Scheduler : + BFQ, ROW,SIO,VR
Extra : GPU overclock (default at 520), LP core overclock (640) Undervoltage (LP,GPU,RAM,MPU,CORE), Sweep to Wake (S2W), Double Tap to Wake (DT2W), pocket protection, LP core interface, Button backlight brightness, button blink notification
*Do Not Repack For CpuQuiet Version*
Sense / Aosp
Cpu Quiet : Ep 7.8 / Ep 7.8 OC / Ep 7.9
MPdecision : Ep 8.5 / Ep 8.5 OC
Intelliplug : Ep 10.4 / Ep 10.4 OC/Ep 10.5/Ep 10.5 OC
Older Released : Kernel Folder
Change log see post #2
How to flash:
For S-OFF
1. Download ZIP file and put to SD card
2. Flash ZIP from recovery
For S-ON
1. Download ZIP file and extract kernel\boot.img to Kernel Flasher fastboot dirrectory on the PC
2. Put ZIP file to SD card and flash from recovery
3. Reboot to bootloader and flash kernel by Kernel Flasher from PC
Next Kernel Source
> Be gentle
Changelog
Best Trade Hotplug Commit
Cpu Quiet/Intelliplug Commit
MpDecision Commit
Next Kernel Parameter (init.d script)
#!/system/bin/sh
# **************************************
# init.d script for Next kernel
# **************************************
#***************************
# Cpu Freq & Governor Setting
#***************************
# Gov = ondemand, performance, interactive, smartmax, smartmax_eps, intelliactive, gaming, wheatly
#echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
# Freq min = 51000, max = 1600000
#echo "51000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#echo "1600000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#*******************
#Sweep2Wake Setting
#*******************
#enable=1, disable=0
#echo "0" > /sys/android_touch/sweep2wake
#echo "9" > /sys/android_touch/s2w_register_threshold
#echo "325" > /sys/android_touch/s2w_min_distance
# Sweep direction
#echo "1" > /sys/android_touch/s2w_allow_stroke
#enable=1, disable=0
#echo "0" > /sys/android_touch/doubletap2wake
# 0 = use whole screen
#echo "1300" > /sys/android_touch/doubletap_barrier_y
# Duration between tap, min = 120, max =350
#echo "150" > /sys/android_touch/doubletap_duration
#echo "150" > /sys/android_touch/doubletap_threshold
#enable=1, disable=0
#echo "0" > /sys/android_touch/pocket_detect
#*********************
# LED button
#*********************
# Enable=1, disable=0
#echo "0" > /sys/class/leds/button-backlight/slow_blink
# Value Min=0 , Max=225
#echo "225" > /sys/class/leds/button-backlight/button_brightness
#******************
# Touchscreen
#******************
# Enable=1, disable=0 - for multitouch issue
#echo "0" > /sys/android_touch/calibration_control
#*******************
# Audio Freq
#*******************
# Enable this if playing music stutter
#echo "204000" > /sys/module/snd_soc_tlv320aic3008/parameters/audio_min_freq
#*******************
# Cpu Freq Hard Cap
#*******************
#echo "1200000" > /sys/module/cpu_tegra/parameters/cpu_user_cap
#******************
# CpuQuiet
#******************
#To limit how much cpu online, min=1, max=4
#echo "4" > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/max_cpus
#echo "1" > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/min_cpus
#******************
# Mp Decision
#******************
#To change those frequencies echo the cpu number + the frequency in khz.
# To verify [ cat /sys/kernel/tegra_mpdecision/conf/boost_freqs ]
#echo "0 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "1 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "2 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "3 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#To limit how much cpu online
#echo "4" > /sys/kernel/tegra_mpdecision/conf/max_cpus
#echo "1" > /sys/kernel/tegra_mpdecision/conf/min_cpus
#****************
# Frandom
#****************
# Script to launch frandom at boot by Ryuinferno @ XDA
#insmod /system/lib/modules/frandom.ko
#chmod 644 /dev/frandom
#chmod 644 /dev/erandom
#mv /dev/random /dev/random.ori
#mv /dev/urandom /dev/urandom.ori
#ln /dev/frandom /dev/random
#chmod 644 /dev/random
#ln /dev/erandom /dev/urandom
#chmod 644 /dev/urandom
can i install aosp one on cm10.1 ?
Hey man! Nice to see a pretty decent aftermarket kernel on our forums again, How does Android 4.4 support look like right now? Would you it's ready to use? *I'm flashing it anyway *
deathgame said:
can i install aosp one on cm10.1 ?
Click to expand...
Click to collapse
Ops...don't have time to test on cm10.1..sorry..you could try repack and report if it run ok. Why don't jump to cm10.2? It pretty stable now.
humzaahmed155 said:
Hey man! Nice to see a pretty decent aftermarket kernel on our forums again, How does Android 4.4 support look like right now? Would you it's ready to use? *I'm flashing it anyway *
Click to expand...
Click to collapse
My aim to help sense user so n3o can focus on aosp. .. It my daily driver..I can live with minor bug. Now I'm using custom cm from temasek. Need halo. Jump to aicp when they release.
Sent from my HTC One X using Tapatalk
Thanks I'm on viperx I will flash it and post back my thoughts nice to see things happening on our hox at last
Sent from my HTC One X using Tapatalk
Finally. Great.
All booted fine can I ask for some info on the new smartmax eps governor please
Sent from my HTC One X using Tapatalk
Smartmax eps = extreme power saving
Great Work...Atlast you've posted your kernel in XDA...
Congrats....As said in G+, very happy to see your first kernel here... I hope your kernel would surely help a lot of Users and Devs here...
Keep rocking... :highfive::highfive::highfive:
Ram
Just flashed your kernel on CM11, runs exceptionally faster than stock, only issue was when I was installing the kernel I realised the updater script isn't compatible with the new KitKat recovery, so I had to flash back to twrp to get it running
Sent from my HTC One X using Tapatalk
Aweseome u made it. Just a little info for AOSP/SENSE. U will need 2 defconfigs. Where in AOSP one for example # HTC_PNPMNGR is not set (what fixes core usager on AOSP) u will need it in SENSE defconfig set to HTC_PNPMNGR=y (otherwise u could run into issues). There is a lot of other stuff disabled in our AOSP defconfig, you should re-enable that for sense (SENSE PLUS is such a value, just check git waht thömy and me reverted and revert it back for Sense version)
Keep the kernels coming :highfive:
Smartmax seems a bit slow I tried to play temple run but it as to chuggy and system stalled for a few seconds also ui is not very responsive hope this helps
Sent from my HTC One X using Tapatalk
needs adjustments for tegra, what i expected, its too conservative
On demand seems normal no issues that I can notice
Sent from my HTC One X using Tapatalk
Firstly may I say thank you for you work, your kernel is snappy and all seems good. Is it possible for sweep to unlock?
Sent from my HTC One X using XDA Premium 4 mobile app
Has anyone else had issues waking the phone up?
Sent from my HTC One X using Tapatalk
Edit: it seems as if it was just cold temperatures preventing the phone from turning on
myheroduane said:
Firstly may I say thank you for you work, your kernel is snappy and all seems good. Is it possible for sweep to unlock?
Sent from my HTC One X using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Its there but its off by default.
You can enable it with trickster mod for example.
Gesendet von meinem HTC One X
Using your Kernel right now, Thanks for another option in Kernel Flashing
Using smartmax and rest pretty much default. Running nice so far.
Thanks again and good luck for your development. :good:
I have a question regarding kernel same page merging is it worth using I have found the option to enable it in venom tweaks cpu settings unfortunately it isn't in trickster and in venom tweaks I can't get it to stick after reboot any advise would be appreciated thanks
Sent from my HTC One X using Tapatalk
smeejaytee said:
I have a question regarding kernel same page merging is it worth using I have found the option to enable it in venom tweaks cpu settings unfortunately it isn't in trickster and in venom tweaks I can't get it to stick after reboot any advise would be appreciated thanks
Sent from my HTC One X using Tapatalk
Click to expand...
Click to collapse
Some info
By everyday use I don't see much different.

[Q] Interactive Governor tweaks?

Has anyone found better parameters to run the interactive governor on? Maybe a script? L Speed Mod only tweaks OnDemand so is there an interactive tweak?
Ntrasme said:
Has anyone found better parameters to run the interactive governor on? Maybe a script? L Speed Mod only tweaks OnDemand so is there an interactive tweak?
Click to expand...
Click to collapse
here is my interactive setting..
I didnt touch max cpu and min cpu clock..
using noop i/o for both internal n external..
and using SManager apps widget to trigger the script i made.. or u may use terminal emulator with su command and just copy paste this settings below..
echo "97" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
echo "960000" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
echo "40000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "35000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/boost
echo "80000" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
echo "80000" > /sys/devices/system/cpu/cpufreq/interactive/timer_slack
echo "90 300000:45 729000:65 960000:70 1500000:90 1800000:99" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
echo "20000 960000:60000 1500000:20000 " > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
its currently stable enough for me, rom is still snappy without any lag..and my ze551ml never gets overheat because my device seldomly reach 2330mhz..
do give it a try first but dont blame me if its not perfect haha.. im just too bored on waiting for someone to develop custom kernel for our device..thats why i keep trying to tweak the stock kernel interactive governor to gain more battery life..
Could you give me a quick rundown? I see that you are boosting the frequency under load. And you are boosting it less when the screen is touched?
Is it possible for you to edit the script so I can use it on my 1.8ghz Zenfone? Sorry, I don't know how to write a script for the governor.

[WAR MOD] || CPU & VM Tweaks | Battery Saving

Please read this entire post before doing anything.
Pretty straight forward modification that will increase performance and save battery life. You must be rooted to apply this.
Drop this file: https://drive.google.com/file/d/1h0ET7pYHdPB32v-ZtK5pEMlwlHNn8O46/view?usp=drivesdk
... into this location (replacing the existing stock one):
Code:
/system/vendor/bin
Basically, there is a file in that sub-folder "init.qcom.post_boot.sh"
You are replacing that file with mine, which I've made the following changes to:
-modified hispeed_freq and hispeed_load parameter for both CPU clusters so they run more efficiently
-modified vm parameters in /proc/sys/vm to allow a little more RAM to be used. USE YOUR RAM, that's what it is for! I don't like having a full 900Mb of free RAM, then having apps refresh when they are opened again.
-added a script to limit the maximum display brightness (this is still very usable, but it will be more power friendly. The stock settings are way too aggressive)
- there will be much more to come, this is just to start us off
Also, after you drop the new file into the folder, change the permissions to:
Code:
rwxr-xr-x
then reboot/power up
The .sh file executes on its own after each boot. No more CPU apps.
You will see a noticeable difference in battery life and performance. :good:
Yes could you please give me step by step on how I post apply this to my device because I cannot give it permission and then when I do get to permission changed it keeps saying that ignore it it snow please help
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Igorfmedeiros said:
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Click to expand...
Click to collapse
SMD632 is the ID.
Pretty sure yours is SMD636
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
How is this working for those that have used it?
I'm curious too..I've benchmarked my G7 and got a baseline for performance and will eventually try this to see if it improved things..but first I plan on trying some of the tweaks available in Magisk.
this mod doesn't seem to stick as it always reverts to the stock file. why not just make a custom flashable kernel?
Is there guidance to make the change persistent after a reboot. This is my first A/B device and things seems little different now. I am unsure if Motorola is restoring the vendor partition or if the reset isn't related to something else.
I've been trying to avoid installing TWRP due to lack of development and was hoping to apply this with either the stock recovery of just in the file system.
*edit.
I guess Ill look into disabling dim-verity without TWRP, I think I saw a way to do it. Or maybe boot TWRP from the command line instead of installing it.
I made a magisk module to load this file.
See Page 2 to download.
Download ?
idcamper said:
Download ?
Click to expand...
Click to collapse
*module fixed
Use Magisk to make this change stick
*module fixed, we down a few posts.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
The unofficial Twrp actually works quite well on my Moto G7.
maybeme2 said:
The unofficial Twrp actually works quite well on my Moto G7.
Click to expand...
Click to collapse
Without anyone making twrp flashable zips of the updates I am remiss to install it. If more mods come along that require workarounds like this one I will pull the trigger but for now, this one change does not warrant TWRP for me anyway.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
can you send me?
absvini said:
can you send me?
Click to expand...
Click to collapse
*module fixed
Magisk Module fixed
HT123 said:
The mod didn't work. While the file was replaced, it was not processed, look up a few posts to see how to do it without a module.
Click to expand...
Click to collapse
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code]
idcamper said:
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
Click to expand...
Click to collapse
Same happens to me, just rebooted. I'll check my current file with the one he uploaded on Google Drive by comparing them in a text editor?
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
This Magisk module provides the exact same thing as the .sh file in the original post? The exact same benefits?
Click to expand...
Click to collapse
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
I notice quite a difference
Click to expand...
Click to collapse

Categories

Resources