yashsingh1/xdaforums huggingface dataset:
[Droid Eris Android Development] natemup:
noob here, on a Mac laptop. Where can I find the absolute noobiest explanation of how to get the Collins tweak on my phone. I tried my hand at ADB shell once, and it was disastrous to say the least. I saw a Windows app that made it hella easier, but I can't use that on my Macbook of course. The stuff in the first post here is quite confusing. Is there any hope for an Eris-based noob like me?
[Droid Eris Android Development] dwcasey:
You need to have a rooted phone and probably a custom ROM already installed on your phone.

Download the .zip file in in the first post of this discussion thread

connect your phone to your computer and copy/paste the .zip file over to your phone

boot into recovery, flash the .zip, reboot

method #1

when the phone is back up, you will need to find a program in the market called Terminal emulator. Start terminal emulator and at the # command prompt type

su

Then type batt-cfg

Follow the prompts

method #2

only diff is after you reboot your phone from flashing the .zip you downloaded from the first post in this thread, you would connect phone to your PC and run the adb tool. If you have the Android SDK installed go to it's /tools directory from a command prompt on your Mac ( using iterm or something similar...DOS command prompt for Winders users ). Once you start a terminal window on your Mac, and you are in the tools directory, type

adb shell

You should now have a # prompt. At the # prompt, type the batt-cfg, same as if you were using terminal emulator on the phone itself.

If you do not have the Android Development Kit installed, look around on how to install it on your Mac or just stick with method #1.
[Droid Eris Android Development] vacobra1:
I didn't mess with anything
[Droid Eris Android Development] dwcasey:
I dunno then. See if you can run batt-rm.sh and then maybe re-download and reflash the .zip.
[Droid Eris Android Development] eldiente:
What if you are going to be using smartass?
[Droid Eris Android Development] bigshotrob22:
Dieing Battery

Hello-

I did this tweak this morning and my battery is almost dead. I did get a number after I did the pidof batt.sh. Attached is my Diag file.Maybe I am doing something wrong or my battery just sucks...

Thanks in advance..
[Droid Eris Android Development] natemup:
I'm having the same issue. Does that mean the tweak isn't actually working? It says "settings saved" then that line 164 nonsense. My battery life is still pretty craplicious...
[Droid Eris Android Development] rick311:
this tweak didnt do squat for me. went back to set cpu and im seein about a day and a half with pretty heavy usage.
[Droid Eris Android Development] DS36:
wow you have improved since we first talked.

You used to get 8 hours now a day and a half
[Droid Eris Android Development] rick311:
Yea, all thanks to your advice on how to properly calibrated a battery.
[Droid Eris Android Development] Izeltokatl:
Decad3nce

any news on the app version of this script?
[Droid Eris Android Development] wwonka69:
I installed this script yesterday and I fully charged my battery and its now 15+ hours later and I am still over 50%. I wish I had found this mod sooner.

Amazing.

Kudos to the Makers.
[Droid Eris Android Development] Izeltokatl:
anyone have a copy of the file? I lost it and am trying to bring my eris back to life.

thanks!
[Droid Eris Android Development] TarheelChuck84:
Any word on this being of any use/compatible when running CM7? I'm currently running GSB v3.8.

Sent from my GSB Eris using the XDA Premium app.
[Droid Eris Android Development] Izeltokatl:
It doesn't work on Deadly Sense, just tired it. Do a nand backup, flash it and test it out.... it wouldn't even respond on command in terminal emulator so the script definitely didn't work.
[Droid Eris Android Development] CondemnedSoul:
I have used this before on my cm7 ROM and it worked fine for me.

Sent from my ADR6300
[Droid Eris Android Development] kylegrant:
hey does anybody have this script still available?? thanks.
[Droid Eris Android Development] MrSpartan:
Here you go, though I adjure you to put the script via Root Explorer. Don't flash it.

In Root Explorer, just extract the files from the script and paste them in the their respective locations. In the system of the phone.

Decad3nce, if you happen to find this link redundant and want it removed just say; since I am not authorized to be providing such provisions without your discretion. (Just trying to help :) )

Download:

http://www.2shared.com/file/ss33auT_/Decad3nce-battery-tweak-v3-4f2.html
[Droid Eris Android Development] Decad3nce:
No log command? teh eff. lol

mount -o rw,remount /dev/block/mtd3 /system
rm /system/bin/batt.sh;
rm /system/bin/batt-cfg;
rm /system/etc/batt.conf;
rm /system/bin/batt-diag;
rm /system/bin/batt-rm.sh;
mount -o remount,ro /
exit;

Just paste that in shell.
[Droid Eris Android Development] swaggerwocky:
Apparently those files don't exist, and confirmed through Root Explorer. I'll try reflashing.
[Droid Eris Android Development] Decad3nce:
:facepalm: 10char

lol
[Droid Eris Android Development] swaggerwocky:
Reflashing didn't help, pidof still not returning anything. No idea what's causing this.
[Droid Eris Android Development] Decad3nce:
Run through batt-cfg.. just hit preset #2 for the time being. then pidof batt.sh again.

If that doesn't work, then I'm not sure atm
[Droid Eris Android Development] swaggerwocky:
Pretty much the same result. log dependency is still blank. Perhaps I'll try this again when KaosFroyo V35 is released. Thanks for the work though!
[Droid Eris Android Development] gleonard1:
I'm getting the exact same results as burndtjamb.

:(
[Droid Eris Android Development] joeyfeffer:
I'm getting the samething as well I think its because we all downloaded the one from here http://www.primoweb.com/froyo/battery_tweak_v3.html and not the ported version thats in this post.

Is it just safe to flash the BatteryTweakEris.zip over it?

EDIT: So yeah I've done exactly all you've told burndtjamb to do and now it does say all the files are gone, if I try to do "batt-cfg" says command not found. Files appear to be gone after running "batt-rm.sh" even though it said command not found. So I then flashed the BatteryTweakEris.zip and still ran into all the same problems. Not being able to save settings etc.., so then followed same procedure to remove and got all the same results. Command not found after typing "batt-rm.sh" and pasting

mount -o rw,remount /dev/block/mtd3 /system

rm /system/bin/batt.sh;

rm /system/bin/batt-cfg;

rm /system/etc/batt.conf;

rm /system/bin/batt-diag;

rm /system/bin/batt-rm.sh;

mount -o remount,ro /

exit;

says, "no such file"

So I'm at a cross roads now...
[Droid Eris Android Development] ahjee:
After using this apps started closing themselves then my homescreens all went blank then a bootloop, had to reflash my rom
[Droid Eris Android Development] workshed:
Thank you for doing this Deca. It's installed and running fine so far, pidof returned 68.

One question, when I run batt-diag, would it be normal to have errors not finding files for for certain cpu scaling modes like, 'ondemand' and 'performance' if I selected 'Interactive' during config?
[Droid Eris Android Development] chimpsnest:
New to this tweak, very interested and not afraid of messing phone up. Just a question or two.

Have downloaded and I know that I'll need to flash it like a normal .zip via recovery, however, once the phone reboots is this tweak program going to pop up and ask me questions, or will it just default to a nice setting on its own that I don't really have to touch unless I want to.

I've read page 1 a couple times and am going back to do so again.

EDIT: Didn't have a terminal em on my phone which was making this process more confusing as I've never used adb ... so I've got the emulator running and, hopefully, everything will go smooth from here.

I notice that w/the presets one is over 710 and the other is under, I think I'm more inclined to try the under (#2 I think) as when I was using SetCPU anytime I went over 710 the phone w/act funky and freeze, have to pull battery, etc.

SetCPU has been uninstalled and I have no OC widget.

Just want to get it right before I jump in head first.

Tx
[Droid Eris Android Development] workshed:
No popups, I did it all in adb shell.

pidof batt.sh

If that returns a # you're running it. You'll need to run batt-cfg again in terminal or adb to make changes from that point on.
[Droid Eris Android Development] workshed:
Damn conputah!
[Droid Eris Android Development] 2wisted:
can Autokiller be ran with this program or will this also have to be removed?
[Droid Eris Android Development] ahjee:
My bad, I'm guessing the reason I had those problems mentioned a previous post is because I ran the CFS tweaks. Without doing that all is well. Thanks deca
[Droid Eris Android Development] eklipze:
I run the cfs tweaks and have not had any issue. Be sure to give the diagnostic info for your problem so the devs can see what's up.
[Droid Eris Android Development] ahjee:
I would have like to have given a diagnosis but couldn't cause I had to reflash the Tom.
[Droid Eris Android Development] Riley1524:
Seems to be working great for me on Tazz Froyo. I wanted to try the CFS tweak but I don't want to take a chance at breaking GPS
[Droid Eris Android Development] Decad3nce:
I'm still completely unsure as to why this happens. Try wiping the cache partition because that maybe where it's getting 'cached' and doubled over.

Other than that, try flashing whatever ROM you're running back over, it should give you a clean slate without losing any 'data'.

Yes, the ondemand and and performance sub directories will only exist when they are active.

Good luck

Autokiller should work fine with this, no interferences.
[Droid Eris Android Development] Decad3nce:
It doesn't 'break' GPS. And you can always jump in the configs and change it back so that gps works. Though it takes a good 30 seconds for it to reset correctly.

The script also automatically turns off the CFS tweaks whenever the navigation app is active. Again, 30 second delay.
[Droid Eris Android Development] workshed:
I'm using the CFS tweaks. When I run nav, it just sits there searching for GPS, nothing changes. Location is way off... gonna test some more...
[Droid Eris Android Development] Decad3nce:
Like I said.. there's a delay.

Mostly due to how this script works, could take up to 60 seconds for the polling interval to notice that the nav app is even running.
[Droid Eris Android Development] g00gl3:
Decad3nce - First I want to say thank you for all your efforts to improve the Android community and our devices!

I ran into the "... log : command not found" error as mentioned by others before. However, it seems that it has made the tweaks anyways once I ran batt-cfg. I have attached the output log for you. Do I need to make any other changes to get the full experience? Thanks in advance.
[Droid Eris Android Development] Izeltokatl:
Cool tweak, flashed the posted link in OP. Flashed fine, booted fine. Ran terminal Emulator on my phone, typed pidof batt.sh and that came up fine, then typed batt-cfg set it to 1, enter (allowed root) then after that my phone locked up for 5mins, so I pulled the battery.

How can I confirm the settings stuck? Or did they revert back? I assume its overclocking to high? My phone usually locks up after 720ish.... 710 is the most stable clock speed on my phone. Should I just do the batt-cfg then use option 2? Or do a custom setting?

on a side note I am using the CFS kernel, V5
[Droid Eris Android Development] workshed:
Ok, went outside and ran nav. Took about 3.5 mins to lock on, but then it did and was totally accurate, very nice.

So I can confirm that nav can take a bit to lock on, but it DOES work. Just stay calm lol.

Just fyi for anyone else.

Thanks again for all the work/help, Deca!
[Droid Eris Android Development] Izeltokatl:
you may want to install the GPS Status app, then run it, hit menu, Settings, GPS & Sensors, Manage A-GPS State, then hit Reset, Manage A-GPS STate again, hit Download, then finally Califbrate roll and pitch (set it on the ground and run it).

that should speed up your GPS locations on maps. Thats what I do normally when its running slow to locate me.. not entirely sure if that will work in this battery tweak senario.

I'm not running the CFS tweaks under this script, since I use the CFS V4(now 5) kernal.
[Droid Eris Android Development] Decad3nce:
I guess the 'log' command just doesn't exist in whatever rom you're using. Disregard that error for the time being. If the tweaks saved, and you see a number after typing 'pidof batt.sh' then you should be fine. Seems like KaosFroyo is the only ROM having problems.

Your phone locked up because it probably couldn't handle 806. The settings 'stuck' if you

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

and it returns whatever you set the max at.

The rest is up to you.
[Droid Eris Android Development] Decad3nce:
You can also check if everything stuck just by checking the configuration file in system/etc labeled batt.conf
[Droid Eris Android Development] chimpsnest:
Reboot Q

I think I understand correctly that if I'm using a CM ROM (I am, Tazz's Black Rain) that the settings will stay put upon a reboot of the device? ie, I don't have to enter terminal every time I reboot to pick my setting do I?

Right now just running the pre-configured setting #1, phone seems to be great.
[Droid Eris Android Development] Decad3nce:
Yep, batt.sh runs at boot. It'll definitely work on Tazz's ROMs because they're a direct port of CM6 from the HeroC which has all the required prereqs.

If you want to check that it runs at boot, just before your phone turns on:

adb logcat | grep collin_ph
[Droid Eris Android Development] workshed:
Ahh, thank you sir, good to know!

Yeah, I've been using it just fine on BlackRainv2 also, no probs.

So, if i'm using the CFS tweaks with CFSv5 kern it's pointless? The CFS kern already has the tweaks enabled?
[Droid Eris Android Development] Izeltokatl:
ok option 2, 691mhz works fine, no lockup.

but might I suggest you set this option 2 to 710mhz as this is what almost all the phones highest (safest) settings is by default in almost every custom rom. SetCPU defaults to this setting on all the froyo roms when you install it based on the devs levels since its pretty standard that this is the max speed on average without causing the majority of people issues.

just my 2 cents, other than that... lets see how this run over the course of the next several days.

thanks for your work =-)
[Droid Eris Android Development] Decad3nce:
The CFS tweaks are only for CFS kernels. It's not enabled on default in the configurations.

If you wanted to do that, you'd have to change sched_features.c before you compile the kernel.
[Droid Eris Android Development] Decad3nce:
If this is what most people want, it's a quick change.
[Droid Eris Android Development] Izeltokatl:
Well I'm only speaking for myself, and what i've seen on all the FroyoRoms and most of the Eclair Roms... it seems they all set their governors at 710400. but many can go higher. I believe 710400 is the norm though, but others would have to chime in. Or ask the ROM devs and see what they think.

I did manage to use custom settings and just change the top clock to 710400 manually... very easy to do that way.

I'm curious what exactly the CFS tweak does to the CFS kernal.... what is the true benefit? If it makes the CFS like the BFS why not just use BFS?

How does the CFS tweak on the CFS kernal compare to just the plain old BFS kernal?
[Droid Eris Android Development] workshed:
Thanks deca, cleared that up for me perfectly.

Yes please, and thank you :D
[Droid Eris Android Development] workshed:
That is an excellent question... I'm also curious.
[Droid Eris Android Development] Decad3nce:
I think I detailed that in the first post:

but, it just echos NO_NEW_FAIR_SLEEPERS to sched_features.

It makes CFS behave like more of a traditional scheduler. You could use BFS, but you'd always be stuck with how it behaves. This way you can switch on the fly(sort of).

The rest, find out! :P
[Droid Eris Android Development] Izeltokatl:
yes, I read that, but I guess it wasn't clear enough to me on what differences... and yes, technically you can change this on the fly faster.... I still don't get the clear differences beyond what your repeating from your OP. Eh, no worries, trying to steer clear of stupid questions. :-) I guess i'll just google your "NO_NEW_FAIR_SLEEPERS" phrase and see what turns up...
[Droid Eris Android Development] Decad3nce:
http://www.mail-archive.com/android-freerunner@android.koolu.org/msg01549.html

Oh, btw.. Updated the download.
[Droid Eris Android Development] Izeltokatl:
yes, I found that also.... but check this out, a little more insight after going through various google links.....

http://xdaforums.com/showthread.php?t=689829

---------------------------

Tuning the CFS scheduler:

Even it's said that BFS may be better for small devices it's also possible to configure CFS for our needs:

While searching around I learned that the behaviour of the CFS scheduler can be influenced at runtime by a few parameters. All these settings can be applied at runtime and will be gone after a reboot. So it is safe to play around a little bit.

One interesting parameter I found was "NO_NEW_FAIR_SLEEPERS". As stated by some people on the Linux kernel mailinglist :

NO_NEW_FAIR_SLEEPERS is something that will turn the scheduler into a more classic fair scheduler (like BFS is too)

If this is true, maybe it will let the CFS behave better optimized for small devices.

--------------------------

again, not a "clear" comparison or lehmans definition but still sheds a grain of light... still hunting though.
[Droid Eris Android Development] Bimmer323:
Can someone using autokiller check the settings for me please. I installed Collins_PH last night, had an update to AutoKiller this morning and now all of my settings say "0". I'm almost positive that they are actually set to Strick as the numbers show up (in the little pop up window) when I apply the settings, but the settings all show as "0" on the "Memory Limits" page.

Thanks.

PS - I don't know if the settings were "0" before flashing Collins last night but I'm pretty sure they were set to Strick when I first installed the rom.

KFC v34 / CFS v4 / C_Ph
[Droid Eris Android Development] Izeltokatl:
must be you? My Autokiller settings (with the latest version) show up with numbers, and if I change the presets it changes also..

im using KFC v34, CFS V5 (was on 4), and now C_PH
[Droid Eris Android Development] workshed:
definitely uninstall/reinstall autokiller, it shouldn't be doing that.
[Droid Eris Android Development] Izeltokatl:
Dumb question, before I enable the CFS tweak (to play with and compare so I can post my own findings) how would I go about disabling the CFS tweak all over again? Just use the default option 2 (now 710) option? I dont see an option to disable CFS tweak, unless of course once you enable it, the option switches to Disable.... which would make sense... just dont want to enable something without knowing it gives the option to disable later.
[Droid Eris Android Development] Izeltokatl:
You may want to mention this auto feature in the OP...
[Droid Eris Android Development] d08speed3:
This doesnt work on XtrROM correct?
[Droid Eris Android Development] nemish13:
line 113 of batt-cfg needs to be modified from /dev/nul to /dev/null

Also can't get /system/etc/init.local.rc to be read on boot [KaosFroyo v34 w/ CFS]

also in restart() section of batt-cfg "start collin_ph" start isn't a command.. I'm assuming this should have been commented out?
[Droid Eris Android Development] Decad3nce:
nice catch. Not sure what start collin_ph was referring to, I'll bug collin_ph about it later, it shouldn't bring back anything though(including errors).
[Droid Eris Android Development] Izeltokatl:
Is it just me, or does DroidExplorer not want to load after this tweak? It could jsut be me, it wont load the phone when plugged in, when unplugged DroidExplorer opens but of course thats all you get. It could be this or KFS v5, just not sure. Anyone else care to test on there phone using DroidExplorer
[Droid Eris Android Development] chimpsnest:
Rebooting?

Hi all,

Running this on Tazz's Sabbath V2 w/the predefined setting of "1" ... came home from work, plugged in phone to charge up and noticed a little while later that it was boot looping.

Disconnected charger, rebooted phone and turned "off" this tweak (using #4 in the menu) - I'm using terminal, not adb - saved settings and exited terminal, plugged phone back in to wall and so far, so good, no rebooting.

Could it be the OC doing funky things? I know when I used SetCPU in the past I couldn't go over 710 w/o it freezing, etc., but today it was running fine on setting 1 (768? or something, sorry not right in front). But could this higher clock affect things while the phone is charging?

Thanks

PS - I searched in the Tazz ROM thread and there didn't seem to be anybody having the issue, this is a new ROM for me, but I thought I'd start here. Going to let phone charge up w/this tweak off.

EDIT: Of course I couldn't wait to test it again, so I put it back on the 1st setting and sure enough, a few minutes later the phone was looping away. This is only when it's plugged into the wall charger.
[Droid Eris Android Development] Decad3nce:
Very likely that the OC caused the bootloop/instability.

The reason for this is that the built in underclock in the script actually keeps the processor under 806 whenever it isn't plugged into the charger, it's a math equation that you can see in the script.

At 1% battery life theres a full 33% underclock on the processor. You can change what the underclock percentage is in the custom configurations(option 3).
[Droid Eris Android Development] Izeltokatl:
Stick to 710 to be safe, you'll have no problem with option 2.
[Droid Eris Android Development] chimpsnest:
Doing something like this is complete uncharted waters for me, I will most likely start w/the option #2, see how that goes and as I learn more, take baby steps. Will be tomorrow though, gotta go meet the girls for some birthday drinks!

:D:):D woo hoo
[Droid Eris Android Development] jdog94:
ok i have installed

choose option 2

and under clock so

lets see how it goes
[Droid Eris Android Development] workshed:
I'll tell ya how it goes... it goes, FAST, and it goes, SMOOTH, and it goes wee wee wee all the way home ;)

This has been running smooth as ever for about 3 hrs now without a hiccup (also using the CFSv5 Kernel and the CFS tweak in this script) My battery hasn't dropped like it was (I am only running @691, I'm sure others go higher, therefore use more battery) I'm truely amazed by all the devs' work. I'm loving it loving it loving it.

Big thanks as always to Deca and Conap!
[Droid Eris Android Development] Decad3nce:
meets all the dependencies, pidof brings back a number, so yes.
[Droid Eris Android Development] workshed:
Nvmnd 10 char
[Droid Eris Android Development] jdog94:
thanks for the info and the great work on this
[Droid Eris Android Development] jdog94:
what is 10 char
[Droid Eris Android Development] eklipze:
text that's added to meet the minimum character requirement for a post.
[Droid Eris Android Development] ahjee:
Just wanted to say thanks again, don't know why I had issues but all is well and its working and the difference is obvious.

Sent from my Eris running CELB Froyo 2.6/CFS v5/deca batt. tweak
[Droid Eris Android Development] droidfreak:
Ok so I had it running and battery died pretty quickly.. I work in an area with bad reception, so I have been trying everything I can to help with battery life.. My battery always drains fast when I am at work... I mostly get a signal there but its in and out..

Question: when my screen is off, is the phone still scaling up and down to from 245 - 710? (thats the setting I have it at)
[Droid Eris Android Development] xr4v3nx:
pidof batt.sh.... i tried inputting that in ADB and it doesn't recognize pidof?
[Droid Eris Android Development] jdog94:
if you didnt do it i think you have to do

adb shell ------first then

pidof batt.sh