How to change deep sleep state in STOCK 4.1.2 - Galaxy S Advance I9070 General

Hello guys & Gals
In this tutorial we will be learning how to change deep sleep state in STOCK ROMS/STOCK based ROMS in Samsung galaxy S Advance.
First of all What is deepest sleep State?
"CPU on the Mobiles have variable speeds, like CPUs on laptops. We can work at 200, 500, 800, 1000, 1200 and 1400 MHz, depending on what application we're running.
When there's nothing to do, the CPU should go into "deep sleep" state, which means basically stopped, so it consumes very little power."
By default, Deep sleep state will be 3 in STOCK JB and can be increased till maximum 5.
Now lets start with it.
Requirements:
Samsung galaxy S advance running any STOCK based ROM
Rooted
Root explorer
Terminal emulator
Kernel having init.d support (CoCore-E/EP 6.0 or above)
Instructions
First Download the deepsleep.zip
Extract the zip and you will be getting a file
Copy the file to your phone in Internal storage/Memory card.
Open root explorer and give it root permissions.
Now navigate to System/etc and make a folder named"init.d" if it is not there.
Long press the folder and some options will pop out.
Click on permissions and tick the first 9 brackets(i.e change the permission to 0777)
Now Change Ownership to root root 0:0
Next move the file "deepsleep" from the Storage to the init.d folder.
Change the permissions and the ownership same as you did for the init.d folder.
Reboot your phone.
How do I know That my Deep sleep state has been changed to 4?
Open Terminal Emulator and type the following commands & you should be getting your answer.
su
cat /d/cpuidle/deepest_state
Click to expand...
Click to collapse
You can change deep sleep state to 5 by editing the deepsleep file in init.d and replacing 4 by 5. (similar to make it 3)
NOTE: Don't Use Deep Sleep State 5 on pegasusq(sio governors), It may cause system instability. Instead use indemand+cfq in deep sleep state 5. (but still you may encounter random reboots)
Enjoy better battery backup in standby mode.
If you are using CM10.1/10.2 there is a option to change deep sleep state in settings>advance>deep sleep. You will not be needing any script in CM.
init.d script by anantttt
This is my first post on XDA, So do thank me if you like it & sorry for any typos.
:fingers-crossed:
#PEACE

Thanks man
I'm using the valor 4 with the init.d script
So, i must think that the pegasusq + sio or noop or row scheduler and deep at 4 work normal? i'm using in this moment ondemandq + noop as test

FabioSan said:
Thanks man
I'm using the valor 4 with the init.d script
So, i must think that the pegasusq + sio or noop or row scheduler and deep at 4 work normal? i'm using in this moment ondemandq + noop as test
Click to expand...
Click to collapse
I am using Deepsleep 4 with PegasusQ + SIO on CM 10.1. Without problems. Deepsleep 5 makes reboot, but 4 is working good.

shut_down said:
I am using Deepsleep 4 with PegasusQ + SIO on CM 10.1. Without problems. Deepsleep 5 makes reboot, but 4 is working good.
Click to expand...
Click to collapse
I'm using Ondemandq + noop + deep at 4 no problems But i'm not sure if it's better pegasusq, ondemandq or hotplug xD
Off Topic closed

You are using my script. Dah anyways, why did you open another thread when I already explained in a tutorial to make init.d scripts. See this
http://forum.xda-developers.com/showthread.php?t=2503884
But still good work

anantttt said:
You are using my script. Dah anyways, why did you open another thread when I already explained in a tutorial to make init.d scripts. See this
http://forum.xda-developers.com/showthread.php?t=2503884
But still good work
Click to expand...
Click to collapse
Sorry dude i too got that script from another person and really didn't know who made it.
Right now i am online from my cell so will edit your name in document afterwards when i will be on my pc.

FabioSan said:
Thanks man
I'm using the valor 4 with the init.d script
So, i must think that the pegasusq + sio or noop or row scheduler and deep at 4 work normal? i'm using in this moment ondemandq + noop as test
Click to expand...
Click to collapse
Try using pegasusq instead of ondemand.

Ankurzl said:
Try using pegasusq instead of ondemand.
Click to expand...
Click to collapse
I'm using Pegasusq + noop from some days but sincerly i don't see sensible differences ._.
At least the battery is that, and also the phone u.u

Related

Clemsyn's ROM + KERNEL overclocked combo with battery profiling version 6 ULTIMATE

Version 6 ULTIMATE is out!!
1. Updated to version 21a kernel
2. Optimized tegra battery profiling in both cores utilizing Interactive and Conservative (when screen is off)
3. Sleep Tweak Optimized
4. Ram timing optimizations tweaks directly from the kernel (no init.d required) utilizing Jew's
5. Removed harmony based drivers in kernel
6. Based on 8.6.6.10 ROM
7. Deodexed and zipaligned
Battery profiling as follows
100-90% - 1472 MHZ
90-50% - 1336 MHZ
50-15% - 1232 MHZ
15-1% - 912 MHZ
Here is the link
www.tunerspotter.com/clemsyn/ClemsynKERNELromCOMBOversion6Final.zip
Voodoo module fix
www.tunerspotter.com/clemsyn/Clemsynvoodoomodulefix.zip
BTW, if you like our work, please dont hesitate to donate
---------------------------------------------------------------------
Version 5 Final is out
Kernel
1. Based on 8.6.6.9 kernel
2. Updated kernel to release 13
ROM
1. Based on 8.6.6.10 by Asus
Link
www.tunerspotter.com/clemsyn/ClemsynKERNELromCOMBOversion5afinalrelease.zip
Version 4 Final Release is out based on 3.2 HC
Kernel
1. Updatd to 8.4.4.11 kernel
2. FS ext4 data changed to writeback mode (from ordered)
3. Updatd per nvidia (see git)
4. Updated to Elite version
ROM
1. Updated to 3.2 release by Asus
2. Odexed
Here is the link
www.tunerspotter.com/clemsyn/ClemsynKERNELromCOMBOversion5afinalrelease.zip
BTW, if you like our work, pls dont hesistate to click the donations button under our sig Thanks
-------------------------------------
Version 3 Final Release is out
KERNEL:
1. Added Mmap to video frame buffers
2. Updated i2c driver as per Nvidia's
ROM:
1. Added Facebook app, Video Sound and Reboot to recovery app
2. Kept Odexed
LINK:
www.tunerspotter.com/clemsyn/ClemsynKERNELromCOMBOversion3finalrelease.zip
BTW, If you like our work, pls click on donation butto under our sig Thanks
---------------------------------------------
Version 3A is OUT!
1. Odexed version of 8.4.4.11
2. Rooted 8.4.4.11
3. Disabled Recovery option due to being odexed
Link:
www.tunerspotter.com/clemsyn/ClemsynKERNELromCOMBOversion3a.zip
BTW, if you like our work, pls clean on donation button under our sig Thanks
Version 2B RELEASED!
1. Fix Market issue with some apps not showing
2. Enable "boot to recovery" Option in Shutdown
3. Deodexed
BIG THANKS TO ROACH2010 for 1-3
Here is the link
www.tunerspotter.com/clemsyn/ClemsynKERNELromCOMBOversion2b.zip
LMK of any issues. THANKS!
-------------------------------------------------------------------------------------
Version 2 RELEASED!
1. Fixed battery profiling to utilized 1504 at 100%-90% battery level
2. Fixed browser crash when entering into settings
3. Added ext4 optimizations in the ROM
4. Added input settings to disable tap to click
5. Removed chinese apks
6. Added Spare parts
www.tunerspotter.com/clemsyn/ClemsynKERNELromCOMBOversion2.zip
BTW if you like our work, pls click on the donations button under our usernames. THANKS.
----------------------------------------------------------------------------------------------------------------------
Introducing my first build for a kernel+ROM combo with battery profiling which decreases the speed of the CPU depending on battery level. It is automatic and overclocked at 1504 ghz and goes all the way down to 912 mhz. More details of the kernel and ROM below.
---------
KERNEL
---------
1. Includes Blades overclocking features with max at 1646 mhz (very stable in my tablet)
2. Includes undervolting feature (thanks to CPAjustes)
3. Includes voodoo sound (thanks to supercurio)
4. Overclocked 2d/3d gpu at 400 mhz
5. VDE and sound overclocked at 300 mhz
6. Based from ASus release
7. data/app feature included
8. netarchy's disable tap included (just download his app to enable)
9. VOLTAGES per frequency are as follows
1646 - 1450mv
1600 - 1400mv
1504 - 1300mv
1400 - 1200mv
1200 - 1150mv
1000 - 1100mv
912 - 1050mv
817 - 1025mv
760 - 975mv
608 - 950mv
503 - 875mv
456 - 825mv
314 - 800mv
216 - 750mv (can be uundervolted to 725mv per Pimpmycpu)
------
ROM
------
1 Battery profiling (Thanks to Calkulin) are as follows
a. automatically overclocked at 1504 with battery level at 100-90%
b. overclocked at 1400mhz when battery level drops to 90-50%
c. overclocked at 1200mhz when battery is at 50-15%
d. underclocked at 912mhz when battery level is at 15% and below
2. Battery profiling is automatically disabled when SetCPU is installed so you can overclocked more when you install SetCPU (or you can edit the init.d script)
3. Pimpmycpu is installed for undervolting and stress testing
4. Voodoosound App free version is installed
5. Dual battery widget installed
6. RAM script optimizations include (Thanks to Juwel)
7. CPU governor set at interactive
8. SDCARD optimization script by me and Calkulin
9. Based from 8.4.4.7 release
10. system/app deodexed (thanks to Roach2010 for this)
Here is the link
www.tunerspotter.com/clemsyn/CLEMSYNkernelROMcombo.zip
HOW TO INSTALL:
1. BACKUP..BACKUP..Backup
2. Enter Clockworkmod Recovery
3. Clear data/factory
4. Install zip file
5. Reboot
TIPS
1. Please do not enable "Force minimal freq when sleeping" in Pimpmycpu because it will have a conflict with the battery profiling script.
2. Install netarchy's app to disable tap to click
3. Install Setcpu to disable Battery profiling script (will allow you to overclock more)
4. If you want to overclock (or underclock) more without installing SETCPU, edit the init.d script at /system/etc/init.d/02cpufreq_screenstate_scaling
5. To try a certain speed without installing SETCPU or editing the script. Enable the frequency at PIMPmycpu and you can test it out. It will default back to battery profiling speed when the screen turn off or when you press the power button.
BTW, this is an overclocked build so your mileage will vary If you are unable to boot at 1504, do not install this. Thanks.
Also, if you like our work, please click on our donation button under our username. THANKS
Awesome
Sweeet !! Do we know how much battery saving that can give ? Is is a drastic change ?
Good work !
Testing it right now.
I spy with my little eye, a new ROM for me to try!
LINK is up. BIG thanks to chatch15117 for the ftp site
TIP
1. Please do not enable "Force minimal freq when sleeping" in Pimpmycpu because it will have a conflict with the battery profiling script.
2. Install netarchy's app to disable tap to click
3. Install Setcpu to disable Battery profiling script (will allow you to overclock more)
4. If you want to overclock (or underclock) more without installing SETCPU, edit the init.d script at /system/etc/init.d/02cpufreq_screenstate_scaling
5. To try a certain speed without installing SETCPU or editing the script. Enable the frequency at PIMPmycpu and you can test it out. It will default back to battery profiling speed when the screen turn off or when you press the power button.
Thanks a lot man, i will try this when im home, the first thing to do
Sent from my HTC Sensation Z710e using Tapatalk
nordicfastware said:
Sweeet !! Do we know how much battery saving that can give ? Is is a drastic change ?
Good work !
Click to expand...
Click to collapse
Would really depend on how much you can undervolt your cpu (via pimpmycpu) and how you set the profiling frequencies at (editing the init.d script). With the script, you can edit a certain frequency at a certain battery level Ihave included File expert (to mount system/etc as rw) and Estro File explorer
This looks awesome! I'm excited to use this combo, will a restore of stock rom data cause issues? I figure it does hence the backup/wipe steps but its still worth asking
Sent from my pimped out cappy
yup,that is what i`m talking about more roms more pleasure for us
awesome job Clemsyn
Wow, nice work.
But i'm only interessted in the kernel. Will you further support the other thread with your kernels?
4. If you want to overclock (or underclock) more without installing SETCPU, edit the init.d script at /system/etc/init.d/02cpufreq_screenstate_scaling
What if I want to overclock the gpu some more? Can I do that?
Thanks Clem!!
Great to see new cooks in the kitchen, variety is the spice!
I am keen to try your ROM combo without installing SetCPU, however wanted to ask a question.
AS we all know, when we sign into market our tablets efficiently start automatic download and installation of programs we have purchased/previously installed.
I purchased SetCPU a while back and it's often one of the first apps to get installed.
I will try to be quick and cancel the installation, but wondered if it does happen to get installed, and then I uninstall it, will the automatic CPU throttling settings be messed up or will they automatically kick back in if they see SetCPU is uninstalled?
Thanks!
One other really important question:
Does this have the option to boot into recovery (long press power) like Prime 1.5?
Just makes any future changes that much easier.
Thanks.
Globespy said:
Thanks Clem!!
Great to see new cooks in the kitchen, variety is the spice!
I am keen to try your ROM combo without installing SetCPU, however wanted to ask a question.
AS we all know, when we sign into market our tablets efficiently start automatic download and installation of programs we have purchased/previously installed.
I purchased SetCPU a while back and it's often one of the first apps to get installed.
I will try to be quick and cancel the installation, but wondered if it does happen to get installed, and then I uninstall it, will the automatic CPU throttling settings be messed up or will they automatically kick back in if they see SetCPU is uninstalled?
Thanks!
Click to expand...
Click to collapse
If setcpu is installed, then battery profiling script is disabled. If uninstalled, then battery profiling is enabled upon reboot.
Globespy said:
One other really important question:
Does this have the option to boot into recovery (long press power) like Prime 1.5?
Just makes any future changes that much easier.
Thanks.
Click to expand...
Click to collapse
Not yet but will include it in my next release including a few ext4 optimizations and try inserting huawei modem usb
thanks...trying...to download at work...
looks like the server is getting hammer with download...
Also thanks for the ram script preinstall
sontin said:
Wow, nice work.
But i'm only interessted in the kernel. Will you further support the other thread with your kernels?
Click to expand...
Click to collapse
Yes I will. Will update it soon.
Globespy said:
Thanks Clem!!
Great to see new cooks in the kitchen, variety is the spice!
I am keen to try your ROM combo without installing SetCPU, however wanted to ask a question.
AS we all know, when we sign into market our tablets efficiently start automatic download and installation of programs we have purchased/previously installed.
I purchased SetCPU a while back and it's often one of the first apps to get installed.
I will try to be quick and cancel the installation, but wondered if it does happen to get installed, and then I uninstall it, will the automatic CPU throttling settings be messed up or will they automatically kick back in if they see SetCPU is uninstalled?
Thanks!
Click to expand...
Click to collapse
When setting up your gmail account after flashing a ROM you don't have to load previously installed/downloaded apps. Just don't check the "Restore data from my account" tick box.. Might be named slightly different but that's the gist of it.
If you have it load to reinstall your apps then you can get around this by either using Titanium Backup, or Astro file manager has a free app-backup but it doesn't work as well (can't get secured apps, etc.)
browser fc
Everytime i go into browser settings i get fc.... tried clearing data in apps... no dice.
Smooth rom otherwise ! Looking forward to updates.
amerikian said:
Everytime i go into browser settings i get fc.... tried clearing data in apps... no dice.
Smooth rom otherwise ! Looking forward to updates.
Click to expand...
Click to collapse
Try using Pimpmycpu and choosing a lower frequency for max (don't turn off the screen or else the battery profile will push it backup to 1504).
Can it be use with CPU Master instead of setcpu?
If not, what is the different with working with one but not the other?

DroidX CPU Governors and SIO Kernel Scheduler V2.2

Update 2012\05\16
Removed blank bootmenu folder
Cleaned up init script, removed unsupported lines, added supported lines
Included SD Card Cache Tweak with 2048 value, to match io tweaks
**The lines weren't supported on Bravo Froyo Kernel, added new lines from /sys/block/mmcblk0/queue/iosched**
**If the removed lines are supported on GB Kernel, let me know and I'll make a zip for each kernel.**
**Just remove the last 2 lines of the init script if you don't want\need the SD Cache Tweak**
Update 2012\05\15
Removed Undervolt settings -- makes zip universal for Defy, Defy+, Bravo, and Milestone
SIO IO Scheduler now properly loads -- no market app needed now.
I originally made this for the Bravo, my phone, but posted it in the Defy forums as well. Since they're getting good results, I thought you guys would like them as well. In theory, it should work with Bravo, Defy, Defy+, Milestone 2, Cliq 2, Droid X, Droid2....basicly any phone with OMAP36XX and Froyo or Gingerbread Kernel (and same mount points as Bravo\Defy).
V2 Removed the Undervolt Settings, caused problems with GB kernel's 4 Vsels, and fixed it so SIO would load without a market app (original DX script didn't work right).
Copy of Original Bravo Post
This CWM compatible zip will install the DroidX smartassv2 and BOOSTEDassV2 cpu governors as well as the SIO Kernel Scheduler. While I've only tested this on CM9, it should work on ANY rom with init.d support and Defy 2nd-init Bootmenu....meaning all CM7\9 and Miui roms. I'm unsure if MS2Ginger and Stock Froyo have init.d support. It also undervolts the rom to [email protected], [email protected], and [email protected] Those values work fine with CM9 on my phone, meaning no fc's due from being too undervolted. -- Not Anymore
To install, simply flash the zip in cwn and you're done. Wiping Cache and Dalvik Cache isn't necessary.
To use the Governors, select the governor in the CM Performance Menu and select apply on boot, or use a CPU Governor program from the market. I recommend No Frills CPU Control --- its free, no ads, no bs permissions, and you can select the io scheduler.
To use the SIO Kernel Scheduler, install No Frills Cpu Control from the market and select SIO (or noop) from the bottom menu. (Not Necessary Now)
I haven't used SIO very much (5-10 mins now), but it seems to be working well. The noop scheduler works great, and is what I normally use; but I've always read good things about SIO (and wanted to use it), so I thought I'd include it as well.
I'd give thanks to the authors of the Governors and Schedulers, but I have no idea who wrote them....I only found them in Beanstown106's DroidX Miui V4 rom and they happen to work wonderfully on the Bravo.
thx for this work but when i install this zip over cwm5 i become an "Status 6" error.
oh0 said:
thx for this work but when i install this zip over cwm5 i become an "Status 6" error.
Click to expand...
Click to collapse
Odd. I flashed 3 times before uploading to make sure it worked. And it works on Defy and Bravo. Does the MS2 use --mount("ext3", "EMMC", "/dev/block/mmcblk1p21", "/system");-- to mount /system in roms?
I decided to recheck my scripting, and I left and forgot some () in it. I uploaded my pc's copy, and not the edited one on my phone. Oops, sorry. I'll have a new zip up in about 5 minutes.
New zip attached to the first post.
so the installation works. but wenn i select one of the governors it go´s back to ondamed. I use CM9 with GB Kernel.
I know that it works on Defy CM9 with GB kernel, and MS2Ginger with GB kernel as well. The Bravo only has Froyo Kernel so its impossible for me to test with it. The governors themselves came from MiuiV4 Droid X with GB kernel. Everyone seems to be using the BoostedAssV2 governor and getting good results with it.
Are you using the CM Performance Menu to set the governor? If so, try out No Frills CPU Control (free from market). You'll also be able to tell if SIO is loading with No Frills as well.
I'm curious if its a Milestone CM9 bug since it works just fine on Defy (& +) and Bravo CM9. Can anyone here try on CM7 or CM9 with Froyo kernel? Do you have CM9 with Froyo kernel?
Something to try is to open terminal on the phone and type:
su
insmod /system/lib/modules/cpufreq_BOOSTEDassV2.ko
insmod /system/lib/modules/cpufreq_smartassv2.ko
(or use -- adb shell insmod rest/of/command)
and see if they load manually.
when i use terminal and tip insmod /system/lib/modules/cpufreq_BOOSTEDassV2.ko it say´s "faild (File exists).
€: with no-frills cpu controll it works.
thanks.
oh0 said:
when i use terminal and tip insmod /system/lib/modules/cpufreq_BOOSTEDassV2.ko it say´s "faild (File exists).
Click to expand...
Click to collapse
Means its loaded.
I'd ask you to post a logcat, but after watching my logcat output, it doesn't explicitly show which governor is used, is being changed, or exact commands. Try SetCPU or No Frills from the market. A few Defy users use SetCPU, I use No Frills. One Defy user had to use System Tuner Pro to use them, but I don't think he read the first post correctly and was trying to load them from the bootmenu.
Try enabling "Load all Modules" in the CPU part of the bootmenu and Enable Overclocking from there as well. It shouldn't matter (Load all Modules) since the governors are loaded in an init script, but that's how my phone is right now, and the first script initially was. Also ondemand is the default fallback governor when nothing is used, which could explain why ondemand keeps getting selected no matter what you do.
lsmod (run in terminal) shows all modules loaded
Here's a screenshot of my lsmod
ok i found the mistake "Load all Modules" was disable.
oh0 said:
ok i found the mistake "Load all Modules" was disable.
Click to expand...
Click to collapse
So its working now?
i can switch the govenor with no-frills. but not over Settings->performance
but when i switch the govenor with no-frills to smartassV2 it shows me in Settings->Performance that it is SamartassV2.
sry for my bad english ;-)
At least its working now. That's a start anyways. Odd that its not in the CM Menu. They are for my phone and Defy.
How about sio, does it load properly? Just lsmod and it will be sio_iosched.
terminal shows me: "sio_iosched 3444 2 - Live 0xbf0d4000"
I think it works.
this really improves the performance of the phone? I install speedyv7! are similar?
fedegin said:
this really improves the performance of the phone? I install speedyv7! are similar?
Click to expand...
Click to collapse
Never heard of speedyv7 until now. I looked over its scripts and the only commands that are the same refer to the IO scheduler; which won't work on my phone (doesn't have the deadline IO or some of the io queue commands). The IO commands, other than using sio, are exactly the same so there shouldn't be any problems using them together. SIO will be the scheduler used if the scripts are used together since my init script loads afterwords.
FYI, SIO is a mix between the NOOP and DEADLINE schedulers and is supposed to be better. "Supposed to" are the key words, but SIO has been working great on my phone since I first installed it, though I haven't ran any benchmarks or tests to confirm anything between IO's, governors, and performance; but judging by how my phone feels now, sio and BOOSTEDassV2 make a good combination. Long ass sentence, huh; I suppose it's a triple compound.
Now I have to make a speedyv7 script for my Bravo, damn you
Thanks for pointing them out.
Currently installing v2.2...
Fingers crossed!
EDIT:
Installed, everything went smooth as silk.
I can set it from Settings > CyanogenMod > Performance > CPU Settings
I have had V6 SuperCharger for a month. Does SIO interfere somehow?
djlooka said:
Currently installing v2.2...
Fingers crossed!
EDIT:
Installed, everything went smooth as silk.
I can set it from Settings > CyanogenMod > Performance > CPU Settings
I have had V6 SuperCharger for a month. Does SIO interfere somehow?
Click to expand...
Click to collapse
I don't think so. Maybe with Kick Ass Kernelizer since they both load an IO Scheduler, but whichever one is loaded last will have the settings stick. My script runs pretty early, so chances are its settings will be overwritten by KaK.
If you're going to use SIO, I'd rerun Kernelizer and pick "sio" to be safe.
Will this work with JB?
Megalith27 said:
Will this work with JB?
Click to expand...
Click to collapse
Yes, I tried it last monday.
I noticed less battery drain, specially when the phone is sleep.
Been using it on the smartass profile for now... gonna try boostedass tomorrow.
Froyo kernel here.
Hi I checked this with ICS 4.0.4 and when I install it through CWM all went OK.
Now when I go to performance settings of ICS i have 2 times 1000 mhz? I even did a clean install for verification.
So in short I have:
300 Mhz
600 Mhz
1000 Mhz
1000 Mhz
Any idea? I'm missing the 800 Mhz value.
Thanks!
Alchedin said:
Hi I checked this with ICS 4.0.4 and when I install it through CWM all went OK.
Now when I go to performance settings of ICS i have 2 times 1000 mhz? I even did a clean install for verification.
So in short I have:
300 Mhz
600 Mhz
1000 Mhz
1000 Mhz
Any idea? I'm missing the 800 Mhz value.
Thanks!
Click to expand...
Click to collapse
It's not the Governor but the CM9 4.0.4 Bootmenu issue, as it is ported to MS2 from Defy and Defy only has 3 CPU frequencies, 3rd and 4th ones on MS2 are being duplicated by default.
Use Milestone 2 Toolbox or Bootmenu CPU Setting to introduce/change 800 Mhz and Vsel3 value that works for you.

[STOPPED] [GT-S7500] Galaxy ACE Plus - Custom Kernel (Stable) + OC Kernel

Disclaimer:
I don't take any responsibility if your phone explodes, your girl/boyfriend breaks up with you or any other stuff.
Do not flash on anything else than an GT-S7500! No L model or W model, else you get a shiny brick.
Don't forget your warranty will get void if you flash this trough odin. (Unless someone figures out a way to reset the custom binary counter)
So flash AT YOUR OWN RISK.
Click to expand...
Click to collapse
Based on official Samsung Sources. Governors copied from freexperia github. Other changes by me.
Features:
- unsecured
- smartassV2
- SavagedZen (beware: in sleep mode cpu speed is capped at 480Mhz)
- noop sheduler by default
- minimium frequency set at 122Mhz
- enabled 19Mhz and 61Mhz frequencies (use setcpu or similar)
Click to expand...
Click to collapse
Tested with S7500XXLC2/S7500OXXLC1/S7500XXLC2. Flash with odin.
OC Build:
- Overclock frequencies seem to have the same performance but OC is indeed working, thanks to mb-14!
(Confirmed after many tests quadrant/setcpu/neocore cpu frequency is the same from minimal overclock to 1200Mhz)
- My phone as crashed 3 since I've overclocked it, so beware!
- Unless there is a better way of ocing, my newer builds will have oc disabled.
OC build v2 (31 May, 22h):
- Removed all overclock frequencies but 1200Mhz.
Bugs affecting all builds (even official ones):
- "Fuel gauge" might be bugged (maybe due to old/bugged samsung sources?) update:might be an rom bug instead.
- 3 pole headphones have noise in one channel and then the noise disappears (jack sensing bug?)
Sources Help & feedback are appreciated.
EDIT:
New kernel posted minimal changes again (samsung config updated from a new version LE1)
If you don't want an yellow triangle at boot flash my custom rom and then flash the kernel using the terminal.
1-Extract the tar.md5 file
2-Copy the boot.img to the sdcard
3-Use the terminal (or adb) as root to cd to the sdcard folder
4-Then type this "dd if=boot.img of=/dev/block/mmcblk0p8"
If you want to flash a custom recovery it works too, type "dd if=recovery.img of=/dev/block/mmcblk0p12"
Then you can flash whatever rom you want as long you don't use odin to flash an custom kernel or recovery you can keep your warranty intact (if you never flashed any custom kernel/recovery that is).
Keep in mind that this doesn't clear the counter only makes the triangle go away.
Click to expand...
Click to collapse
Custom recovery based on cm9 (5.5.0.4) posted (appears to work fine but more testing is required). Bootloop fixed. If you get stuck in recovery (unknown boot mode) go to "advanced" and choose "reboot recovery" when it is finished rebooting into cwm again choose "reboot system now".
DEVELOPMENT IS STOPPED. I no longer have the ace plus.
successfully flashed on my S7500DDLD1...only thing i noticed is after the flashing is complete phone doesnt boot normally but stays in download mode so i manually rebooted and i have ur kernel on my phone...take ur time and improvise it (startup scripts ,CM/MIUI support) , ALL THE BEST...
Wot's the benefit to flash custom kernel??.... Anyway gud step move ahead in making custom rom also for ace plus
Sent from my GT-S7500 using Tapatalk 2
deadwood01 said:
successfully flashed on my S7500DDLD1...only thing i noticed is after the flashing is complete phone doesnt boot normally but stays in download mode so i manually rebooted and i have ur kernel on my phone...take ur time and improvise it (startup scripts ,CM/MIUI support) , ALL THE BEST...
Click to expand...
Click to collapse
Odd mine rebooted and worked fine on first attempt. I've only messed with one script so far. I'm still thinking what I should add to the kernel.
I'm trying to build aosp but so far no luck.
balliboxer said:
Wot's the benefit to flash custom kernel??.... Anyway gud step move ahead in making custom rom also for ace plus
Sent from my GT-S7500 using Tapatalk 2
Click to expand...
Click to collapse
So far it's to have new governors and a new sheduler.
BUG :
1 . When on savagedzen gov unlocking the phone from sleep is delayed/laggy also if u r listening to music and the lock the screen then the music starts lagging tried increasing the min freq still the same , may be something like a deep sleep or sod bug..
deadwood01 said:
BUG :
1 . When on savagedzen gov unlocking the phone from sleep is delayed/laggy also if u r listening to music and the lock the screen then the music starts lagging tried increasing the min freq still the same , may be something like a deep sleep or sod bug..
Click to expand...
Click to collapse
I'm trying to reproduce the bug, but since my phone is still charging I can't seem to get the music lagging. What music app and music format are you using?
blackburner said:
I'm trying to reproduce the bug, but since my phone is still charging I can't seem to get the music lagging. What music app and music format are you using?
Click to expand...
Click to collapse
Stock music player , mp3 format...
Even while charging the bug exists...
deadwood01 said:
Stock music player , mp3 format...
Even while charging the bug exists...
Click to expand...
Click to collapse
Strange I can't seem to make it lag on savagedzen. The UI feels slower but music isn't lagging. Do you have any sound effect enabled?
Edit: I've got lag when using the EQ and waking the phone.
Edit 2: I've uploaded a hopefully fixed version, let's also hope that the changes that I made won't screw up the battery life.
flashed test kernel 3
the same bug exists wen used with EQ but the intensity of the bug is only 20% compared to the previous one also increasing the min freq to 480 completely nullifies the bug...also with EQ off the bug doesnt exist
will see how the battery life is... btw have u played with the drivers/bus to change the battery life...?
I can't get any lag at all now (after v3). Can you give my all your parameters? EQ settings, mp3 bitrate, where is your music stored and if using an sd card what type of sd card are you using.
I've set the minimum at 19Mhz and on air plane mode and by morning I still had the same battery than yesterday (89%).
The only thing that I changed was the cpu frequency table to include 800 Mhz at the same voltage than 600 Mhz and so far it seems ok, but might not be true to all phones.
blackburner said:
If anyone wants the sources just ask! (Maybe setting up a github account is a good idea?) Help is appreciated.
Click to expand...
Click to collapse
Setting up a github repo is indeed a good idea.Maybe then i can help
mb-14 said:
Setting up a github repo is indeed a good idea.Maybe then i can help
Click to expand...
Click to collapse
I've posted a link to the sources on github. I'm still learning how to use git. But I'm still uploading the sources.
Edit: Uploaded!
Can anybody help me with the cpu frequencies? I've cracked part of it but I don't know what to change since if OC to 1200Mhz I only get 600 Mhz performance
I've attached the table I'm using (xls since ods xda upload gave me the finger lol)
blackburner said:
Can anybody help me with the cpu frequencies? I've cracked part of it but I don't know what to change since if OC to 1200Mhz I only get 600 Mhz performance
I've attached the table I'm using (xls since ods xda upload gave me the finger lol)
Click to expand...
Click to collapse
Check my fork of your kernel on my github.I have got OC working.
P.S: Could you update your repo to the latest kernel source from samsung?My net speed is very sucky
mb-14 said:
Check my fork of your kernel on my github.I have got OC working.
P.S: Could you update your repo to the latest kernel source from samsung?My net speed is very sucky
Click to expand...
Click to collapse
I don't see any new kernel versions on the Samsung open source release center.. I'm still going to test oc did you change anything else than the CPU frequency table?
Edit: Overlclock is working! Thanks to mb-14!
Anyway it looks like the cpu when on OC is always working at the same frequency, since by overclocking it to 1017 I get an 150 ms reduction on setcpu native bench. And it remains the same for all the other frequencies.
For what I've understanded of PLL and CPU clocks looks like the cpu is running at 1200 MHz. (In the frequency table you can claim any frequency but it doesn't mean the cpu is running at that speed)
Edit: With OC my phone crashes after a while (ram dump mode)
Edit 2: Neocore doesn't seem to care too about the cpu frequency I set above the stock 1008Mhz. From 1017Mhz to 1200Mhz the score is always the same (85,6Fps)
Hello,
i have flash your kernel and its running very good!
Galaxy S7500
2.3.6 (S7500XXLA3)
Antutu 3596
Quadrant 2458
Neocore 85,4fps (1018mhz-1200mhz)
with OC 1,2GHZ and Performace mode
thanks!
I wait for the next version
heXXer321 said:
Hello,
i have flash your kernel and its running very good!
Galaxy S7500
2.3.6 (S7500XXLA3)
Antutu 3596
Quadrant 2458
Neocore 85,4fps (1018mhz-1200mhz)
with OC 1,2GHZ and Performace mode
thanks!
I wait for the next version
Click to expand...
Click to collapse
So you found no difference between overclocked frequencies too?
Unfortunately, no difference....
im upgrading the kernel...
my wish:
can you try to integrate the BLN mod?
I found a manual but I have to search again...
thanks
Edit: with new test_stable kernel (1008mhz) 84,3fps neocore
before with 1018mhz it was at 85,4fps
heXXer321 said:
Unfortunately, no difference....
im upgrading the kernel...
my wish:
can you try to integrate the BLN mod?
I found a manual but I have to search again...
thanks
Edit: with new test_stable kernel (1008mhz) 84,3fps neocore
before with 1018mhz it was at 85,4fps
Click to expand...
Click to collapse
the bln mod sounds useful I will check it out!
Edit: flash the new oc version
Yesss!It is very useful!!
neocore says 85,5fps
Edit: The statistic from nofrills cpu control shows that cpu step 61mhz not is in use.my min frequenz is 19mhz.
sorry for my bad english im german ;-)
who finds fault, may keep them ;-)

[Q] How to Overclock CPU & GPU that survives a reboot ??

I am new to overclock things, I am running on stock 2.3.6 today after a prolong research I managed to overclock my CPU and GPU. I've followed the following Method:
http://rootzwiki.com/topic/14511-opptimizer-projekt-milestone-overclock-for-omap4-devices/
I've done everything except the part i was not able to understand:
"Loading at Boot/Scripts:
The new update.zip's will install a basic init.d script to "/system/etc/init.d/00opptimize". If you've found settings that are "stable" for your device, and you'd like to run these at boot, you may edit this file accordingly. Be default, this script only loads the kernel modules. This requires your ROM to have init.d support to work. If you cannot find a method of getting init.d working, you can use Script Manager to execute this file at boot."
Now whenever I am restarting my phone it is going back to its stock speed, I just want to know that how can I set it to work even after restart.
I kindly request Jim, lkrasner, JRW 28,alteredlikeness,rdavisct,cogeary andApex_Strider to help me with this issue as i know our phone is capable of handling 1250MHz CPU and 384 MHz of GPU Speed.
Thank You.
john1989 said:
I am new to overclock things, I am running on stock 2.3.6 today after a prolong research I managed to overclock my CPU and GPU. I've followed the following Method:
http://rootzwiki.com/topic/14511-opptimizer-projekt-milestone-overclock-for-omap4-devices/
I've done everything except the part i was not able to understand:
"Loading at Boot/Scripts:
The new update.zip's will install a basic init.d script to "/system/etc/init.d/00opptimize". If you've found settings that are "stable" for your device, and you'd like to run these at boot, you may edit this file accordingly. Be default, this script only loads the kernel modules. This requires your ROM to have init.d support to work. If you cannot find a method of getting init.d working, you can use Script Manager to execute this file at boot."
Now whenever I am restarting my phone it is going back to its stock speed, I just want to know that how can I set it to work even after restart.
I kindly request Jim, lkrasner, JRW 28,alteredlikeness,rdavisct,cogeary andApex_Strider to help me with this issue as i know our phone is capable of handling 1250MHz CPU and 384 MHz of GPU Speed.
Thank You.
Click to expand...
Click to collapse
CPU overclocking can be tricky, if not downright frustrating as hell. Its a matter of testing, and running at slightly bumped-up speeds over the course of the OC'ing process to find a stable CPU frequency setting. Not all users can hit 1.2GHz or higher, whereas others can. It depends on the device, and nothing is really 'static' as far as "across the board" potential CPU clock speeds for our device. There is an init.d support .zip that can be flashed for roms that do not have init.d support (such as stock rom) but this will not work for ICS or JB versions since they are running newer kernels and as the init.d support is designed to work on the "older" kernel modules.
Sent from my MB865 using xda premium
I've downloaded moto_init_d-signed.zip and mo_simp_1.5_edison-signed.zip from http://code.google.com/p/opptimizer/downloads/list and flashed in CWM now I've init.d in my /system/etc/init.d
I've successfully overclocked my phone to 1250 MHz for CPU and 384 MHz for GPU Using:
# echo 3 1250000000 1390000 > /proc/overclock/mpu_opps
# echo 384000000 > /proc/overclock/gpu_opps
I've even confirmed my speed in setcpu and by using it says I am running on 1250 MHz, and my phone is very much stable I played modern combat 2 for around 1/2 an hour and used my phone for around 3-4 hours without any bootloop.
Only the problem is that I am not able to survive my overclock after reboot. After reboot it is reverting back to 1000Mhz
john1989 said:
I've downloaded moto_init_d-signed.zip and mo_simp_1.5_edison-signed.zip from http://code.google.com/p/opptimizer/downloads/list and flashed in CWM now I've init.d in my /system/etc/init.d
I've successfully overclocked my phone to 1250 MHz for CPU and 384 MHz for GPU Using:
# echo 3 1250000000 1390000 > /proc/overclock/mpu_opps
# echo 384000000 > /proc/overclock/gpu_opps
I've even confirmed my speed in setcpu and by using it says I am running on 1250 MHz, and my phone is very much stable I played modern combat 2 for around 1/2 an hour and used my phone for around 3-4 hours without any bootloop.
Only the problem is that I am not able to survive my overclock after reboot. After reboot it is reverting back to 1000Mhz
Click to expand...
Click to collapse
You have to physically change the echo table values using Root Explorer using the text editor. Look for this section in the 00pptimize file and change echo 3 at this code line:
# Droid3/Bionic/Atrix2 stock Settings
# echo 3 1000000000 1375000 > /proc/overclock/mpu_opps
# echo 2 800000000 1313000 > /proc/overclock/mpu_opps
# echo 1 600000000 1200000 > /proc/overclock/mpu_opps
# echo 0 300000000 1025000 > /proc/overclock/mpu_opps
Then, click back to save the .bak file and reboot. Changes should stick through reboot after this.
Sent from my MB865 using xda premium
It is reverting back to its stock after reboot even after editing echo values.
By the way thank you for your valuable replies I am working on it if I find a way I will post in general thread.
john1989 said:
It is reverting back to its stock after reboot even after editing echo values.
By the way thank you for your valuable replies I am working on it if I find a way I will post in general thread.
Click to expand...
Click to collapse
I will test also after FXZ'ing back to stock rooted 2.3.6. and let you know how I manage to OC this way. I PM'd you also, so I'll be getting back shortly with more info...
Sent from my MB865 using xda's premium carrier pigeon service
http://forum.xda-developers.com/showpost.php?p=27710171&postcount=118
this is the method PM'd by alteredlikeness to me.
Alteredlikeness I am bowing down your method works like charm and If XDA will allow me I will hit thanks button for minimum 1 million times
I would also like to thank Apex_Strider for showing patience and replying to all my questions.
Tomorrow I will post a fresh thread along with screen shots of overclocking that can survive even after reboot
john1989 said:
http://forum.xda-developers.com/showpost.php?p=27710171&postcount=118
this is the method PM'd by alteredlikeness to me.
Alteredlikeness I am bowing down your method works like charm and If XDA will allow me I will hit thanks button for minimum 1 million times
I would also like to thank Apex_Strider for showing patience and replying to all my questions.
Tomorrow I will post a fresh thread along with screen shots of overclocking that can survive even after reboot
Click to expand...
Click to collapse
Correct. I linked you to that post since it kind of shows how to get to and edit the 00opptimize file - also, make sure you delete the .bak that gets created - if there is a .bak file in the init.d folder, you will bootloop!
alteredlikeness said:
Correct. I linked you to that post since it kind of shows how to get to and edit the 00opptimize file - also, make sure you delete the .bak that gets created - if there is a .bak file in the init.d folder, you will bootloop!
Click to expand...
Click to collapse
Indeed, deleting the .bak file created after changing the echo table values is a key step. I forgot to tell him that, since I always delete without even thinking about it -done it so many times it almost comes as an involuntary response after editing the CPU frequency scaling!
Sent from my MB865 using xda's premium carrier pigeon service

[Q] CPU's rude frequencies

Hello xda!
Theres something strange going on with my Sensation..
I can not set up my own frq's.
Everytime I set some it goes higher. For example..
I am @ 1080-475 I switch the window to set some profiles and back to the main. bah.. Current max: 1134.. 1450.. 1552.. 1134.
Bar I set before should lock it @ 1080 and it does but just in practice.
I was trying to set some other governors with no succes. It goes higher everytime.
Root acces was given, ROMs tested.
I got phone from my brother. Is it even possible to change some hardware settings or wtf is it that block my ideas????
Lynxen said:
Hello xda!
Theres something strange going on with my Sensation..
I can not set up my own frq's.
Everytime I set some it goes higher. For example..
I am @ 1080-475 I switch the window to set some profiles and back to the main. bah.. Current max: 1134.. 1450.. 1552.. 1134.
Bar I set before should lock it @ 1080 and it does but just in practice.
I was trying to set some other governors with no succes. It goes higher everytime.
Root acces was given, ROMs tested.
I got phone from my brother. Is it even possible to change some hardware settings or wtf is it that block my ideas????
Click to expand...
Click to collapse
what rom do you have?
insert this line in init.qcom.post_boot.sh file
echo the value > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
in the <the value> put your desired freq
do the same for cpu1
then reboot
note: put the lines where it starts with :
case "$target" in
"msm8960")
rzr86 said:
what rom do you have?
insert this line in init.qcom.post_boot.sh file
echo the value > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
in the <the value> put your desired freq
do the same for cpu1
then reboot
note: put the lines where it starts with :
case "$target" in
"msm8960")
Click to expand...
Click to collapse
I am using SlimKat and Viper. Same bug excist @ both of the roms. Kernels provided with shantur, sebastian and libelty are bugged.
I've changed those values with no results. Once I was trying to set maxcpu_info my root explorer stucked @ saving process. Sth was remaking values @ 1540000 mhz just after rootacces was given to explorer. Some deep **** is going down there.
That's why Sensations are overheating, it's same bug threw all stock kernels/rom @ this forum.
Max values can not be set! They re permanent for some reason - failed coding I suppose.
Libelty Kernel fix Vipers issues. There's no kernel working with KK.
Lynxen said:
I am using SlimKat and Viper. Same bug excist @ both of the roms. Kernels provided with shantur, sebastian and libelty are bugged.
I've changed those values with no results. Once I was trying to set maxcpu_info my root explorer stucked @ saving process. Sth was remaking values @ 1540000 mhz just after rootacces was given to explorer. Some deep **** is going down there.
That's why Sensations are overheating, it's same bug threw all stock kernels/rom @ this forum.
Max values can not be set! They re permanent for some reason - failed coding I suppose.
Libelty Kernel fix Vipers issues. There's no kernel working with KK.
Click to expand...
Click to collapse
liberty's and sebastianFM's kernel aren't bugged
i have changed cpu frequencies successfully
in vipers rom disable pnpmanger from venom tweaks
then put your desired cpu freq
about slimkat rom i can't tell you somethig because i have never used that rom
also in stock kernels you can't changed nothing
they do not support overclock or underclock
rzr86 said:
liberty's and sebastianFM's kernel aren't bugged
i have changed cpu frequencies successfully
in vipers rom disable pnpmanger from venom tweaks
then put your desired cpu freq
about slimkat rom i can't tell you somethig because i have never used that rom
also in stock kernels you can't changed nothing
they do not support overclock or underclock
Click to expand...
Click to collapse
It's possible to scale CPU frequency in slimkat ROM too.

Categories

Resources