[Script] Collin_ph Battery Tweak [10/23/2010]

Search This thread

bigshotrob22

Senior Member
Oct 3, 2010
1,306
712
Tucson
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..
 
Last edited:

rick311

Senior Member
Apr 26, 2009
425
9
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...

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.
 

wwonka69

Senior Member
Jan 26, 2011
274
50
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.
 
Jun 18, 2010
42
6
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.
 

Izeltokatl

Senior Member
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.

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.
 

MrSpartan

Senior Member
Dec 31, 2011
50
39
Highland
hey does anybody have this script still available?? thanks.

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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    This is really a tool for power users

    If you don't consider yourself 'comfortable' with messing with your phone, then don't.

    This is mostly the work of collin_ph, all the ideas are mostly his and I have only contributed in part to getting some things functioning correctly and some optimizations. We've been enjoying the performance/battery life benefits for about a month now and everyone is, hopefully, enjoying it as well.

    Collin, myself and a couple others have decided to turn this script into an app which I hope, and we hope, will be on the market sooner than later.
    http://tweaktool.com

    The original thread can be found here: http://xdaforums.com/showthread.php?t=762283

    This script is more functional and more efficient than applications that constantly run in the background(like setcpu,ocwidget); the reason for this is that it only polls all dependencies every 60 seconds(default) to check for changes. Even the polling interval can be changed.



    Why use this?
    This script has proven time and time again to not only battery life(on average, about 3-4 hours), but also improve the performance of the device.



    Enough of the backstory, into the details:

    READ THIS

    Original documentation can be found here: http://www.primoweb.com/froyo/battery_tweak_v3.html








    The entire 'application' is written in shell code and was first written just to give a performance and battery boost, but since has evolved more and more.

    All the tools mentioned will be utilized either through the terminal, or in adb shell.

    The Tools

    batt.sh

    This is the core of the entire script. Don't mess with it.
    The one thing you should do after installing the script:
    Code:
    pidof batt.sh

    If theres any number showing up after it, then it's working fine. Don't touch it.

    batt-cfg

    This is the 'main menu' of sorts, as it gives the user all the options and allows him to toggle tweaks/mods on the fly.

    MainMenu.jpg


    The Presets
    The presets are just default configurations that I have set up that can make your phone more efficient without you, the user, having to manually set everything.

    The preset of 806 literally means that 806400 is the scaling_max_freq, or the max frequency, that your phone can achieve after you enable it.

    Just typing 1, and then enter, you'll be ready and set to go. Same with 2.

    Customize Settings
    This is only for the experienced user, and it allows you to manipulate most/ifnotall the configurables on your device.

    Customize.jpg


    All the settings explain what each option does, so read them carefully.

    Disk Boost
    Remounts via noatime and nodiratime. Look up what that means on your own, and why it benefits performance the way it does.

    Audio 'Fix'
    Disables stagefright for bettery audio quality, though it will hinder your benchmark scores only because it affects the AAC codec and how it behaves.

    CFS Tweak
    Echos NO_NEW_FAIR_SLEEPERS to sched_features to change CFS into more of a traditional scheduler like BFS, which gives a noticeable benchmark performance boost, but hinders how gps behaves(kind of like the real BFS).

    Temperature Management
    This new tool allows you to set a temperature(in celsius) at which to override the maximum frequencies to something a bit safer to save your phone battery from melting. It allows you to choose the override max frequency and the override min frequency.

    So lets say that you choose the 710 preset.

    And you enable the Temperature Management, and set the temperature to 450(45.0 C*) and you set the override max frequency to 537600mhz.

    At 45 C*, the tweak will override the preset and echo 5376000 to scaling_max_freq until your battery temperature drops below 45.0 C*, at which point it will resume 710mhz.

    Enjoy!

    batt-diag
    It's a diagnostics utility, allowing you or someone knowledgeable to figure out any issues that you may be having with your device and be able to pinpoint exactly where the problem is.

    batt-diag -v gives a more thorough output as you can see here; http://pastie.org/1162034

    batt-rm.sh
    It's a battery tweak removal script, follow the onscreen prompts and it should remove just about any trace of the battery tweak script.





    Prerequisites needed to run this
    If you're running a version of CM6, this will work completely fine.

    If you're running any other kind of rom, that developer will need to add an 'import' call in the init.rc(in the ramdisk) that imports the init.d script necessary for this application to function at boot. If you don't know how to do this, well, pm me, I might help you, depending on how much I like you.

    This script will WORK even if you don't have the import call at boot, but it won't survive on the next reboot.

    You can check via:

    Code:
    adb logcat | grep collin_ph

    Code:
    pidof batt.sh

    NOTE: This script will also prompt you to try to run itself as root if you use it in terminal. Should work fine in CM6 ROMS but may not run fine in other ones.




    Credits:
    • Collin_ph
    • Myself
    • Tomatosoup
    • s0be
    • Barackisbrown
    • vinylfreak89 for being so naggy about porting this here

    Download Collin_ph BatteryTweak v3 DecaMod v2.2http://dl.dropbox.com/u/9992367/BatteryTweak-ERISv2.2.zip
    MD5: 64c40363fdc1f4c5745154a627894850
    Last update: Tues 10/26/2010 11:08AM CST.

    Download Collin_ph BatteryTweak v3 DecaMod v2(TazzFroyo/KaosFroyo) TAKEN DOWN
    MD5: 7ade3a05e20fedc958c714e62ef27bd8
    If you flashed this earlier, it breaks wifi, so just reflash your ROM over the top. Tell your ROM cook to fix his CM6 :p!

    Flash via recovery, enjoy!


    Why doesn't it work for KaosFroyo/TazzFroyo?
    Because they're not built like the CM6 repos, and do not have the init.local.rc import and updated busybox's as well lacking some dependencies found in CM6 itself when its built from source.
    ROMs that need to have init.rc patched with import call of init.local.rc(This is necessary for this script to work correctly)
    • KaosFroyo
    • TazzFroyo


    'start collin_ph' starts the service created in init.local.rc. If init.local.rc isn't imported at boot via the init.rc, then it fails. :D
    1
    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?

    That is an excellent question... I'm also curious.