yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] ericwgarza1:
No, you must have a kernel with init.d support.
[Samsung Galaxy Nexus] ÜBER™:
:D
[Samsung Galaxy Nexus] cheddaface:
What kernel are you using?

Also with this work with franco and or samurai ? i keep switching back and forth not sure what one is better with black ice rom
[Samsung Galaxy Nexus] ks2332:
It causes reboots on Franco milestone 3
[Samsung Galaxy Nexus] jten9:
I've not had any reboots with Franco m3...

Sent using Tapatalk 2
[Samsung Galaxy Nexus] firket2000:
I got reboots with Franco m3 but the latest James Bond works well for me.
[Samsung Galaxy Nexus] ericwgarza1:
I think francos cpu tweaks are built into the kernel rather than in an init.d script and the two conflicting scripts are causing the reboot.
[Samsung Galaxy Nexus] firket2000:
Love the script it's been working great thanks for getting it working for us.
[Samsung Galaxy Nexus] cheddaface:
so what kernel is every one using on with this if franco cuases reboots?
[Samsung Galaxy Nexus] jimmy2823:
i'm using samurai, but i been getting very short battery life
[Samsung Galaxy Nexus] ericwgarza1:
Download cpuspy from the market & see if your phone is deep sleeping.
[Samsung Galaxy Nexus] twoeleven99:
I have a couple init scripts for some reason which one exactly woukdnit be so I an delete the script
[Samsung Galaxy Nexus] ericwgarza1:
The scripts for the battery saver are 2cpu_governor, 3cpu_freq_scaling, 4undervolt.
[Samsung Galaxy Nexus] jimmy2823:
so after charging the phone all night, i wiped and reflashed everything and this is what i got.
[Samsung Galaxy Nexus] lil-tom7:
Just flashed it last night and got this today its so good :)
[Samsung Galaxy Nexus] jgalan14:
What kernel are you using ?
[Samsung Galaxy Nexus] patass:
if your wifi was on the whole time, i'm not impressed.
[Samsung Galaxy Nexus] lil-tom7:
Im on SAMURAI.

I wasn't the whole time. So what are you using to do better. Because i thought this was good.
[Samsung Galaxy Nexus] patass:
cm9 with franco is comparable, some days are better than others. The battery pretty much just stops draining once you turn wifi on.
[Samsung Galaxy Nexus] lil-tom7:
Why do I have no deep sleep?
[Samsung Galaxy Nexus] lil-tom7:
I'm going to start looking for the best battery combination from rom and kernel. If anyone has suggestions I'm up for them.
[Samsung Galaxy Nexus] ericwgarza1:
If you were using a fast charge setting and connected via usb it seems to keep the phone from deep sleeping. Mine did the same thing yesterday. I'm testing out using the powersave governor while the screen is off to see if it helps at all. Will report back.

EDIT: uploaded test version 1.1.1. The previous version wasn't actually using the screen off profile so I enabled it and make the screen off governor = powersave.
[Samsung Galaxy Nexus] lil-tom7:
How does one make sure that's off? And change governor?
[Samsung Galaxy Nexus] ericwgarza1:
I use glados kernel and the app that goes with it so it's pretty easy for me to tell. Check with whatever kernel thread to see if that is a feature and how to tell if it's off. usually involves a "cat" adb command to check and an "echo" command to set the value on or off.
[Samsung Galaxy Nexus] lil-tom7:
Whats the best rom and kernel or should i just use this because i use my phone alot and wonder what will make it last. What every body using and what kind of battery are they getting?
[Samsung Galaxy Nexus] Chyrio:
Does the stock cm9 kernel support it?
[Samsung Galaxy Nexus] dallastx:
Thats a good question i was about to ask that...Any takers????
[Samsung Galaxy Nexus] ericwgarza1:
Can one of y'all pull the init.rc file and PM it to me? I'm pretty sure it does support init.d scripts but Id like to verify the 3 lines are actually there.
[Samsung Galaxy Nexus] ÜBER™:
Just as a comparison.

Samurai kernel. Fiops I/O and On demand Governor. No script.
[Samsung Galaxy Nexus] lil-tom7:
Wow is that with the script?
[Samsung Galaxy Nexus] ÜBER™:
NOPE ;) if you look above you screen shots youll see that i said "no script"

edit : my bad... it was posted incorrectly.
[Samsung Galaxy Nexus] lil-tom7:
So what rom and kernel are you running?
[Samsung Galaxy Nexus] ÜBER™:
Cm9 and Samurai kernel.
[Samsung Galaxy Nexus] ericwgarza1:
Nice but wi-fi is a lot easier on the battery. Were you using setcpu, system tuner, or another cpu scaling program?

On another note I've actually been thinking about checking out CM9 lately.

Oh yeah, I'm going to test my default governor on conservative and see how things work out. I started using this script cause I got terrible battery life with every rom and kernel (heavy user). My only hope is to squeeze a couple more hours of awake time outta this phone.
[Samsung Galaxy Nexus] lil-tom7:
Yes im a heavy user too so please let me know what you find and it will be alot on 3g and some on wifi that im looking for. So yes yes yes let get this battery amazing up in here :p
[Samsung Galaxy Nexus] ÜBER™:
Like wise I'm a heavy user. I will run a test tomorrow and suffer through my slow 3G which is usually faster than most. Hopefully the 3G Turbo charger will help some. I was using voltage control. Just had it on ondemand and fiops I/O. No other tweaks.
[Samsung Galaxy Nexus] lil-tom7:
Please do and whats fiops how do i do this one?
[Samsung Galaxy Nexus] ÜBER™:
You use voltage control to change I/O but its fiops by default on the samurai kernel so I wouldn't worry. I will test my battery life over my 3g tomorrow.
[Samsung Galaxy Nexus] lil-tom7:
Ok thanks what do you use to change volts?
[Samsung Galaxy Nexus] ÜBER™:
Voltage control :D:D:D but you can't. Besides this script does that.
[Samsung Galaxy Nexus] lil-tom7:
What are your volts at?
[Samsung Galaxy Nexus] ÜBER™:
Dunno don't set them just using the default voltage that comes with the samurai kernel.
[Samsung Galaxy Nexus] Product F(RED):
I flashed the 1.0 script yesterday and have been using it since then. I notice a big difference in battery life, and I'm a pretty heavy user myself (who also gets terrible 3G speeds, like most Sprint users :P). I notice that the phone goes into deep sleep much easier now than it used to, resulting in much more battery saved. Before, battery used to drain with the screen off for no reason, but it's minimized now. I'll considering trying 1.1.1 provided it doesn't cause the Sleep of Death bug.
[Samsung Galaxy Nexus] ericwgarza1:
No SOD during my testing. :D
[Samsung Galaxy Nexus] ÜBER™:
3G battery life my god its finally over.
[Samsung Galaxy Nexus] ericwgarza1:
this is without the script?
[Samsung Galaxy Nexus] Product F(RED):
I'm aware of how to edit the script(s) within the zips. Where are the threshold values for when the phone underclocks to 1.0 GHz? I game quite a bit and it's really easy to go down to 84% battery very quickly. I want to change it more to like 65%.
[Samsung Galaxy Nexus] ericwgarza1:
In the screenstate_scaling file change the value of profile 1 from 85 to whatever u want.
[Samsung Galaxy Nexus] firket2000:
Anyone try this with jb yet and if so which kernel
[Samsung Galaxy Nexus] nickhernandez:
I second that question.
[Samsung Galaxy Nexus] JohnCorleone:
Oh damn, how did I not see this?! So is it set up like he has it on ET4G 100-85 1200, 85-35-1000 and 35-0 is 800 or is 85 down 1000? Also is there a screen off profile?...EDIT..reading the OP nay have helped:rolleyes:

Sent from my SPH-D710 using Xparent ICS Tapatalk 2
[Samsung Galaxy Nexus] JohnCorleone:
Yeah i used to set it to 70% on my Epic Touch only because 100-85 seems to go by fast on ICS then things really seem to slow down battery drain wise

Sent from my SPH-D710 using Xparent ICS Tapatalk 2
[Samsung Galaxy Nexus] ericwgarza1:
I have the script setup now too run @ 1.2ghz until 50% then 1.1ghz after that. Screen off profile also now initially looks for a screenoffmax file. :D
[Samsung Galaxy Nexus] iSkylla:
When I install 1.1.1 on CM9, the phone freezes at Google loading screen.
[Samsung Galaxy Nexus] ericwgarza1:
Yeah, I never got it to wrk with default cm9 kernel. Try deleting the UV file from the zip and flashing a different kernel.
[Samsung Galaxy Nexus] JohnCorleone:
Hey that actually sounds perfect! I didn't think about only going down to 1.1!!

Sent from my Nexus S 4G using Xparent ICS Tapatalk 2
[Samsung Galaxy Nexus] ericwgarza1:
Yeah I used 1.1 cause developers use different frequency steps and I wanted the phone to be at the approx 1ghz step rather than the 700mhz step.

Anyway, below is my latest revision. I'll also add to the OP for easy finding. :cyclops:
[Samsung Galaxy Nexus] JohnCorleone:
I appreciate you sharing that! I am going to try it out today

Sent from my Galaxy Nexus using Xparent ICS Tapatalk 2
[Samsung Galaxy Nexus] ElfinJNoty:
It would be great to see this updated for JB. I've installed the latest on unofficial aokp nightly 8/7 build and it simply doesn't load the script at boot.

Using lean kernel, tried a few variants. Just seems like script is ignored as my CPU spy doesn't show the CLO k speed changing as it should
[Samsung Galaxy Nexus] Reno Skyy:
This doesn't work for jb?
[Samsung Galaxy Nexus] ericwgarza1:
This will work with ANY rom that has init.d support. Please check your kernel devs thread to verify init.d support.
[Samsung Galaxy Nexus] rjwriter78:
I just uploaded it and I'm on EOS ROM. It loaded with no problem. I'll report back with battery savings.
[Samsung Galaxy Nexus] Carbajal3009:
Thanks a bunch for this OP. Will try this out and let you guys know my experience with it. :D

Sent from my Galaxy Nexus using Xparent ICS Tapatalk 2
[Samsung Galaxy Nexus] godsonbx:
I'm glad I made a backup before I flashed this. Just a quick heads up, my phone was stuck at the Google screen when booting up. Never made it to the boot animation. I am running cm10 euroskank nightly with 007 kernel.
[Samsung Galaxy Nexus] mled203:
So do I just flash this and it works? And if I restore my stock ROM this will be gone?
[Samsung Galaxy Nexus] mled203:
Kernel

Where do I get Samurai kernel?
[Samsung Galaxy Nexus] Bfitz26:
So what exactly does it mean in CPU spy under "deep sleep" sounds dumb I know just curious though
[Samsung Galaxy Nexus] ÜBER™:
Exactly that the processor is no longer active.

Sent From My Toro+ via RED Tapatalk
[Samsung Galaxy Nexus] Bfitz26:
I figured that was the case how ever us this what causes the phone to soft boot hard boot etc..
[Samsung Galaxy Nexus] ElfinJNoty:
I am wanting to try out the new Nyan kernel. Just wondering if this script would conflict with the Nyan kernel's default settings.

And if I want to remove this scripts under volting functions, what exactly would I be deleting(in init.d I presume?) I have a bunch of different scripts in that folder from my ROM, don't want to remove the wrong one/s

Thanks
[Samsung Galaxy Nexus] coldblooded79:
I ran the script today. Not too Shabby. I was sitting on around 50% after 8 hours with an hour screen on time. I'm on Franco r231, AOKP 8-18 build which is Jellybean. No reboots or issues.
[Samsung Galaxy Nexus] burntkookie:
How do I remove this script?
[Samsung Galaxy Nexus] MBQ_:
Delete the necessary files or reflash the ROM
[Samsung Galaxy Nexus] Protibus:
Not meaning to sound like an idiot but there are 3 zip files shown. What is the differences between the 3.

---------- Post added at 02:55 PM ---------- Previous post was at 02:50 PM ----------

Also will this work on any Gnex regardless of carrier used?
[Samsung Galaxy Nexus] ericwgarza1:
I personally don't even use this script anymore. The only real benefit this script over some kernel control apps (ie: Franco's app), is the ability to change the governor while the screen is off. Plus now there are some kernels that set scaling properties that conflict with this script in their *.rc files so I would just recommend buying Franco's app to avoid all that hassle and still get the 97% of the benefits.
[Samsung Galaxy Nexus] Protibus:
Thanks. After thinking about it, you're right. The tools out there now from the kernel devs give the ability to just about tweak everything to your liking or your batteries liking.
[Samsung Galaxy Nexus] roshandes:
[MENTION=980099]ericwgarza1[/MENTION] bro.. can you make this script for LG g Pro also? it has 1.70GHz Qualcomm Snapdragon 600 processor... please bro.....
[Milestone 2 Android Development] skeevydude:
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 300@20, 600@40, and 1000@54. 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.
[Milestone 2 Android Development] oh0:
thx for this work but when i install this zip over cwm5 i become an "Status 6" error.
[Milestone 2 Android Development] skeevydude:
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.
[Milestone 2 Android Development] oh0:
so the installation works. but wenn i select one of the governors it go´s back to ondamed. I use CM9 with GB Kernel.
[Milestone 2 Android Development] skeevydude:
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.
[Milestone 2 Android Development] oh0:
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.
[Milestone 2 Android Development] skeevydude:
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
[Milestone 2 Android Development] oh0:
ok i found the mistake "Load all Modules" was disable.
[Milestone 2 Android Development] skeevydude:
So its working now?
[Milestone 2 Android Development] oh0:
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 ;-)
[Milestone 2 Android Development] skeevydude:
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.
[Milestone 2 Android Development] oh0:
terminal shows me: "sio_iosched 3444 2 - Live 0xbf0d4000"

I think it works.
[Milestone 2 Android Development] fedegin:
this really improves the performance of the phone? I install speedyv7! are similar?
[Milestone 2 Android Development] skeevydude:
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:D

Thanks for pointing them out.
[Milestone 2 Android Development] djlooka:
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?
[Milestone 2 Android Development] skeevydude:
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.
[Milestone 2 Android Development] Megalith27:
Will this work with JB?
[Milestone 2 Android Development] Lean946:
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.
[Milestone 2 Android Development] Alchedin:
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!
[Milestone 2 Android Development] Megalith27:
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.
[Milestone 2 Android Development] Alchedin:
Thanks Megalith got it working, I've set the voltage to 52 for 800 Mhz which I presume to be correct?

300 mhz - 30v

600 mhz - 46v

800 mhz - 52v

1000 mhz - 58v

Cheers
[Milestone 2 Android Development] Megalith27:
Not a prob. The generic formula for Vsel based on frequency is:

Frequency/20 + 4 = Vsel value

i.e. 300/20 + 4 = 19v

But like I said it is very generic and sometimes, if values are low, may cause hotboots...so if you get boots on high demand increase 2 highest vsel values, if boots are occuring on low demand increase lower ones, usually by 2
[Milestone 2 Android Development] gambiarraweb1:
what is your current setup? could post so I can usala in JB 4.1.1 rom?
[Milestone 2 Android Development] Megalith27:
My current settings are

300@20

600@31

900@42

1200@58

These are and have been working fine for me on MIUI v4, CM9 4.0.4 and currently on CM10 tezet's latest build. But not guaranteed that will work as well for you, so if you're using MS2T save your current settings under one of the profiles, so that you can restore if you're not happy...

Hope this helps
[Milestone 2 Android Development] gambiarraweb1:
Thank you, again my rom is still very slow, do I have to do full wipe?

which rom should I install before this last updat, and if necessary the seje wipe!

recommend or not to use the kernel Tezet?

which step should I do?
[Milestone 2 Android Development] skeevydude:
I'm not gonna even comment on what can and can't be done with the custom kernel. I'll let the guys like Quarx who know the most do that part.

In the meantime I've compiled some new io schedulers for us -- deadline and anticipatory. The zips non flashable and everything needs to be done manually

Taken from another thread here on xda(For the love of God read that thread from top to bottom and you'll know everything needed to know about governors, schedulers, etc)

To use (instructions for deadline)

extract zip

copy\push files to /system/lib/modules/

chmod 0644 /system/lib/modules/deadline-iosched.ko

insmod /system/lib/modules/deadline-iosched.ko

Once the copy and chmod are done, you can load on boot by using an init script like so

insmod /system/lib/modules/deadline-iosched.ko
echo "deadline" > /sys/block/mmcblk0/queue/scheduler

//it may be echo "DEADLINE" > /same/as/the/rest -- haven't done the init script myself since I've only insmod loaded them :p

//Depending on how PA responds the next few days with deadline, it may be the new io scheduler I use

//Built from Bravo Froyo Kernel Sources, should work on Defy Froyo as well. Not sure about Defy\MS2 GB kernel

//Gonna look into other governors now that I've successfully compiled the kernel and some modules for it

//Still haven't gotten 2nd-boot kernel to work.....yet