yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] izoro:
This tweak seems to have no effect on my battery life I would like to do a custom setting but I do not know what to put for the setting. I am very very heavy internet user. Can some one give me some help with custom settings.

Sent from Froyo 2.2 Super Hero
[Hero CDMA Android Development] collin_ph:
Beta 10 was just released, fixed a couple of bugs. I'm sorry, but if your primary use is the internet, your primary battery consumer is going to be the radio. At this time, I cannot do much to limit the radio usage. I will always attempt to address any issue I can in future versions, but the radio is the toughest nut to crack. If you're using a Darch or cyanogen rom, you should see increased battery life, especially if you're using the phone primarily for medium-high phone/texting -- if you're using wireless tethering or something like pandora, it will still consume more battery than it normally would. I do however, still get several hours of extra battery life even when using pandora.
[Hero CDMA Android Development] stayclean:
So this works with the CM6 RC?
[Hero CDMA Android Development] Decad3nce:
Yes

10char
[Hero CDMA Android Development] stayclean:
Thanks.

Anyone have any tips for custom configs? Is default 1 option good until I get a handle on how I want to config this?

Ha, nevermind. Option 1 caused my phone to randomly reboot.
[Hero CDMA Android Development] mdsj:
I have tried this tweak several times with no success. I am now running cm6 RC1 so if anyone has success with the same rom can you please post? Also, if you could detail what your settings are and additional tweaks, like cfs, you have running that would be most helpful. Thank you all.
[Hero CDMA Android Development] Davidsr1127:
So I can activate this in terminal on my phone? And did I read correctly that this will work on the CM6 Froyo?
[Hero CDMA Android Development] ak_slick:
Thanks Collin,

The battery tweak started working for me with 10.

Going to start testing my battery life now. :)
[Hero CDMA Android Development] LifeInTheGrey:
I know you said nevermind, but figured I'd offer my piece ...

The max still needs to be 691 (obviously), however I have had significant gains on my standby power drain by reducing the min to 122880. I realize people are going to ask about FCs, but I've had no problem with phone calls not being received, applications FC when it sleeps, anything like that. Runs just as stable as when the min is 245000.
[Hero CDMA Android Development] stayclean:
Yeah, whenever I use SetCPU, I always set the min to either 12000-something or 160000.

Weird problem with the tweak last night though. Flashed the file, configured it, seemed to be going alright, then after an hour or so, went to text someone, and it would NOT go through at all. Tried a few more times, still nothing. Rebooted, same deal. Tried to make a phone call and it wouldn't really go through, AND I couldn't even hang up or escape the dialer screen without holding down power, and either rebooting or powering it off. Ended up just wiping everything and reflashing CM6 rc, so I wonder if something got borked somehow when I did that originally... Would like to use this instead of SetCPU for sure, since that always causes lag on boot for a minute or so.

[/LIST]
[Hero CDMA Android Development] dsMA:
collin thanks for the informing me I need to invoke su from the phone's terminal in order to save changes. That worked.

I updated my kernel to darch's uuv2 710. I also updated to beta9 last night (I will download beta10 and install here in a moment) I have noticed though that now I am not getting any update notification messages from twitter. I have CFS tweaks enabled and my screen has been off most of the day. Twitter is set to check for updates every 30mins. Do any of the CFS tweaks do anything that would disable notifications or data or anything while the screen is off?

Question about polling: polling interval is just to check the power source correct; it has nothing to do with how often the frequency changes correct? I say this because checking every min while on battery to see if I am still on battery seems excessive. Would changing the battery interval from 60 to 3600 be advised?
[Hero CDMA Android Development] izoro:
COLLIN_PH has any one ever told you what a genus you are? Well if no one has i will You Are A GENUS, LOL. After installing beta 10 my battery performance is the best I've ever had keep up the amazing work.

Sent from Froyo 2.2 Super Hero with Collin_Ph battery tweak
[Hero CDMA Android Development] Decad3nce:
The CFS tweaks aren't aggressive enough to cause any type of hinderance to your system.
[Hero CDMA Android Development] stayclean:
Was wondering about this as well.
[Hero CDMA Android Development] mdsj:
Ok I installed the beta 10 tweak and am going to give it a whirl. Set it to the 691 MHz settings so lets see how this goes.
[Hero CDMA Android Development] dsMA:
trying to pin down the sluggishness of my phone

Just updated to beta10 and now my phone is extremly sluggish. For example I took a full min to run batt-diag.

I made a number of changes including updating su to version 2.3, updating the kernel to darch uvv2 710, and installing beta10.

Is anyone else experiencing sluggish performance after installing beta10?

I am going to disable and see what happens to performance.

****UPDATE****

disabled the app and performance returned to normal.

I then decided to re-enable but disable CFS tweaks and change the max cpu frequency to 710200.

After doing this the sluggish non responsive performance returned.

I am going to go back to beta7 and see what happens.
[Hero CDMA Android Development] mrinehart93:
I just installed CyanogenMOD RC-1 from Darch, the newest Gapps, and the battery tweak. I ran batt-diag to make sure it was running, and that was all I did. I did run batt-config or whatever it's called, but I didn't make any changes (left at default). My phone isn't sluggish at all.
[Hero CDMA Android Development] mdsj:
Well looks like I am just not going to be able to use this. I installed it at 2:55 and one hour later the battery dropped 15%. I was using the preset of the 691 mhz. So I have uninstalled it and will leave it at that. Don't know why it's not working. But oh well.

I get great battery life on CM6 RC1 and that will do. Just trying to be greedy and get even more out of the battery. So for those of you that this works with, enjoy.
[Hero CDMA Android Development] dsMA:
when I ran batt-diag the max cpu frequency was 691mhz but when i did a cpu frequency test it was reporting that my cpu frequency was 710mhz so yeah it didn't look like it was over riding the apps max speed.
[Hero CDMA Android Development] dro_droid420:
does anyone know the PROPER STEPS of installinG this file, along with the new cm6 RC...PLEASE SOMEBODY....ANYBODY!!!!!!!!!!!!!! i understand that you wipe the dalvik and cache. flash the ROM then the Gapps File but then are you suppose to install this TWEAK and then REBOOT. or REBOOT and then go back and install the Collin_ph file??????
[Hero CDMA Android Development] collin_ph:
Hmmm as far as I know, there's really no way this tweak would eat your battery and make anything worse. Have you tried recalibrating battery or anything like that? Also, heat can have a lot to do with things.
[Hero CDMA Android Development] collin_ph:
Ok boot to recovery.

Flash CM,

Flash G Apps,

Flash Battery Tweak

Reboot.

If you like, adb shell and do batt-cfg

If you want to disable the cfs tweaks once you've enabled them.. you have to disable then reboot.. everything else takes effect on the fly once you save settings.
[Hero CDMA Android Development] collin_ph:
It is the interval that polls for everything, including battery level and charging state. In my experience, this service does not take up any noticable performance by polling every 60 seconds. It also allows you to quickly gain performance when going back on power. It's all a tradeoff, but the law of diminishing returns comes into play at some point, and I believe that 60 seconds is a good default, but if you only want to check every hour, more power to you-- however, I think the tweak will work much better if it can change the top frequency more often than that. I'd try something much less drastic like 5 minutes if you want to play around with it,but that's why there's a custom option. Let me know if it works better for you.
[Hero CDMA Android Development] krispuniq:
I have tried 10 minutes (thats 600) & its ROCKING !!

I have lost 1% battery (from 90, it came down to 89%) in 4 hours, I attended two calls ( of 2 mins approx each) & sent a few texts. AWESOME tweak it is.. I kept the minimum @ 122800 & max at 691Mhz :D

Thanks a lot collin_ph
[Hero CDMA Android Development] Neo31697:
Just tried this tweek and i hope it helps because my phone has been off the charger for just over 2 hours and down 17%. I am running RC1.

Something I noticed when i was trying to config this tweek i was doing it through the terminal and i fallowed the instructions and it failed the first time asked me if i am root.

Well i then typed "su" and reran it and it worked. Now i don't know if this was said somewhere in the forum but you may want to make mentions that if your going to do it through terminal you have to type su then batt-cfg

I am excited to see how this works
[Hero CDMA Android Development] stricklerjosh:
What are some good presets to set your min and Max to? I used to run a 710 kernel on my phone before I flashed cm6 rc1. Now I flashed the kernel and thinking about doing this tweak. Any help is appreciated.

Awesome work Collins.
[Hero CDMA Android Development] rejectedkid:
I am loving this mod. I am running zenhero 2.0 and this battery mod is awesome only down 19 % after a long day of moderate use.

Can this mod be tweeked to work on the samsung moment?
[Hero CDMA Android Development] Decad3nce:
Just wait for v4... or maybe even the RC of v3.

Someone competent enough could tweak this very easily to work with the moment.
[Hero CDMA Android Development] dsMA:
So are you saying then that the polling interval is also the interval in which used the cpu frequency is changed? So every minute the CPU can be scaled up or down and if that interval was say 5 minute then the CPU would scale up or down every 5 minutes
[Hero CDMA Android Development] jakejm79:
I think they are saying the max frequency, correct me if I am wrong, but this is how I understand this mod to work:

Our Heros run stock at about 528Mhz the OC Kernel runs anywhere from 768-691, the faster the more juice it uses.

i.e:

100% - 90% of battery 710Mhz max speed

90-80% 691 max

80-70% 646 max

and so on to

10-0% 528 max

So if you extend the polling to an hour, it will assume (or run like) the battery level is the same for that hour period which depending on your usage could or could not be the case.

Now on a side note if it does work like above this might be a little detrimental since the lower the clock speed the longer to complete a process and if the screen is on for the duration of that process.

I.E. I am viewing a picture, it takes 4 seconds for it to load at 710 Mhz but 6 seconds to load at 528 Mhz, so the screen was on for 2 seconds longer so while the CPU may have used more power being overclocked the screen used less so the net result was less. Now granted this is a greatly exaggerated example but the idea is there, tho I suspect the user to be the bottle neck in most processes so it really doesnt apply to a phone.
[Hero CDMA Android Development] stricklerjosh:
Now if I want to just run it as is...I can just flash it correct? I don't have to run Batt config?

But each time I reboot I would need to?

I flashed the stable uncapped kernel and then this...let me know if there is something else I need to do. I am ok at 691.
[Hero CDMA Android Development] collin_ph:
I'm working on a RC version of battery tweak v3 that should include several new nicities, one of which is NOT having to run su before running batt-cfg.
[Hero CDMA Android Development] collin_ph:
As I have said.. batt-cfg is a one time thing (on darch roms). You only need to run it again if you want to change some of the settings. The service should survive reboots. To verify, reboot, go to adb and type pidof batt.sh -- if you get a number returned then the battery tweak is working.
[Hero CDMA Android Development] collin_ph:
You're basically correct. That's why I don't recommend a 1 hour setting. 10 minutes might be reasonable though.
[Hero CDMA Android Development] stayclean:
Right now I have it set to poll 2 minutes on battery.
[Hero CDMA Android Development] chinkster:
will this work with darchdroid v2.8?
[Hero CDMA Android Development] laie1472:
Ran this on Darch 2.7 super battery life thanks for that one about to run it on cm6 rc1 I'm sure ill get the same results thanks man
[Hero CDMA Android Development] OneRedAnarchist:
I'm running this on CM6-RC1 with the uncapped kernel #5 by decad3nce, I've got my min for battery set to 160000 and my max set to 710000, running great, got rid of any hint of lockscreen lag.
[Hero CDMA Android Development] prattleon:
ok, i've tried diligently to comprehend all of this, but i'm in over my head. I installed CM6-RC1, and uncapped kernel #5 by decad3nce (which seemed to speed things up a bit). now i've installed the lastest battery-tweak, but i'm not sure how to adjust the settings to best suit my setup. i currently have it set to [1] revert to 768mHz defaults. Is this appropriate? do i need to make any other adjustments? Thanks.
[Hero CDMA Android Development] jametheth:
So in regards to the polling interval setting;

If you bump up the polling time to say 2 mins or more, and after the phone has been happily in sleep mode for a while (down-clocked to min), you wake the phone up, only use it for 1 min to say flip through some rss or weather, would you be using the phone at its minimum down-clock setting during that time, assuming you hit the time window just right in the case of a 2 min polling, or if you just jacked it way up to 10 mins?

I know that is a horribly put together sentence, but I think you guys can get my drift.
[Hero CDMA Android Development] R2D2-AKU2:
Howdy! This script is awesome. I ran it flawlessly on CM6 RC1 with d3cadence kernel #5 at 768 with absolutely fantastic performance. However, it breaks my GPS, which I use often. I asked d3cadence if there was some kind of workaround and he said the batt tweak is breaking GPS due to the way it handles scheduling. Will there ever be a GPS friendly version or is this "problem" inherent in the functionality of the script? Thanks a million!
[Hero CDMA Android Development] dedian:
You would be using the phone at whatever max_freq is set to...

The tweak sets the min and max freq for the CPU to run at. When you wake the phone up, the CPU moves towards max_freq. Every [polling interval], the tweak will evaluate the power source and battery left, and adjust the max_freq accordingly. The tweak doesn't do the frequency changes, that's the kernel's job. The tweak just sets the range of frequency, based on your settings.
[Hero CDMA Android Development] stricklerjosh:
I have a question for someone in the know:

I set this up last night using custom setting...only thing I really changed was the max to 710000. I left every other setting the same as was in the box.

Today I used my phone for a few texts and emails and then layed it down. It was at 99 percent...when I picked it up about 2 hours later it was all the way down to 86% with no use.

Did I do something wrong? It wasn't that bad before I enabled the tweak.
[Hero CDMA Android Development] LifeInTheGrey:
There is an adb workaround, he outlines it a few pages back in the thread. It solves the problem, or at least it did for me.

Sent with Hero juice using XDA power
[Hero CDMA Android Development] collin_ph:
In a word, Yes. If you set the polling interval to 2 minutes, it may take 2 minutes for the phone to recognize that the power state has changed and initiate the proper changes to the CPU, etc.
[Hero CDMA Android Development] collin_ph:
Two things. #1, try just running the 691mhz defaults and see what happens.

#2. If that doesn't give you significantly better results, we need to find what's using your battery. I had this happen the other day and it turns out that there was a seriously bad update to "better alarm clock" that was draining my battery to zero in something like 8-10 hours. What I'd do first is to go to about phone, then battery settings (once it's been running on battery for a while), and see what the biggest 2-3 users of battery are. If it's "display", and you don't have the screen "on" very often, then that's probably a good sign, but unfortunately means that we haven't figured out the problem yet. You can also run batt-diag and post the results.
[Hero CDMA Android Development] stricklerjosh:
Going to do option #2 and revert back to 691 and see how it works tomorrow...also going to run it dead and charge to 100% and wipe battery stats to see if that helps. Will report back.

Thanks for the help.
[Hero CDMA Android Development] R2D2-AKU2:
I searched for that but couldn't find it. If you're referring to d3cadence's 2nd post in his uncapped kernel thread, I tried that with no success. In fact I asked him about it and his reply is in my previous post.

So, again, is the GPS scheduling "fixable" or is it inherent to the script's core functionality?
[Hero CDMA Android Development] collin_ph:
Just go into adb and disable CFS tweaks. I'm working on another version which will allow you to enable the CFS tweaks and still have GPS navigation working.

Go to adb shell

batt-cfg

choose the option to disable cfs tweaks
[Hero CDMA Android Development] chinkster:
what do you guys mean when it "breaks GPS"? I'm using ddv2.8 and I flashed this tweak and running it at option #2 @691. how do I check and see if my GPS breaks? I toggled it and went to Google maps and it seems to be working? am I doing something wrong
[Hero CDMA Android Development] R2D2-AKU2:
Thanks! Can't wait to try out the new version. And thanks for all the great work.
[Hero CDMA Android Development] R2D2-AKU2:
To check, just use navigation for more than a couple of minutes. The GPS locks on when you start maps or navigation, but gets turned off by the script after a certain time as do many background services.
[Hero CDMA Android Development] chinkster:
what exactly does the CFS do?
[Hero CDMA Android Development] stricklerjosh:
So I charged up to 100% and unplugged over night. With no use at all I dropped to 58% in 7 hours. My biggest battery use was 27 % cell standby, next was phone idle.

Any ideas Collin?

Edit : also with this all set up my phone constantly says I only have one bar of service but when I call someone it switches to 1x data and full signal bars. I am connected to an airrave because of my poor service at my house. Typically when at home I leave my wifi on at all times for better internet. I read somewhere about a signal fix. Not sure what or where that is or if it would help.

Thanks.
[Hero CDMA Android Development] benitozilla:
so....

im at 50% battery

with a run time so far of 20hrs 49mins and 47seconds

what took me so damn long to apply this ?!

thanks for everything Colin!!
[Hero CDMA Android Development] stricklerjosh:
What is your setup?
[Hero CDMA Android Development] benitozilla:
I have the Decadence #7 kernal, with the battery tweak applied at #1 768mhz straight default for the first try, i didnt mess with anything.

latest radio and prl, and so far im doing pretty good
[Hero CDMA Android Development] stricklerjosh:
I just found out I had my exchange account pushing automatically. I think that might be my culprit. I also have yet to find this signal fix. My phone constantly says I have two bars when I know I have full service. I was told it was in kangslayer thread but searched and can't find the zip.

Hopefully this fixes my battery issue.

Anyone know how I can forward my exchange to my gmail?
[Hero CDMA Android Development] jametheth:
While there is some kind of patch thing you can apply to change the amount of bars it shows for a given signal level, it is my understanding that 1x uses a much lower modulation in the radio transmission, therefore it can propagate better, effectively allowing further distance from towers / more obstructions in the path, and ultimately better signal levels for a given situation.

The downside to lower modulation is less data can be crammed into the radio signal.

While I don't work for a cell company, I work with very similar RF equipment.

In-fact the company I work for actually owns the 2.1 - 2.5 ghz spectrum for multiple counties in our area, which has the side effect of making Sprint unable to use their 4G here unless they buy us out for the frequencies we currently occupy.

The lower end of that set of frequencies (2.1) is used by T-Mobile for their 3g, they are in the same boat, but with 3G even :)

In case you were wondering, we use it for a point to multi-point, fixed, wireless internet system, that actually uses a Docsis cable modem system over licensed wireless gear.

We are about to launch Docsis 3 over our system, which will make us the first people to put Docsis 3 over wireless using MMDS.

Wiki "MMDS" for more info on the technology.
[Hero CDMA Android Development] Vandelay007:
Kernel Question

Additionally, it won't do much good unless it's on a clockable kernel.

I am running the uncapped kernel for CM 6.1 RC1 - is this considered a clockable kernel ?
[Hero CDMA Android Development] omair2005:
I don't know how people are getting good battery life. I'm losing 10% every 40-60 min on moderate use (Sync disabled, brightness low, more texting than talking).

Applied the OC Kernal, installed this tweak, checked #1 under setting...
[Hero CDMA Android Development] benitozilla:
i honestly dont know?

i went back to fresh 2.3.3 to update my profile, prl and radio before i went back to the 8/19 nightly and applied the tweak and all that . maybe it matters maybe it doesnt, but i dont know what would cause your phone to act differently though
[Hero CDMA Android Development] omair2005:
I also flashed to fresh and updated the prl..but still no luck..
[Hero CDMA Android Development] collin_ph:
You have to look for widgets, and background apps. Also check signal strength. Check these things under the battery stats, and also run a batt-diag -- post results here and we'll take a look.
[Hero CDMA Android Development] collin_ph:
See my last message.
[Hero CDMA Android Development] benitozilla:
today i had the same results, 20+ hours and over 50% life remaining.

everything is kosher for me thanks colin again!
[Hero CDMA Android Development] omair2005:
So I wiped my batt stats off a full charge. Booted it up. I went to sleep, woke up 6 and half hours later with 21% battery used up?! The only widgets I have is Fancy Widget, pandora, music, calander, bookmark, and people.

Signal Strength is -88 dBm

Under Battery Usage, it shows

42% Cell Standby

39% Phone Idle

I've attached the batt-daig as well..
[Hero CDMA Android Development] stricklerjosh:
Is there a version of the tweak that doesn't break GPS?
[Hero CDMA Android Development] james33440:
Just disable the CFS tweak.

Sent from my Froyo Hero using the XDA app
[Hero CDMA Android Development] stricklerjosh:
Is there a setting somewhere for that?
[Hero CDMA Android Development] theimpaler747:
Run the batt-cfg, and I believe that it's option 4 or something. It will say disable CFS tweaks. Just do that and save and then try the GPS again... it should work.
[Hero CDMA Android Development] stricklerjosh:
Tried it. No dice.

Edit: nevermind had to let it get signal for a little. Finally worked.

Thanks for the help.
[Hero CDMA Android Development] theimpaler747:
No problem. Glad to help, let me know if you need anything else.
[Hero CDMA Android Development] gadgetcraze:
flipped through the first few pages of this thread. Is calibrating the battery recommended in addition. Can someone please tell me how to do it? And before you say search, I did. I could not get it.
[Hero CDMA Android Development] stricklerjosh:
Charge battery all way up...run out till battery dies...charge up to 100% and then reboot to recovery and wipe battery stats.
[Hero CDMA Android Development] tjthebest:
Think this would work for the Eris?