yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] hakujin:
correct me if i'm wrong, but isn't the jury still out as to whether this has any palpable benefit on any rom? still wondering if i should try it; running aosp 9.9.2 and autokiller; get about 24-28 hours of battery life.
[Hero CDMA Android Development] collin_ph:
If the rom supports the battery tweak and it's configured properly, it can definitely make a huge difference in battery life. It can also make a big difference in performance. I've found that some software eats battery so bad that there's nothing that can be really done, but otherwise, it usually helps in performance and battery.
[Hero CDMA Android Development] theimpaler747:
I agree with collin, this tweak helps both battry and speed from my usage with it

Sent from a truly Epic phone!
[Hero CDMA Android Development] Etrick:
Every rom I've used I see near double battery life by installing decas kernal, Collins battery cfg, set to 768/interactive/temp mgmt on, autokiller and charge to full and reset battery stats in clockwork. Gingerbread rom was about 3 hours of nonstop use or 12 hours in my pocket before, and although its still not as good as cm6, its around 6/18 now. As to how much of a difference this makes? It does kill the need for setcpu and IMO manages hardware better. Easy once u get it.
[Hero CDMA Android Development] hakujin:
thanx for insight. giving it a whirl. haven't tried deca in aosp, but using autokiller; calibrate regularly, and now trying colin_ph batt tweak.

I didn't mean to sound discouraging; it's just the approximate batt life folks (inc. yourselves) have reported is about on par w/ what i've gotten previously w/o the tweaks. best batt i hever had was w/ fresh, (36 hours plus), but the slowness is atrocious compared to aosp froyo.

for the record, i think the biggest difference i've found is w/ radios and I think to an extent autokiller. I used to think autokiller as counter intuitive; after all, why would one want to continually restart something that could just reside in memory; has to be less mem usage there than cpu reloading app from cold start right? but once I realized just how buggy apps can be, either at present or when they are updated (ironically), i found it to be the lesser of two evils in preventing rogue apps from continually running cpu and thereby draining batt far faster than is normal.

what seems weird related to that though (and a bit OT) is that I also run a task killer when i need some more immediate RAM freed, and despite my aggressive settings in auto killer, there can still be quite a few apps up, and mem nowhere near where it's assigned to in auto killer. i don't understand that.

anywho, back on top. can someone explain the difference between 'interactive' and the other options as it relates to that particular setting. I changed mine to 'interactive' and left most other settings at default, w/ exception to running cpu at 712 in lieu of 690.
[Hero CDMA Android Development] theimpaler747:
Thyre just diferent cpu scalers.... interactive is the best one IMHO :D

Sent from a truly Epic phone!
[Hero CDMA Android Development] hakujin:
thanks, whent w/ interactive; not really seeing any battery life difference w/ many days of use though. what about cpu scheduler? noop? any other changes you'd recommend?

perhaps change min frequency to 176000? i have max @ 710400, bu twould like to incrementally boost to ensure stability.

Also, is there an optimal polling interval?
[Hero CDMA Android Development] theimpaler747:
I'd put mine to deadline, and I always did my min at 245, as some apps require that to run screen off
[Hero CDMA Android Development] hakujin:
hey theimpaler747, forgot to ask why you prefer interactive... have you tried the others... pros/cons? i just kicked my OC up a notch... feel a palpable speed increase, but unfortunately, an worsening toll on an already so-so battery life.
[Hero CDMA Android Development] theimpaler747:
I tried them all :) Phones are all different, so some react better to other settings and vice versa, but I found interactive to be the fasted and also give me the best battery life :D
[Hero CDMA Android Development] hakujin:
Pardon, I should have asked if you were using the Hero as your day phone. Regarding it, do you know a good resource to know what the other aforementioned modes do, and who developed them? I would like to read all the details.
[Hero CDMA Android Development] theimpaler747:
Oh no, I have the Epic now ;) :D
[Hero CDMA Android Development] hakujin:
any complications from running juice defendor w/ this tweak? i would like to try out some of the profiles in it that allow one to turn 3g off and on automatically.
[Hero CDMA Android Development] theimpaler747:
If it's the rooted version which changes the cpu, then yet it'd be a conflict
[Hero CDMA Android Development] trickshot1126:
Is this the latest tweak released? I downloaded one yesterday from a different site that was simply labeled RC2...
[Hero CDMA Android Development] theimpaler747:
Deca mod is a bit newer than this I think :D
[Hero CDMA Android Development] trickshot1126:
I ment is the latest Collin_Ph release?
[Hero CDMA Android Development] theimpaler747:
Yes it is for the hero I believe yes :)
[Hero CDMA Android Development] hakujin:
deca mod or deca kernel worth a go on AOSP v9.9.2? This tweak does little to salvage my abysmal battery life; sick of recalibrating battery, etc. just to get adequate battery life (i.e. a full day of heavy usage). Clocked down my cpu to 645 and using powersaver (versus interactive) hoping to change this as slowness i'll deal with if I can at least get more battery life.

maybe i just need a new phone; vehemently opposed to stupid 4g charges but wondering if i'll fare better w/ evo batt life.
[Hero CDMA Android Development] theimpaler747:
Evo or Epic life is even worse than the hero just FYI ;)
[Hero CDMA Android Development] caliboy99:
Is there any issue with collin and clockwork recovery 3.0.0.5??
[Hero CDMA Android Development] gigermunit:
nope, works fine for me.
[Hero CDMA Android Development] caliboy99:
I have CWM recovery and when i go to flash this tweak i get this..

installing update..

amend scripting (update-script) is no longer supported.

amend scripting was deprecated by google in android 1.5.

it was necessary to remove it witen upgrading to clockworkmod 3.0 GB based recovery. Please switch to Edify scripting (updater-script and update binary) to create working update zip packages.

Installation aborted.
[Hero CDMA Android Development] theimpaler747:
Downgrade to a lower version of cwm and then flash, then upgrade back :D

Sent from a truly Epic phone and a transparent XDA app ;)
[Hero CDMA Android Development] caliboy99:
Thanks, thats what i had to and did...
[Hero CDMA Android Development] hakujin:
I realized that shortly after... crazy! Looking forward to further evolvement of amoled (just read some science about energy savings w/ dark pixels (i.e. dark wallpaper), and maybe further efficiencies of tegra 2, dual snap, etc.; good time to upgrade at Evo's successor; the batt life on EVo is far too abysmal, and kills product.

On another note, I'm getting much better battery again after downclocking to 645400; worth the hit in speed for the increase in batt, imo.

I wouldn't call 3.0.0.5 an upgrade :p
[Hero CDMA Android Development] darodiho:
Are u not able to configure tweak thru the terminal emulator anymore?
[Hero CDMA Android Development] theimpaler747:
Yes you are, type this in after flashing ;)

su
batt-cfg

:D
[Hero CDMA Android Development] fightr:
Would I need to reinstall this if I update to a new version of cyanogenmod?

If changing the scheduler from "ondemand" to "interactive" increases performance, does that mean battery life is reduced?
[Hero CDMA Android Development] theimpaler747:
Yes you need to reflash, and actually interactive improves performance and battery by lowering frequency when you're not using your phone. :D
[Hero CDMA Android Development] mercrapper:
I guess i'm a couple of months late to the game. I was just working on a screen on/off profile setting (I miss that from SetCPU) for the battery tweak (based off Deca's Mod).

I used the same concept of /sys/power/wait_for_fb_wake and /sys/power/wait_for_fb_sleep, but a slightly different implementation.

In batt.sh, I added the logic for /sys/power/wait_for_fb_wake before the while loop, so it will block and wait until the screen is awake. I ramp up the CPU to the max on battery setting, kick off another script (batt-sleep.sh) that will block until the screen is off and let the rest of batt.sh run. Then the first thing after the sleep, I added logic to check if the phone is being charged (I only want to apply the screen off profile when on battery) and if the screen is off (I cat the results of /sys/power/wait_for_fb_sleep to temp file from a different script). If the screen is off and running on battery, I break out of the while loop and let the script end.

In my other script (a new one batt-sleep.sh), In a while loop, I block until the screen is turned off for at least 5 seconds, if screen is still not off after 5 seconds, block and wait until the next time the screen is turned off.

Once the screen has been turned off for 5 seconds, I kill batt.sh (if it is still running), set the cpu max and min to the sleep settings, start batt.sh and exit.

batt-cfg and batt.config were updated to include sleep max and min settings.

This way, batt.sh is not polling while the screen is off and the cpu is ramped down.

I'm currently testing it on my phone to see if I my phone lasts any longer. I think it will since most of the time the screen is off and in my pocket. I wasn't going to post anything until I ran with this a while to see if it helped, but when I saw this post using the same technique, I thought I would share.

I am running AOSPCMod (2/6) with Clockwork 3.0.0.5. The init.local.rc didn't seem to be working, so I moved it to /system/init.d as a startup to be run after all the others.

If you'd like, I can send you my changes.
[Hero CDMA Android Development] theimpaler747:
If you use interactive, which I recommend, you don't need a screen off profile ;) :D
[Hero CDMA Android Development] mercrapper:
I guess I don't understand the different governors then.

Can you explain how using interactive man you don't need a screen off profile?

btw - I am using interactive.
[Hero CDMA Android Development] theimpaler747:
It ramps down the clock speed when you are not using the phone/touchscreen. So, screen off, the phone is already on a lower speed with interactive ;)
[Hero CDMA Android Development] Neogenx:
can i use this tweak with 6.1 stable? and as simple as flashing and its good?
[Hero CDMA Android Development] theimpaler747:
Yes you can, flash and then type this from terminal:

Su

Batt-cfg

Then configure :)

Sent from a truly Epic phone and a transparent XDA app ;)
[Hero CDMA Android Development] Neogenx:
set CPU needs to be taken off..and how hard is it to config
[Hero CDMA Android Development] theimpaler747:
Not difficult at all, it walks you through it :D
[Hero CDMA Android Development] dsMA:
does anyone know what the status of this project is? There hasn't been an update in a really long time.
[Hero CDMA Android Development] theimpaler747:
I believe he was working on an app for this...
[Hero CDMA Android Development] Coolaaron88:
What is the best option to choose when you are in the terminal finalizing the tweak?
[Hero CDMA Android Development] theimpaler747:
I like customizing it, but the default 691 settings are nice :)

Sent from a truly Epic phone on the XDA Premium app ;)
[Hero CDMA Android Development] Coolaaron88:
Thanks for the reply impaler
[Hero CDMA Android Development] theimpaler747:
No problem man, let me know if there's anything else you need!
[Hero CDMA Android Development] texas83:
I used to LOVE this tweak on my Hero. I've since moved on to the Samung Nexus S 4G which is killer fast! But.... I need more battery life! I am running a custom kernel, netarchy's 1.3.0.12 CFS and using setcpu to overclock. Does anyone know if this tweak will work on the nexus s???
[Hero CDMA Android Development] collin_ph:
I have great news. We are working on a newer version AS WE SPEAK. I fully expect some great news in the next 2-3 weeks max. We'll have a version out on the market. At first, it will have all the tweaks implemented for the hero, but in very short order, we'll be adding more and more specifically for other phones. The great deal is that by making it a market app, it will now work on most rooted phones with no complicated install scripts necessary. Don't worry, several people have expressed concern about it being less optimized by being a market app-- well I'm happy to report that it's just not true. We're taking our time on this release and getting it right.
[Hero CDMA Android Development] rubyknight:
Woohoo! 5$ 10$ whatever $ you wanna put it up for im gonna be all over this app lol. Nice to see the original legit hero tweaks back on action :)
[Hero CDMA Android Development] il Duce:
thanks collin! I used to use your tweak long long ago, and I might again. I will buy the app just to support :)
[Hero CDMA Android Development] srkmagnus:
Good to see the project is continuing forward and a market app is going to be released.
[Hero CDMA Android Development] Strifehart:
So I flashed this yesterday and got it all set up. But today I got a phone call and the voice didn't sound right so I called some other people and my voicemail and they all have the same crackle. So I'm wondering if this is caused by the tweak or if my phone is going to crap.

Thanks

Sent from my htc darkhorse superhero running AOSP GB
[Hero CDMA Android Development] il Duce:
nand backup, flash only the ROM no tweak, test phone = scientific method = win?
[Hero CDMA Android Development] Strifehart:
No win im afraid... i need to RUU back and bring it into alltel. Do you have a link to show me how to RUU my phone? That would be awesome if so.
[Hero CDMA Android Development] theimpaler747:
Here you are :D
[Hero CDMA Android Development] Drunkpilot:
The only ruu's I have seen is for Sprint I think. What modifications did you make with the tweak? Have you tried rebooting? On Deca's version, there is an option to disable the tweak completely. You could try that too. Just thinking out loud- or writing I guess.

Good luck.

Flashing IS a gateway drug!
[Hero CDMA Android Development] laie1472:
Wiping data,cache,dev-cache & sd-ext should remove the tweak.

Root/Hack-Mod_Always*
[Hero CDMA Android Development] il Duce:
The tweak modifies system files, you would need to wipe system to kill it.
[Hero CDMA Android Development] Strifehart:
I already removed it through the terminal emulator but that was a no go as well. There is a ruu a few pages back under hero cdma android development. Ill find the link after school today and post.

Sent from my htc darkhorse superhero running AOSP GB
[Hero CDMA Android Development] laie1472:
Im like pretty sure if you do a full wipe and flash a fresh rom the tweak would be gone. But if its not see the link below

Edit see here for possible removal instructions

www.primoweb.com/froyo/battery_tweak_v3.html

Root/Hack-Mod_Always*
[Hero CDMA Android Development] laie1472:
If you have adb you should be able to remove it by doing

Adb shell

batt -rm .sh

If you haven't already tried it

Root/Hack-Mod_Always*
[Hero CDMA Android Development] Strifehart:
Here is the link for the stock hero ruu.

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

I have never used adb but I'm reading up on it now and going to install it to my pc (so far I've done everything through my phone). My phone sounds fine on speaker phone so I'm starting to think its a hardware issue.
[Hero CDMA Android Development] Rooster85:
any chance of this getting updated to amend scripting? id like to give her a whril on the shift!
[Hero CDMA Android Development] il Duce:
If I'm right, this would be useless on the shift, it was built for heroC kernels. Also, I think you mean updated to edify scripting, amend is the old kind ;) The good news is, Collin_ph is building an app with these functions, and afaik he intends to release for more/all phones.
[Hero CDMA Android Development] Drunkpilot:
+1. Totally correct. Everytime I flash a new Rom, the tweak is wiped out. Just format the system in clockwork recovery and flash a new Rom; a nandroid restore will still have it if you used it.

Flashing IS a gateway drug!
[Hero CDMA Android Development] Rooster85:
Oooops lol I did mean edify. It worked on my buddys galaxy s running cm6 as well back in the day. I'm pretty sure it would be just fine if it was edify. If I had any clue on how to change it myself I would!

Sent from my MiuiSpeedy
[Hero CDMA Android Development] Decad3nce:
http://www.howtoforge.com/reducing-disk-io-by-mounting-partitions-with-noatime

^ Essential what the 'disk boost' does.

And for your question, yes; as evident in why oracle is suing, lol.
[Hero CDMA Android Development] collin_ph:
Yeah, several users who've tested out several battery saving settings have all reported that this saves battery life. It could be that by swapping to disk, the phone is more active during periods when it could be inactive, handling swapping in, out, and cleaning up.
[Hero CDMA Android Development] Rivas123:
Does anyone know what scheduler and other settings would help my battery drain. I try many different combos and it just seems my battery drops so damn fast. I hardly use my phone cause of this. Any help would be nice. And I properly calibrated btw.
[Hero CDMA Android Development] Decad3nce:
Presumably, the best battery life you'll have is with the 'noop' i/o scheduler along with the conservative/interactive cpu scheduler.

Noop "No Operation" scheduler plays nicely with battery since it reduces the average seek time and the variability of I/O service time. Though, take note that this will affect how your device reacts to multitasking, large file operations, etc.
[Hero CDMA Android Development] Rivas123:
Thanks, ill try this out. Btw what does the cfs tweak do?
[Hero CDMA Android Development] Decad3nce:
CFS tweaks disable NEW_FAIR_SLEEPERS which makes CFS behave like a more traditional scheduler(ala BFS).
[Hero CDMA Android Development] theimpaler747:
Be carful though, enabling cfs tweak may harm your gps results

Sent from my HTC Hero running froyo: take that, Sprint!
[Hero CDMA Android Development] Rivas123:
That explains it. Thanks at both parties answerin the question. And just one last question. My sd card isn't partioned or anythin should I leave disk boost enabled?
[Hero CDMA Android Development] collin_ph:
The latest versions of battery tweak try to play well with Google Maps and google navigation, even with cfs tweaks turned on. Of course it might take 15-60 seconds to get initial lock, but after that, there should be no problems (as it auto-disables the cfs tweak when Google Maps or navigation is ran)
[Hero CDMA Android Development] ix3u:
has anyone else tried this with the firerat custom partitions?

its the only thing i can think of (only thing that has every been different than any other time ive flashed the battery tweak) and it keeps giving me an error when trying to flash it. says something like "error missing file e: something or other". my phone is charging atm so i dont have the exact readout, but if someone is up to the challenge of helping out, ill try again for the exact error.
[Hero CDMA Android Development] collin_ph:
I'm up for helping. Just make sure you have a little free space in /system, because that's where the entire thing is stored-- Also, I haven't used the tool you're talking about, but if any of the mount points or devices change, it could mess up the way battery tweak remounts the /system and other partitions so they can be written to.
[Hero CDMA Android Development] Rivas123:
Yes 3 hours and a half and at 75% best I ever had. -_- now dropped to 74 typing this. Idk what's going on.
[Hero CDMA Android Development] collin_ph:
What scheduler are you using? Again, I'd recommend trying interactive. I'd also recommend recalibrating. How old is your battery? Have you ever overheated the battery by doing wireless tethering for too long or anything like that?
[Hero CDMA Android Development] Rivas123:
I used wireless tether once and my batt reached 40 C and I never tried it again. My battery is almost four to five months old. I'm usin uncapped kernel #2 stable and conservative and noop.
[Hero CDMA Android Development] Brandito:
if i flash a new nightly cm6 build over a previous build will i need to reflash the battery tweak and set it up again?
[Hero CDMA Android Development] shabbypenguin:
yes you will as flashing a rom wipes /system
[Hero CDMA Android Development] bravo1565:
I'm running cm6 and would like to know how can I find out if using the battery tweak v3 on interactive
[Hero CDMA Android Development] LiquidSolstice:
...does what?
[Hero CDMA Android Development] poashll:
THANK YOU!!

First, thanks collin_ph for the tweak and then thanks Decad3nce for working with collin_ph for bringing some of your customizable scheduling features directly into the tweak. This is working pretty amazing. I am running the CM6 9/27 nightly with the CM6 kernel, Autokiller, and this mod. Before your mod I was loosing about 10% / hour.

I just wanted to post my results with adding your mod thus far. I was running Underclocked, ondemand, noop, 245-710 on battery, 245-768 on USB and AC. 60 second poll on battery and 15 on USB and AC, reduce by 33%, with CFS enabled. I was just @ 49% after 16 hours 30 minutes. So I feel I could easily get 30 hours out of my phone with these settings with my normal use. :)

I am charging back up and I am going to change from ondemand to interactive to see what kind of battery run time I might HOPE to see.
[Hero CDMA Android Development] Brandito:
i don't seem to be getting my sms sound played on incoming texts, is this what the sound fix is for inside the config?
[Hero CDMA Android Development] nspot:
So I was comparing deca's script to this update, and the typo that deca commits still exists in this update. Just an FYI:

http://github.com/Decad3nce/battery-tweak-v3/commit/1b123264085605b7f85bfbff4fa414eea49d98a5
[Hero CDMA Android Development] collin_ph:
Nice find. I haven't verified yet, but I will fix this. Just FYI this should not effect the performance of battery tweak in any way, but should be fixed none the less.
[Hero CDMA Android Development] t12icky0:
so will the version 2 RC2 battery tweak still work with the rc1(running 8/24 nightly)?
[Hero CDMA Android Development] nspot:
Well, if your not redirecting to /dev/null, then whatever temp variable/file that should be discarded by the OS won't be deleted, right?
[Hero CDMA Android Development] collin_ph:
All I was doing on that was redirecting any output to /dev/null -- which will now go to /dev/nul -- which MAY create a file with the output in it, which at most would be 100 bytes or less.. then the next line overwrites the file again.. so it's a very minor issue in any case. I suppose it's possible that it gets a permission error, but the command would still run, just the output would be lost -- which is what the original command was trying to do in the first place.

I believe the problem to be very minor, but will be corrected in the next release.
[Hero CDMA Android Development] t12icky0:
Not sure if you saw my post, i apologize if i just missed the answer. Will the new V3 rc2 version tweak work with the older rc1(running 8-24 nightly)?
[Hero CDMA Android Development] collin_ph:
Yes. It works well with the older nightlies. I suppose it's possible that the nightlies break it at some point in the future, but It should work fine.
[Hero CDMA Android Development] t12icky0:
awsome thanks..do i need to uninstall the older version and then install this

one or just install over the older one?
[Hero CDMA Android Development] collin_ph:
Should be able to install over the older one. If it's any 3.0 beta or RC version.