yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] poashll:
After switching to interactive, I basically got the exact same time to drop to 49%, 16 hours and 30 minutes. Really, to the minute. I actually feel like I got slightly worse results using interactive because I don't think I used my phone as much after coming to full charge as I did the day before.

Either way, both of these results are outstanding and thanks again for your work.
[Hero CDMA Android Development] collin_ph:
Thanks. I definitely can tell a difference in the different governors, with interactive being the "best" for me so far.

Glad you're getting good results!
[Hero CDMA Android Development] lalo45:
I was wondering if some of u guys could help me out. Im currently running the program as is but would really love to customize it ao i can get the most of it. Problem is i dont even know were to start. I know how to acces the menu and everything but when it comes to altering the settings i dont know what values are best versus others. I guess what im trying to ask is if some of you guys could post the exact settings your using.
[Hero CDMA Android Development] lalo45:
Also, what kernels play well with this tweak. Thanks gor all ur help guys.
[Hero CDMA Android Development] collin_ph:
Honestly, I begin by loading one of the default settings, depending on the kernel I'm running-- if it's capable of running higher than 691, then I used the higher setting.

Then, I run the utility again, enable the CFS settings (If I'm using a non-bfs kernel).. I change the governor to interactive, and that's it.

Other than CFS (which will most likely still be disabled by default), these settings will be the default settings in the final release.
[Hero CDMA Android Development] collin_ph:
This works well with any CM6 Kernel, however you should know whether it's a BFS or CFS kernel and where the speeds are capped so you can choose to enable/disable CFS and to set your max CPU speed.
[Hero CDMA Android Development] Brandito:
i've been using deadline instead of noop because i used deca's modded battery tweak and he seems to have tweaked his settings more towards performance and multitasking.

any advice on which is best for what?

i tend to tweak more for performance, especially after experiencing the stock rom for so long. this is also why i use ondemand as i found it to be a little snappier than interactive when i was messing with setcpu (prior to installing the battery tweak of course)
[Hero CDMA Android Development] aaronpoweruser:
to modify the settings can i just edit the batt file in system/etc trying to do this with out adb access
[Hero CDMA Android Development] poashll:
I use the terminal app on the phone. Type batt-cfg and configure it that way. If you are prompted to give terminal app su authority, select allow.
[Hero CDMA Android Development] 24601:
Was having issues with GPS and the BFS kernels, so I went back to stock kernel, using nightly mods. Disabled SetCPU and flashed Collin_ph tweak V3. Using the standard 691 settings because of the stock kernel, with interactive governor. My questions are: 1) I left Auto Killer operating with the settings below; is this counter productive or unnecessary; and, 2) Is the stock kernel capped at 691, or can I use the 768 settings? Thx for any input.
[Hero CDMA Android Development] collin_ph:
1. Autokiller is down to a preference level, I say, use it. It's not a task killer per-se, but configures the built in memory management features that come with android. I think that auto killer can be a good way to configure the memory management to your liking.

2. Stock kernel is capped at 691. If you use 768, it will, in effect stay at 691 longer as the battery drains, so I'd steer clear of that setting in most cases. If you choose "custom setting" then it will show you a list of the frequencies your kernel supports.

Feel free to try the CFS tweaks-- they are designed to play a lot better with GPS, but if you experience GPS problems just disable the CFS tweaks.

Thanks!
[Hero CDMA Android Development] 24601:
Thx for the quick response. I forgot to mention in my previous post that I did enable CFS tweaks, & all appears to work fine.

Happily sent from my FroYo HeRo . . . Awesome
[Hero CDMA Android Development] ehehey:
Good day everyone,

I am a bit puzzled about the >24 hours of battery life "with normal usage" mentioned here.

I wonder what is considered normal usage?

I tried this tweak on my HTC hero with CM6 and did not get anywhere near that.

I got about 10 hours, but about 40% of it are voice calls (according to the "barrery usage" in settings).

Could you please advice if I am doing something wrong or is it expected result?

I have CM6 and battery tweak all in default configurations, formated SD card before flashing flashing them.

Thanks
[Hero CDMA Android Development] collin_ph:
Are you talking for hours on the phone during that 10 hours?

Also if you'd like me to take a look at your issue in more detail run the following under adb

batt-diag -v > /sdcard/batt.log

and post the batt.log in a PM to me.

Thanks.
[Hero CDMA Android Development] ehehey:
Thanks for quick response

No, each conversation was an hour or so or less

I am sending you my log. I took it now with battery

almost full
[Hero CDMA Android Development] collin_ph:
How many minutes or hours do you estimate to have talked during that 10 hour period?
[Hero CDMA Android Development] Brandito:
40% of 10 hours is 4 hours.

that is according to what he said earlier.
[Hero CDMA Android Development] collin_ph:
I would say that 4 hours of constant talk time (depending on signal, etc) is probably a good thing. Although I wouldn't use the battery meter as an estimate for your talk time.. it's saying that talk time used 40% of your battery.. However, that's a lot more than I talk in that same period of time. The battery tweak probably will not increase "talk time" on your phone-- it mainly increases "idle time" as far as the phone part is concerned. Basically the battery tweak does not do anything to the phone's radio, which is what would be necessary to increase battery life during phone calls as far as I know.
[Hero CDMA Android Development] collin_ph:
I just read that the hero is only rated at 4 hours of talk time. I'm probably not going to make that aspect of the phone that much better, unless I figure out a way to manage the phone radio.

http://reviews.cnet.com/smartphones/htc-hero-sprint/4505-6452_7-33770450.html
[Hero CDMA Android Development] Decad3nce:
Aside from messing with the hysteresis?

I don't think we can change how much juice the radio itself pulls.

Though I bet you could save on some "talk time" by turning off EvDo while using the phone.
[Hero CDMA Android Development] theimpaler747:
I believe it turns itself off when you're on the phone, am I wrong?
[Hero CDMA Android Development] collin_ph:
No. the battery tweak runs constantly. But it mainly effects the CPU and memory. In a phone call, the main battery usage is the phone's radio.
[Hero CDMA Android Development] Decad3nce:
I think he meant EvDo connection.. and I think he's right.

:S
[Hero CDMA Android Development] collin_ph:
Unless we can figure out how to write a custom radio.. won't happen anytime soon.
[Hero CDMA Android Development] collin_ph:
Oops misread.. for some reason I thought he was replying to me. Pays to read, but by this time of the day I'm crosseyed.
[Hero CDMA Android Development] theimpaler747:
That's alright man :)
[Hero CDMA Android Development] ehehey:
Yes, 4 hours of talk time is about right. Not constantly but in many conversation during the day.

P.S. I was unable to send the log by PM as you requested, so I am attaching it here. Thank you for taking time to help me.
[Hero CDMA Android Development] collin_ph:
Ok, I'm ready to finalize the final version of Battery Tweak 3.0 and want to make sure all the suggestions get in.

So far, the only suggestion was to fix a typo in batt-cfg to fix a typo in the word null.

Any other suggestions? Wording changes, etc?
[Hero CDMA Android Development] Brandito:
been a bit curious about the led and sound fix for a while myself. do they fix something the battery tweak can break, or do they fix something that may be broken otherwise?
[Hero CDMA Android Development] collin_ph:
The LED fix is largely irrelevant at this point, but was put in to fix a problem with some of the early CM fixes.. could probably be removed at this point, but I've been told that some phones (not the hero) still have the problem.

The Sound fix is a fix with froyo in general. Streaming audio quality can sound very bad depending upon what type of compression used. The audio fix causes the quality to be higher on those specific compression types, but comes with a corresponding increase in cpu usage when that type of audio is playing.
[Hero CDMA Android Development] theimpaler747:
Customizable undervoltage maybe? That'd be cool to pull off :D
[Hero CDMA Android Development] Brandito:
adjusting voltage on demand could cut down on battery usage much more so that lower cpu speed alone.

could also cause for major stability issues and/or overheating if set too high/low.

however if one wanted to tweak it on their own they could find the lowest voltage needed to keep the phone stable at their overclocked setting, or up it to achieve a higher oc.

wonder if it's even possible with software.
[Hero CDMA Android Development] camaroryan:
how do you delete it

i think this actually made my phone die faster how do i delete it?
[Hero CDMA Android Development] theimpaler747:
From terminal emulator:

su
batt-rm.sh
[Hero CDMA Android Development] camaroryan:
it says "batt-rm.sh: not found" any idea?
[Hero CDMA Android Development] obsanity:
I think you set it up wrong and thats why it died faster. Try the default 691mhz setting.

Does this lower the CPU down when screen is off?

Just wondering because I didn't see any options for this. If not, is it possible to implement a setting so that a user can lower the cpu down to say 345000 so that it never gets above that while screen if off?
[Hero CDMA Android Development] devonkosa:
can i use this with the aospMod rom?
[Hero CDMA Android Development] aaronpoweruser:
yes

10 char
[Hero CDMA Android Development] theimpaler747:
Yes, this will work with pretty much any rom :D
[Hero CDMA Android Development] Macanage:
Collin_ph,

This may sound way out of the question, and my not be even possible, but I would like to find some way to turn off the data connection and data sync when the screen goes off. However I would like to specify a time frame that it will automatically turn back on and sync and then turn back off; like every two/three hours for instance.

Perhaps there is an app out there that already does this or something close.

The only reason i ask is because when I go to bed at night, using the power control widget on cm6, I turn those things off and probably only see a 1% to 2% battery drop by the time I wake up.

I know there is a 2g/3g toggle app that does something similar

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

Sorry if this is way off base. Do love your work BTW, Great job.

Edit: After doing some lurking, it looks like Juicedefender is pretty close to what I am looking for. Sorry for the wasted post
[Hero CDMA Android Development] dean.d:
I have never flashed a rom without eventually flashing this too far behind it. But, I haven't tried out many 2.1 roms. Does the updated version work with zen-rom alpha 5?
[Hero CDMA Android Development] glen4cindy:
Sorry if this has been asked and answered already, but, I have read all the pages and have not seen it.

I ran the cfg routine at the command prompt on my PC after I installed the tweak, but, since then, I have not turned my phone off at all.

If I turn my phone off, to reboot it, and then back on, will I have to run the cfg again or will the battery tweak remember how it was configured and continue to run the same way?

Thanks!
[Hero CDMA Android Development] Rivas123:
The settings should stick. After you reboot run pidof batt.sh if it returns a number the tweak is running as before the reboot.

Sprint...Really? Froyo.
[Hero CDMA Android Development] glen4cindy:
Thank you. One reason I ask, is because I am at work, and I cannot connect my phone to my work PC because it is locked down. I can charge it, but, I cannot connect it and "do" anything to it, so I would not be able to change any configurations.

Can I run this command you speak of from terminal on the phone itself?

Thank you again for your help.
[Hero CDMA Android Development] Rivas123:
Yes you can.

Sprint...Really? Froyo.
[Hero CDMA Android Development] ganjah:
I have an odd problem that only appeared today after installing this battery tweak on cm6 stable with adnan@Decad3nce 10/03/2010 uncapped #6 kernel.

Literally right after installing this and setting it to 691 default setting via adb, I rebooted it, tried to send a text with an é symbol in it, and the text wouldn't send. I rebooted, tried again, and nothing I will do fixes this. I've used this character many times prior to installing the battery tweak with the same cm6 build and kernel without a problem. Interestingly enough, that character also messes with the basic messaging app's character count, now, automatically screwing it up to appear like I'm starting at 60/3 remaining. So odd.

Anyway, as soon as I remove the offending character, the character count works fine and the text sends.

So, I dig a little further and batt-rm.sh in adb, reboot, and that character now no longer exhibits any of the offending behavior.

Since you were looking for feedback, I figured I'd give mine hopefully prior to the full version being shipped.

Thanks for all your hard work, though!
[Hero CDMA Android Development] theimpaler747:
That is a very strange problem indeed... We'll let him know so he can try to fix that :)
[Hero CDMA Android Development] Exhalee:
This is awesome. I was tired of my battery dying fast. Used this and I can 24 hours and be at 20%.
[Hero CDMA Android Development] billodell:
Thanks! Seems to work very well, no earth shattering gains in battery longevity but a gain I am VERY happy with. Thanks again for your awesome work
[Hero CDMA Android Development] mrtoofresh09:
what kernel and rom are you using
[Hero CDMA Android Development] michael too:
... and another question that -- no doubt -- is obvious to most of you. I see that once you flash the tweak, you go to terminal mode to choose the settings or to load a default profile.

I assume that out of the box it already has some default profile set? So that it works without changing setting anything? And I assume that the aforementioned terminal settings are not needed if you are OK with the default settings?

Thanks.
[Hero CDMA Android Development] collin_ph:
Setting #2, 691 mhz settings are the default.
[Hero CDMA Android Development] nellisere:
will this work on gsm hero's?
[Hero CDMA Android Development] Decad3nce:
Should work fine on the GSM hero running CM6 or any of its variants.

Note that you may have to change some of the max/min frequency settings.

But aside from that, everything else should be fine.
[Hero CDMA Android Development] igtheactt1:
Running Zen espresso with stock kernel since its the most stable / fastest for me...

Anyways only problem I'm having is with battery tweak latest... phone idle is at 70% and my battery drains pretty quick overnight is there anyway to set off screen / sleep profiles? I used to use setcpu but seems that everybody is having better battery life with this tweak...
[Hero CDMA Android Development] nellisere:
i am running floyo 1.01 with fly kernal 11a at 691/176

is this tweak another kernal or just extra tweaks that go on top?
[Hero CDMA Android Development] theimpaler747:
Just flash on top :D

Sent from my HTC Hero running froyo: take that, Sprint!
[Hero CDMA Android Development] igtheactt1:
Ok I'm not understanding what this is supposed to do... I'm running the latest nightlies with the latest cfs and 691 defaults with battery tweak. My battery is dropping dramatically... I lost 10% in less than 15 mins.. only thing running is trillian with battery save mode enabled...

Display shows 73% battery usage...
[Hero CDMA Android Development] Decad3nce:
A little preview of what you'll see in RC3

http://github.com/Decad3nce/battery-tweak-v3/commit/c4286eed335c624d7a160d388e8b8b655bdd968d
[Hero CDMA Android Development] glen4cindy:
I am by no means an expert, but, the very first post in this thread says CFS should be disabled. Maybe this is your issue? I am getting awesome battery life with this tweak applied, but, I am using the recommended settings.
[Hero CDMA Android Development] igtheactt1:
Well I meant cfs kernel / stable kernel but nvm switched back to zenexp with setcpu...much better
[Hero CDMA Android Development] CrashV2010:
Will you be updating your battery tweak too, sir ?
[Hero CDMA Android Development] Decad3nce:
Well yeah... just squashing the last couple of bugs.
[Hero CDMA Android Development] igtheactt1:
Will it include off-screen freq. settings?
[Hero CDMA Android Development] Decad3nce:
Honestly, I don't see the point in screen off/on freq settings.

But even if we wanted to set them up, I mean it wouldn't be too difficult. It would be pointless since the tweak itself works off a polling interval.. so if your screen is off for 59 seconds during the 60 second polling interval, it won't even realize the phone was off.

I'll think about it. :p

Regardless, I just squished the last bug.. I'll be releasing my version tonight.
[Hero CDMA Android Development] glen4cindy:
Sorry, my bad. As I said I'm no expert and I didn't realize you were referring to kernel, I thought you were talking about a different cvs tweak.

Sent from my iPad
[Hero CDMA Android Development] :
This doesn't play well with ZenExp. Is there a version that does ?
[Hero CDMA Android Development] tushar.das:
Will it work on Samsung galaxy s?
[Hero CDMA Android Development] theimpaler747:
Very cool!
[Hero CDMA Android Development] :
Nice nice :D Good work!
[Hero CDMA Android Development] devonkosa:
i dont understand... I'm flashing back to CM6 coming from AOSP .8, and i keep getting an error:

E:Can't chown/mod /system/bin/batt.sh

(No such file or directory)

E:Failure at line 7:

set_perm 0 2000 0755 SYSTEM:bin/

Installation aborted

this is causing me to be really frustrated. someone, please, help, fast.
[Hero CDMA Android Development] mxl180:
noob here..

I did these settings

[1] Underclock (highly recommended)

Interactive

Everything else was DEFAULT settings

What is NOOP? Should I choose another settings?
[Hero CDMA Android Development] theimpaler747:
Noop is a scaler option. I would play around and see which works best for you

Sent from my HTC Hero running froyo: take that, Sprint!
[Hero CDMA Android Development] :
Not a Hero noob, but a battery mod noob :D Is it possible to get worse battery life with the mod? After a full 100% charge (yes, it is a full 100%...not just till the green light comes on :) ) and a calibration, I drop from 100% to 96% just from booting up. Prior to applying the mod I would be able to fully charge, reboot, unplug and still be at 100% for about 15-20 mins even while using.

I have it set at the default 691 and what seems to be happening is I lose more upfront and the lower the battery gets the longer it takes for the indicator to drop. Is that what should be happening?
[Hero CDMA Android Development] theimpaler747:
Booting up eats a lot of battery. Yes, it is certainly possible that this is killing your battery, but I just want to let you know that it is not unusual to lose 4% or more booting :D
[Hero CDMA Android Development] mxl180:
how do we calibrate the battery?
[Hero CDMA Android Development] nspot:
http://xdaforums.com/showpost.php?p=6399061&postcount=3546
[Hero CDMA Android Development] ganjah:
You know, I did this exact thing after seeing you post it, and this is my first full charge after resetting the calibration. I gotta tell you, my battery has been draining 4x faster than I've ever seen it after resetting like this!!! I'm down to 60% battery after only receiving two texts and sending three, plus adding two things to my calendar, in only seven hours since I first turned it on after a full charge.

That's terrible, TERRIBLE battery usage in locations that get between -80 and -95 dba reception. I mean, I thought for sure these phones had MUCH more efficient standby battery usage than that.

What could I possibly be doing wrong? I'm using a 10-12-10 kernel on stock CM6 with this version of the battery tweak.

I feel like I got 10x better battery performance on stock HTC rom compared to what I'm seeing now. I used to not have to recharge for several days, but at this rate I'll be completely out of juice by basically doing nothing in less than 24hrs.
[Hero CDMA Android Development] gigermunit:
i already had pretty decent battery life before but i have had my phone unplugged since about 9am and it's 1pm now, after surfing the web a bit, watching a youtube video, and lots of texting and taking pictures i am at 65%, very nice, thanks.
[Hero CDMA Android Development] collin_ph:
Can you go to adb and type batt-diag -v > /sdcard/batt.log and either post or PM me the log.. actually better PM it to decad3nce as well.. I'm going to be out for the next 2 weeks to watch the space shuttle launch.

That should help us determine the culprit. On my wife's phone it also helped to clear the dalvik cache. Also check the usual suspects, widgets, etc.. One time the phone was totally hot from usage and I eventually figured out that I had a bad version of "better alarm clock"-- lots can cause the battery usage problems, but Battery tweak itsself is pretty safe (meaning that it's very unlikely to REDUCE your battery life) if you are using CM6 on a Hero.

I suppose your battery meter could also be wrong in which case calibrating it could help it display properly as well. Just a few ideas for you on my way out the door.

I'll try to check back in over the next 2 weeks while I'm gone, but I won't be able to do any debugging until I get back. Thanks!
[Hero CDMA Android Development] ganjah:
Thanks for all your hard work on this. Here is my batt.log as requested. I'd try to decipher it myself, but I'm not sure exactly what's what in it.

Have fun in FL for the launch! I'll be down there for the last one next year, if it's still happening, anyway!

ganjah
[Hero CDMA Android Development] MoseIlla:
Is there a version of this available for Fresh Rom 2.4?
[Hero CDMA Android Development] theremix:
Is there an RC1 version of this? I am using stable CM6 10/28/10 version. Thanks:)
[Hero CDMA Android Development] theimpaler747:
RC2 is the newest tweak, it's better than the RC1 was :)
[Hero CDMA Android Development] mxl180:
After installing zip is it necessary to run config? Last time I used defaults aanyway
[Hero CDMA Android Development] theimpaler747:
Yes, it is necessary :)
[Hero CDMA Android Development] waterbound:
Disable SetCPU?

I am currently using CM6, #11 kernel with 8/24 nightly..been loving it but obviously battery life is sub-par etc so I think its time to try the battery tweek..

The first page indicates I need to disable SetCPU due to incompatibility issues, does this mean uninstall and currently I am running 768mhz with no issues, will I get the same OC speeds?

Thanks!
[Hero CDMA Android Development] Neo31697:
is this useable with sense based roms also ?
[Hero CDMA Android Development] theimpaler747:
Correct, uninstall set CPU, and yes the tweak can go up to 768 :)
[Hero CDMA Android Development] theimpaler747:
I think it can be, but you'll have to reapply the settings on every boot
[Hero CDMA Android Development] Dj21o:
My phone has been off the charger since 6:45am. It's now quarter til' 8pm and I still have over 50% left on my battery. I have been using it frequently with calls and text messaging. No lag whatsoever when the phone is returning from sleep mode. YOU ARE THE MAN. :)
[Hero CDMA Android Development] johndoehizzle:
any updates?..thanks btw
[Hero CDMA Android Development] theimpaler747:
I believe he's working on an app :)

Sent from my hero running froyo... take that Sprint!