Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
collin_ph
Old
(Last edited by collin_ph; 23rd August 2010 at 06:36 AM.) Reason: Update: New version- RC1
#1  
Senior Member - OP
Thanks Meter 18
Posts: 149
Join Date: May 2010
Default Collin_ph Battery Tweak for Darch Froyo Roms

LAST UPDATE to this thread.
RC1 of Collin_ph battery tweak has been released.
Due to several changes, etc.. I'm starting a new thread here: http://forum.xda-developers.com/showthread.php?t=762283

Newest!
UPDATE - Beta 10 released 08/16/2010
Sorry about 2 updates really quick-- this latest release was to address 2 bugs that cropped up.

Description: Battery tweak is a collection of settings that enable the hero to optimize battery lifetime. I get 35+ hours on my hero with the tweak installed with the normal 691mhz settings. When on battery power, the cpu is gradually lowered (configurable) as the battery drains, and when put on power, the cpu is put into high performance mode. Most settings are configurable.
Beta 6 includes an optional LED fix if your charging LED is hanging, and some optional performance tweaks to the cfs scheduler. For more information see the documentation linked below.


Simply download the tweak and flash.
Reboot and under adb shell run batt-cfg

Note: Make sure you are root first by running su if you are going to run batt-cfg through terminal.


You may change the settings at any time by running batt-cfg again and settings will take effect without rebooting.

New verison as of 08/16
http://www.primoweb.com/froyo/collin..._v3_beta10.zip

Documentation (Updated for Beta 10):
http://www.primoweb.com/froyo/battery_tweak_v3.html


This tweak will conflict with setCPU and OCWidget, so please disable them.
Can I say it again. Don't use set CPU, or OCWidget. You don't need them with this tweak. If you want to customize your CPU, simply run the customize utility in batt-cfg -- you can set your min/max clock speeds there. Thanks!


Feature list:
Customizable Battery Tweak with 2 presets
LED Fix for charging LEDs that are stuck on
Experimental CFS (completely fair scheduler) performance tweaks
Audio quality fix for froyo (disables stagefright)
Disk tweaks (mounts all mount points noatime,nodiratime)

Probably more I'm missing.


Edit:
If you want to try this tweak in another rom, your rom will need a /system/etc/init.local.rc file-- that's where the service is started.
Additionally, it won't do much good unless it's on a clockable kernel.
There are other prerequisites such as sh existing in /system/bin but generally speaking if it starts up, it should work. If your rom has no /system/etc/init.local.rc, you can add the file and "import" it (I believe), within the init.rc of the boot image, but it'll require a little work.
 
Papa Smurf151
Old
#2  
Papa Smurf151's Avatar
Forum Moderator
Thanks Meter 5430
Posts: 5,270
Join Date: Feb 2010
Location: Atlanta

 
DONATE TO ME
Quote:
Originally Posted by collin_ph View Post
Description: Battery tweak is a collection of settings that enable the hero to optimize battery lifetime. I get 35+ hours on my hero with the tweak installed with the normal 748mhz settings. When on battery power, the cpu is gradually lowered (configurable) as the battery drains, and when put on power, the cpu is put into high performance mode. Most settings are configurable.

Simply download the tweak and flash.
Reboot and under adb shell run batt-cfg

You may change the settings at any time by running batt-cfg again and settings will take effect without rebooting.

http://www.primoweb.com/froyo/collin...k_v3_beta4.zip

Documentation:
http://www.primoweb.com/froyo/battery_tweak_v3.html

Note: I don't recommend setting the "charging" minimum speed any higher than 480mhz, as it may not charge when connected by USB (not charger).
This tweak will conflict with setCPU and OCWidget, so please disable them.

is there a way to get this tweak to work on a 2.1 sense rom
 
Decad3nce
Old
(Last edited by Decad3nce; 28th July 2010 at 07:53 AM.)
#3  
Decad3nce's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter 2697
Posts: 2,048
Join Date: Feb 2010
Quote:
Originally Posted by Papa Smurf151 View Post
is there a way to get this tweak to work on a 2.1 sense rom
It should work with any .29 kernel that's has the same structuring as toasts/darchs, so theoreticaly, it'll work with any ROM really.
 
secondskin
Old
#4  
secondskin's Avatar
Senior Member
Thanks Meter 65
Posts: 340
Join Date: Oct 2009
Location: Pennsylvania
Can this be done if I'm using the darch overclock undervolt kernel for Fresh 2. 3. 3? The reason I'm asking is because my battery life is already good with darch's kernel but if I can flash this on top of what I'm using that would be great.

Sent from my HERO200 using XDA App
Got Rom?
 
Decad3nce
Old
#5  
Decad3nce's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter 2697
Posts: 2,048
Join Date: Feb 2010
Quote:
Originally Posted by aerajan View Post
Can this be done if I'm using the darch overclock undervolt kernel for Fresh 2. 3. 3? The reason I'm asking is because my battery life is already good with darch's kernel but if I can flash this on top of what I'm using that would be great.

Sent from my HERO200 using XDA App
Only way to find out, try it.
 
secondskin
Old
#6  
secondskin's Avatar
Senior Member
Thanks Meter 65
Posts: 340
Join Date: Oct 2009
Location: Pennsylvania
Only problem is that I have no idea how to config the settings after setting this up. The instructions say to go back into the shell and configure the battery settings. Guess I will have to wait until someone who knows what they're doing tries. I don't have any skills at working within shell and wouldn't know what coding to write.
Got Rom?
 
Decad3nce
Old
#7  
Decad3nce's Avatar
Retired Forum Moderator / Recognized Developer
Thanks Meter 2697
Posts: 2,048
Join Date: Feb 2010
Quote:
Originally Posted by aerajan View Post
Only problem is that I have no idea how to config the settings after setting this up. The instructions say to go back into the shell and configure the battery settings. Guess I will have to wait until someone who knows what they're doing tries. I don't have any skills at working within shell and wouldn't know what coding to write.
Go into shell and type "batt-cfg"
 
Papa Smurf151
Old
#8  
Papa Smurf151's Avatar
Forum Moderator
Thanks Meter 5430
Posts: 5,270
Join Date: Feb 2010
Location: Atlanta

 
DONATE TO ME
i have tested on my red dawn rom and it is working. Thanks for the tweak man
 
mquinn24
Old
#9  
mquinn24's Avatar
Senior Member
Thanks Meter 71
Posts: 861
Join Date: Feb 2010
Location: Gamecock Country
Thank you for this tweak. I have been using it for a few days and getting 30+ hrs. Awesome work

Sent from my HERO200 using XDA App
 
platinumrug
Old
(Last edited by platinumrug; 28th July 2010 at 03:53 AM.)
#10  
Member
Thanks Meter 1
Posts: 85
Join Date: Dec 2009
I tried going into terminal emulator just to test out the batt-cfg, and it continues to tell me permission denied. Granted I haven't flashed the update yet, so maybe that's why... at least on that.

I'm a straight noob when it comes to this stuff, I can't seem to get it to work, always getting permission denied on terminal emulator.

Running MikShifted v1.1

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more