yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] stayclean:
I thought you are supposed to charge it to 100%, reboot to recovery and wipe battery stats, unplug the phone, reboot, use it until the battery fully drains causing the phone to turn off, THEN recharge?
[Hero CDMA Android Development] collin_ph:
Alright guys, this thread has been moved, as RC1 was just released. For more info see the following: http://xdaforums.com/showthread.php?t=762283
[Hero CDMA Android Development] frontay:
Awesome just flashed the new rc1 battery tweak. Thanks for all the hard work. Oh yeah and thanks to the guys above me that outlined how to calibrate the battery, i wasn't sure what the exact process was
[Hero CDMA Android Development] churro7:
can someone help with the replacing the bootscreen?
[Hero CDMA Android Development] nimitz87:
how and when should I recalibrate my battery?

Chad
[Hero CDMA Android Development] tb87:
Thats the correct way to calibrate, I only do it when I do a full wipe.
[Hero CDMA Android Development] cheyennemtn:
Used the 768mhz tweak rebooted and phone acts like a rabbit on crack. WOW ! Incredible. See how the battery life goes.
[Hero CDMA Android Development] collin_ph:
Great! Thanks!

Hey guys, I'm leaving on my trip on Thursday to take the kids to see the space shuttle launch. If you guys are enjoying the battery tweak, please consider donating using the main link-- any little bit helps justify the time I spend to my wife hehe. Just paypal any amount to joe@primoweb.com
[Hero CDMA Android Development] :
Just curious, realizing that the number could change or be different depending on setup, when I do a pidof batt.sh in Terminal Emulator, what number should I see? I am seeing 118, so I know it is working, but I am not seeing a whole lot of battery improvements with the tweak applied.

I get about 16 or so hours, moderate use with default/recommended settings, which is about what I got prior to the tweak...
[Hero CDMA Android Development] theimpaler747:
You solve this in the kernel thread?
[Hero CDMA Android Development] :
Sure did :) Thanks!
[Hero CDMA Android Development] collin_ph:
Which version are you running of CM. Several versions have excessive CPU usage that nearly render the tweak ineffective. I'm currently using Nightly #96, with Deca's latest kernel. I also found a fix for akmd that I'd recommend.
[Hero CDMA Android Development] :
Running 6.1.0 RC1, Deca#24

----------

Sent from the XDA App on my FroYoed Sprint Hero...so forgive my inevitable typos :)
[Hero CDMA Android Development] PRGUY85:
How's your battery life?
[Hero CDMA Android Development] theimpaler747:
Mine's fantastic, about 10-15 hours with use :)
[Hero CDMA Android Development] :
Like I said above...I am getting an average of 16 hours of battery with moderate to heavy use. I was getting about the same before the tweak....But the tweak has helped overall performance
[Hero CDMA Android Development] PRGUY85:
This is with 3G on all the time?
[Hero CDMA Android Development] theimpaler747:
Should be, it is for me :)
[Hero CDMA Android Development] :
Yup. And WiFi, and GPS. I am just too lazy to turn them off :) I use WiFi mostly, but never turn any of them off. That said, I could probably gain an hour or so by turning things off, but what's a mere hour? ;)

----------

Sent from the XDA App on my FroYoed Sprint Hero...so forgive my inevitable typos :)
[Hero CDMA Android Development] eliseexige:
will this also work on aospmod? im on 0.9.7.. battery life is okay but would love to improve it.
[Hero CDMA Android Development] theimpaler747:
Yes it will, install as normal :)
[Hero CDMA Android Development] nucleor1989:
Hey impaler im using the #24 kernel with the collin v3 beta tweak and my battery is horrible with custom and default 691 settings .... in 30 min i lost 40% any tips
[Hero CDMA Android Development] theimpaler747:
What version of CM are you running?
[Hero CDMA Android Development] patmoran:
Battery life is very poor

I am running the latest CM 6.1 with Advanced App Killer and Colins Battery Tweak. With no Wifi or GPS on and the data is off the battery dies within 6hrs on stand-by. I am not sure what I should be looking for to see what could be draining the battery so fast. Thanks for taking the time to make a great tweak. I am sure that I just need to change some things to get it to work right.
[Hero CDMA Android Development] collin_ph:
Two things. First, try posting a batt-diag.sh log here so we can see what's eating battery (post it after 4-5 hours of uptime).

Also, if you'd rather try something out, try running jaybob413's extremely vanilla rom (I think that's the name) http://xdaforums.com/showthread.php?t=731659 just run the vanilla version.. there are a couple of errant drivers that caused my hero to eat battery. There was one related to the tilt sensor that was fixed in jaybob413s release. I highly recommend that release. (and it includes Decad3nce's kernel patches as well), just load the battery tweak right on top of it. I found it to run like a charm. Was running it until I decided to move up to GB to get Battery tweak running on it as well.
[Hero CDMA Android Development] spanglmd:
Is there any kind of solution for background apps, such as Pandora, not functioning properly when screen goes off (essentially not enough cpu to run app since it polls down to 245000 from 768000)
[Hero CDMA Android Development] aiwetir:
Raise the minimum clock while sleeping via custom settings.

posted via tapatalk
[Hero CDMA Android Development] collin_ph:
Yeah, there are several differences. This tweak adjusts memory and disk parameters and CPU scaling behaviors in addition to just the Frequencies. For example, when running on battery, the cpu only has to be 50% active before it will scale higher, but on battery it must be 90% active before it will scale higher.
[Hero CDMA Android Development] DirtyShroomz:
Ahh, thanks. Quick questions... I don't know if it's just late but im assuming "Power" is when connected to a wall/usb? Oh, and you wrote battery twice confusing me even more lol
[Hero CDMA Android Development] atoz350:
Yeah using SetCPU. I also set this one to 691 mhz, the same as before since I got my best Quadrant scores with that setting.
[Hero CDMA Android Development] platinumrug:
Oh okay, so I can just type in SU and then go to the next line and start typing the other stuff??
[Hero CDMA Android Development] DirtyShroomz:
yea pretty much

su, then you'll get a #

then type batt-cfg a menu will pop up asking u which options you want to choose
[Hero CDMA Android Development] platinumrug:
Nice, thanks, I appreciate the help.
[Hero CDMA Android Development] DirtyShroomz:
I was using it at 768mhz always, im using 748 now due to the first setting... ill probaly hit option 3 tomorrow and see what that does to the battery
[Hero CDMA Android Development] pwrmedia:
Confirmed as working on ZenHeroFX Rom, w/ the 691 kernel.

As others have stated, no need to go through ADB if you've got a Terminal Emulator already installed on your phone.

su

batt-cfg

Good to go!
[Hero CDMA Android Development] greensapo:
This is what I am getting when I try it...any ideas on what I am supposed to do next?

Loading 710mhz defaults

Saving Settings...

Usage: mount [-r] [-w] [-o options] [-t type] device directory

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

/system/bin/batt-cfg: cannot create /system/etc/batt.conf: read-only file system

Usage: mount [-r] [-w] [-o options] [-t type] device directory

Settings Saved.

Killing batt.sh process

Starting batt.sh

Started

NOTE: when you exit ADB or terminal, you may have to hit CTRL-C

I tried ADB and a terminal emulator and get the same thing.
[Hero CDMA Android Development] pwrmedia:
When using Terminal Emulator, make sure you're typing su first to allow root access.
[Hero CDMA Android Development] greensapo:
I did type "su". I get into the menu. It is after I select the settings I get to this screen. It seems it has read access but not write? I don't know.
[Hero CDMA Android Development] pwrmedia:
What kernal/ROM are you using? It seems as the issue may lie with you not having a clockable kernal currently...
[Hero CDMA Android Development] greensapo:
I think I got it now.

I did this to remount system as read/write and I don't get that error anymore.

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

I am running Fresh 2.3.3 OC to 710 in case anyone else is wondering if it will work. I don't know if it is working yet but it didn't mess my phone up either so I'm happy.
[Hero CDMA Android Development] yamaford:
Works as in installs on Fresh 2.3.3 but I don't know how its affecting battery as Im driving around an armored hummer this week so time without signal is high. lol
[Hero CDMA Android Development] collin_ph:
Sorry. I have been on an abbreviated sleep schedule. I apologize for any confusion. Yes, "Power" is being connected to the wall or USB.
[Hero CDMA Android Development] DirtyShroomz:
Let me be the first to confirm that this tweak works AMAZING! I get no signal in my house, if I leave my phone unplugged overnight my battery will go from 100% to anywhere between 15-25%. Last night I left it unplugged, with wi-fi running and battery at 64%, I just woke up 5 minutes ago and battery is at 58%. Collins my man, you are my hero!
[Hero CDMA Android Development] dec3ption:
What settings did you use?
[Hero CDMA Android Development] DirtyShroomz:
1. 748mhz

10characteristiccharacters
[Hero CDMA Android Development] dec3ption:
And everything else default?
[Hero CDMA Android Development] smolck:
I will also say this tweak makes a HUGE difference. I am running the latest upgrade and the copper theme for Cyanogenmod 6 and get about 1-2% loss of batt per 2 hours in standby mode. I am easily going all day now. I did nothing but flash the tweak and go.
[Hero CDMA Android Development] DirtyShroomz:
Yup, I messed with custom once but didn't keep it for longer than 1 minute. I've just been using option 1
[Hero CDMA Android Development] Androidious:
[oh, nvm] -- 10chars
[Hero CDMA Android Development] dshook19:
How do I type that into the terminal?
[Hero CDMA Android Development] dshook19:
Greensapo how did u type that into the terminal cause I'm getting the same problem
[Hero CDMA Android Development] DirtyShroomz:
Guys... to use terminal you must first type "SU" then hit enter, then type "batt-cfg".
[Hero CDMA Android Development] ItsDon:
I've done exactly that (without the "" marks, do I need those?) and still I get the read/write error. I'm using the Honeybun 2.6.29 cyangenmod ameer@darchstar #6 kernel with the latest IcedHoneybun (deodexed) V.420-f rom. I must be doing something else wrong somewhere...
[Hero CDMA Android Development] Androidious:
It accidently sent me answer twice...

See Below (next post)
[Hero CDMA Android Development] Androidious:
You guys, if 'su' in the terminal app isn't working, then you likely need to mount the system as read/writeable. To do this, after typing 'su' (without quotes), type the following in:

mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

After you've typed in the above code, then try typing in the batt-cfg to start the config for collin_ph's battery tweak:

batt-cfg

That should fix ya'll's problems if trying this and it's giving you a 'read-only' problem.
[Hero CDMA Android Development] dshook19:
Is there any spaces in between any of that
[Hero CDMA Android Development] Papa Smurf151:
Also make sure debugging is turned on in settings/applications/development
[Hero CDMA Android Development] ItsDon:
That seemed to have worked, thank you. I'll give it a good test over the next day or so.

Will these settings survive a reboot or will they need to be reinput after one?
[Hero CDMA Android Development] collin_ph:
They survive reboots if you're running a darch rom.
[Hero CDMA Android Development] DirtyShroomz:
Froyo must be ran again, got it.
[Hero CDMA Android Development] platinumrug:
So far I think it's running alright, now that TE is running fine I could do other tweaks but I won't. Then again, I'm actually running the other cyanogen mod, dunno if it's similar to darch's or not, I'm sure it is. But my battery seems to be relatively unchanged for now, but it's still good.
[Hero CDMA Android Development] johndoehizzle:
alrighty.just flashed this.im on aloysius.with the UV2 kernel.its 5:20pm my time,and battery at 95%. i have setcpu at 748/748 when awake.and 245/160 when screen is off.

oh yeah,i chose option 1,the 748 one..is there a way to check if all flashed and commands were set for sure?

EDIT: is SetCPU useless after doing this tweak?
[Hero CDMA Android Development] johndoehizzle:
ahh nvm..i went on the documentation page..

Instructions:

Disable SetCPU or other overclocking programs as they will interfere with this tweak.

lol
[Hero CDMA Android Development] Androidious:
That is correct, as setCPU will just 'fight' with the tweaks by collin, etc... so it's pointless to try using it :)
[Hero CDMA Android Development] Jon.StatiK:
Can't read the whole thread atm, sorry.

Am I the only one who thinks this may have decreased my battery life? I'm gonna go through it again tomorrow and get bafk to you.

I used custom settings. Min 19200 max 710 on battery and the rest were defaults. Also I'm not using oc widget or setcpu.
[Hero CDMA Android Development] johndoehizzle:
so its 7:47pm now.batterys at 72% .texting n couple quick calls...whats the best preset/settings in ur opinion?
[Hero CDMA Android Development] collin_ph:
Again, froyo releases by Darch do not need to be manually restarted every time,they should work automatically. Decad3nce and I are working on a version of the tweak which should work on nearly any rom.
[Hero CDMA Android Development] collin_ph:
Try out beta 5, perhaps you'll have better luck. If you still have problems, try the 768 or 710 defaults I've built in.. try customizations after you have a good baseline.
[Hero CDMA Android Development] ItsDon:
Running darch rom or darch kernal? I'm currently running 2.6.34-GoDmOdE-Darchshizz-OC ameer@darchstar #4 kernal on Honeybun V.2 Lite. Is this compatible? It looked like it worked when I implemented it but since you said darch ROM not KERNAL I'm second guessing it. Is there any way to tell or check that it is actually running?

I'm using beta 4 but will load up beta 5 now and take it for a spin, hopefully I'm not just wasting time installing it on an incompatible rom.
[Hero CDMA Android Development] collin_ph:
just check to see if it uses /system/etc/init.local.rc -- if so, this should work.
[Hero CDMA Android Development] ItsDon:
Sorry for the upcoming noobish question......

Could you please tell me how to tell if the rom uses /system/etc/init.local.rc? I'm clueless.

I guess I could ask over at the rom specific thread and quit bugging you, huh? ;)
[Hero CDMA Android Development] johndoehizzle:
hmm..set it on preset 1,768 i belive it is...the phone rebooted itself?...i set it to 710...we'll see how that goes...any1 know why it rebooted?
[Hero CDMA Android Development] collin_ph:
Many phones can't support higher than 710mhz. I'm actually getting better performance with the 710mhz setting on the later builds anyway. Currently, I recommend the 710mhz defaults.
[Hero CDMA Android Development] collin_ph:
You can tell that a rom uses a init.local.rc is if the file exists in /system/etc/init.local.rc --if the file exists prior to loading this tweak, then there is a good chance this will tweak will work. Decad3nce and I are working to write a version of the tweak that will work on most roms.
[Hero CDMA Android Development] Jon.StatiK:
Flashed it and just setup the config with 710 defaults. I work today but get a dinner break around 4. I'll get back to you then and let you know my results.

Thanks again.
[Hero CDMA Android Development] collin_ph:
For those of you getting permission denied messages, please type su before running the batt-cfg through terminal. Thanks.
[Hero CDMA Android Development] mdsj:
I am running Darchdroid 2.7. I have the init.goldfish.sh not /system/etc/init.local.rc any chance of this working?

I have the init.d folder as well but not the file init.local.rc

Thanks for the help.
[Hero CDMA Android Development] cuatillo1:
so which set up could be better the option 710 or 768...?
[Hero CDMA Android Development] budyzer:
Try:

adb remount

adb shell

su

batt-cfg
[Hero CDMA Android Development] collin_ph:
It honestly depends upon what specific ROM you're using. The later test Roms from Darch seem to prefer the 710mhz setting. Once Darch releases a final, I'll narrow down the options. Several people on IRC wanted to try out different variations of the tweak, so that's why I've included the custom options. Darch's test 4 release preferred the 768mhz settings. Be aware that I released a "beta 5" since this thread started-- I updated the main post to indicate that, but if you downloaded beta 4, you should upgrade -- beta 5 is definitely an improvement, especially if you're using custom settings.
[Hero CDMA Android Development] ItsDon:
http://xdaforums.com/showpost.php?p=7396267&postcount=66

Edit - NM this post, OP beat me to it!
[Hero CDMA Android Development] dshook19:
How do I exit the terminal after finishing? It says type control-c but I don't have that option.
[Hero CDMA Android Development] DirtyShroomz:
Still on Beta 4 (if that was the name) I havent updated to beta 5 just yet, but my battery is at 61% after 15 hours at home where the norm is -95dBm and Wifi has been enabled the entire time.
[Hero CDMA Android Development] DirtyShroomz:
Just hit back and exit.
[Hero CDMA Android Development] danielt021:
how do i disable it? is it possible this tweak messed with my reception? now its hard for my phone to connect to 3G where it used to...
[Hero CDMA Android Development] DirtyShroomz:
Lesson number 1. Always nandroid before flashing anything as normally there is no "backing out" unless the Dev creates a .zip or instructions to return it to how it was before.
[Hero CDMA Android Development] collin_ph:
Unless you've set some really aggressive settings (19 mhz or 768 and your phone doens't really support it), then it should have no impact on your phone reception in any way.

I have instructions on removing it that are on the site. The instructions for v2 are still good -- basically delete batt.sh

The next release will include a disable option.

Things I'd check if I were you would be my radio and PRL versions.
[Hero CDMA Android Development] collin_ph:
A quick and dirty removal process is simply to delete the service (batt.sh)

adb remount

adb shell

rm /system/bin/batt.sh

reboot

That will do it- although I have no reason to think that this tweak would have any effect on reception. If you remove the tweak and reception returns to normal, PLEASE report those results.
[Hero CDMA Android Development] DirtyShroomz:
That was the first thing I read before I flashed it lol but it has done nothing but awesomeness to my phone... my battery lasts a ridiculous amount of time. Im normally used to maybe 5 hours at home and about 8-9 while at work (100% signal strength)... Now im at 15 hours at home (and still counting as battery is still at 60%) and only God knows what I would get if I lived in an area where signal strength was 100%... too bad I don't have a place to test it out. Over 30 hours at home at -95dBm and Wifi enabled im sure would be a crazy amount at work where its normally -40dBm or so.
[Hero CDMA Android Development] collin_ph:
Glad to hear you results. It's too bad that I can't release this tweak to the general public (non-rooted phones). I will eventually make a friendlier version with a widget control, which will be as compatible with other roms as any of the overclocking tools.
[Hero CDMA Android Development] DirtyShroomz:
I honestly think this should be a sticky, this has to be the best battery tweak on any phone, ever lol. It's now been 1 hour and my phone is now at 60%... dropped 1% in 1 hour lol
[Hero CDMA Android Development] johndoehizzle:
what settings and rom are u using?
[Hero CDMA Android Development] DirtyShroomz:
CTest4 - 768mhz sorry
[Hero CDMA Android Development] t12icky0:
will this work on FResh Toast 2.1? im really excited to see this and wanted to try it out.
[Hero CDMA Android Development] cuatillo1:
how can you put 748..? just can see 710 768.. im running cm6
[Hero CDMA Android Development] jcf304:
I don't know how long it makes my battery last as of yet...I have a lot of widgets and I know they suck up juice like a small kid on a hot day. But boy does this phone recharge fast off USB. I dont know if any of you guys have noticed but it recharges quick...coincidence ? maybe Im using buufs latest. What im going to do for kicks is just leave it idle with and without the battery fix and see how much juice Im losing in an hour.

Thanks again ..awesome Job
[Hero CDMA Android Development] primerib:
so basically if i understand this tweak slows down the phone as the battery gets lower?

so by time i get to a low battery i wont be running at the initial 710 that i started at?
[Hero CDMA Android Development] krymzon40:
Hey, i'm running Sprint 2.27.651.6 STOCK Deoxed and I don't see that /system/etc/init.local.rc file. Does beta 5 work without it yet?
[Hero CDMA Android Development] Androidious:
Hit the back button on u'r hero :)
[Hero CDMA Android Development] DirtyShroomz:
custom settings you can tweak to what you want
[Hero CDMA Android Development] DirtyShroomz:
Well my test ends here since im at work. 17 hours in and battery is at 59%. 16 of those 17 hours were at -95 - -101dBm and wifi turned on the whole time. Now I am work and using wired tether so I won't be able to continue the test but from the looks of it, I can easily get 30-40 hours on a single charge with medium usage. Couple webpages, phone calls, texts and GPS usage and horrible signal strength.... I really want to run this at full strength, I bet I can get over 100 hours on a single charge
[Hero CDMA Android Development] collin_ph:
Just load the 768mhz defaults-- if you want 748 then re-run batt-cfg, run custom (it will show you your current settings), and just change the 768s to 748..
[Hero CDMA Android Development] collin_ph:
Are you running an OC kernel? It will work with just about any OC kernel, but you'll have to run batt-cfg after every reboot (for now)
[Hero CDMA Android Development] Nannuq:
simply amazing the best thing i have done to my phone. I can't say thank you enough.
[Hero CDMA Android Development] collin_ph:
Thanks! I appreciate the support.
[Hero CDMA Android Development] Lifetrip718:
I'm having trouble with this ... I completed the flash and batt-cfg correctly but then using the device the battery has been draining very quickly almost 1% per ten minutes also I noticed a glitch in moving home icons ... They wouldnt place unless I positioned the icon at the bottom right corner of the position square ... I am not using setcpu our any other app like it ... I am running fresh 2.3.3 with darchshitz kernel 4 ... I did do all this mobile so I'll try when I'm not here in a few hours and let you know the results of that ... Good job btw
[Hero CDMA Android Development] collin_ph:
Were you experiencing any problems before the battery tweak? Did you recently switch roms, etc?
[Hero CDMA Android Development] mdsj:
Ok, I am going to begin my testing now. I have the settings at default to 710mhz, as I am seeing everyone is having the best results with that setting. My battery is currently at 46% at 4:55 pm pacific standard on july 29th, 2010. Will give an update tonight.
[Hero CDMA Android Development] DirtyShroomz:
May your results be as good as mine!
[Hero CDMA Android Development] doojer:
I am going to try this.... sounds awesome.

Will I need to re-flash it over each CM update, or only if I wipe before updating?