yashsingh1/xdaforums huggingface dataset:
[Droid Eris Android Development] sticktodrum:
I set it to NOOP, but I'd prefer "Shoop" by Salt N Pepa. Can you code that in pl0x?

:D
[Droid Eris Android Development] DS36:
Lolol WOW YOUR NUTZ
[Droid Eris Android Development] Abrasher:
Thanks for the heads up. I am getting ready to test this all out myself.
[Droid Eris Android Development] saintdice:
Sorry for the rookie question, but what is the significance of the number you get when you do the pidof bit?
[Droid Eris Android Development] Decad3nce:
It's just the process Id.

Anyways. I'm dropping an update in a couple of minutes.

Adding a temperature management system that overrides the max frequency whenever your battery reaches the user set max temperature. :)
[Droid Eris Android Development] Decad3nce:
Alright guys, new update is live!

It contains some bug fixes from onicrom and a new tool I wrote over the past couple of days!

I've also removed the LEDfix as it's obsolete.

Temperature Management

This new tool allows you to set a temperature(in celsius) at which to override the maximum frequencies to something a bit safer to save your phone battery from melting. It allows you to choose the override max frequency and the override min frequency.

So lets say that you choose the 710 preset.

And you enable the Temperature Management, and set the temperature to 450(45.0 C*) and you set the override max frequency to 537600mhz.

At 45 C*, the tweak will override the preset and echo 5376000 to scaling_max_freq until your battery temperature drops below 45.0 C*, at which point it will resume 710mhz.

Enjoy!
[Droid Eris Android Development] eklipze:
Just flashed update and script wont start anymore. Start command not found I get. Ideas?
[Droid Eris Android Development] Kagedin:
Nice! thanks for the update, I love this tweak. I'm assuming you can just flash over previous version?
[Droid Eris Android Development] Decad3nce:
That stems from the service not being started in the init.local.rc, check with your ROM cook.

It'll still work, but you'll have to start it at boot every time.

Yes. Should flash over just fine. Please let me know of any bugs.
[Droid Eris Android Development] Kruby:
pidof batt.sh dosent return a number, flashed back to previous version and it worked. I'm running Tazz blackened v2.

When using the cfg utility after saving it tries to start and says line 164 not found. Haven't had any issues with v3 tweek.
[Droid Eris Android Development] Decad3nce:
I commented out the start line in the last release(iirc). Run batt-cfg and see if it returns a pid afterwards.
[Droid Eris Android Development] eklipze:
It doesnt for me. Tried to get it to start a few times still no pid
[Droid Eris Android Development] Kruby:
After batt-cfg, save , I get

/system/bin/batt-cfg: line 443: [: : integer expression expected

/system/bin/batt-cfg: line:start: command not found

pidof batt.sh dosent return #

Using terminal
[Droid Eris Android Development] jdog94:
same here .......................
[Droid Eris Android Development] Decad3nce:
Ah. Ill have it fixed tomorrow. Sorry about that.
[Droid Eris Android Development] Kruby:
No problem, I'll go back to v3 untill its ready.
[Droid Eris Android Development] knipp21:
I got the command not found in the older version...but to my knowledge its still running? Pidof batt.sh returned the # 1024 or something like that. In the new version I got what yall got.
[Droid Eris Android Development] knipp21:
I get the same thing running the older version..whats that mean lol? It's running I think but do I need to start it every time phone reboot?
[Droid Eris Android Development] DS36:
Heyyyyy

Could someone post the OLD batt-tweak.... I sorta jumped the gun
[Droid Eris Android Development] knipp21:
It's in the tazz froyo thread. Next to last page. Posted by jdog
[Droid Eris Android Development] knipp21:
My bad...the last page lol
[Droid Eris Android Development] DS36:
Thank you sir
[Droid Eris Android Development] knipp21:
No prob. Can you help with my question lol
[Droid Eris Android Development] Decad3nce:
Ok I put up a fixed version which will for sure work with ROM's that have the correct prerequisites. Sorry about the goof up, rushed it last time :P
[Droid Eris Android Development] Kruby:
Downloading now, thanks for the update.
[Droid Eris Android Development] Hungry Man:
Is there a changelog that I'm missing?
[Droid Eris Android Development] Decad3nce:
http://xdaforums.com/showpost.php?p=8770890&postcount=210
[Droid Eris Android Development] Kruby:
Still had the same issue. No number after pidof batt.sh, after cfg had the same results as before. Heading to bed, I will check back this afternoon wile the Huskers playing.
[Droid Eris Android Development] eklipze:
+1 still no pid after using the updated zip posted... this is on kaos37

will attempt on celb (had previously used earlier versions fine on kaos37 btw) love the script!
[Droid Eris Android Development] strongergravity:
New version is working fine on my celb3.4.
[Droid Eris Android Development] Decad3nce:
It's a problem with whatever ROM you're running then. Probably stems from still not having the call for init.local.rc in init.rc

you can dump the contents of init.rc via

cat init.rc

if you want to see for yourself.
[Droid Eris Android Development] Kruby:
Where should I be looking for the init? The previous version worked with Tazz Blackened V2. Still looking.
[Droid Eris Android Development] Decad3nce:
Just flash the boot.img from the latest CELB froyo onto whatever CM6 ROM you're running and everything should work fine.

Otherwise, tell tazz or kaos to add the import /system/etc/init.local.rc to their init.rc in their boot.img
[Droid Eris Android Development] eklipze:
thanks for the info! :D
[Droid Eris Android Development] Kruby:
Was there a difference from the last version tweek and the new one in how it calls. I flashed the previous and pidof gave me a number. That means that the call is in the rom correct? Thanks for your help Decad3nce, love how the tweek works.
[Droid Eris Android Development] Decad3nce:
Love how that Niles Paul works when he doesn't fumble. I'll probably have a flashable for people running KaosFroyo or any other CM6 ROM that contains the CELB boot.img.
[Droid Eris Android Development] Kruby:
Cool thanks, one moment he is amazing, the next.....

Skrs looking good so far.
[Droid Eris Android Development] DS36:
That would be awsome....
[Droid Eris Android Development] jdog94:
Why does the old version work on razz but not the new?
[Droid Eris Android Development] Decad3nce:
Can someone who flashed this on Tazzfroyo or Kaosfroyo type

adb shell
batt.sh

and see if any errors pop up.
[Droid Eris Android Development] Kruby:
Couldn't get to my PC to use and, but in terminal battle.sh

/system/bin/batt.sh: line 266: syntax error near unexpected token 'fi'

/system/bin/batt.sh: line 266: fi' hope that helps
[Droid Eris Android Development] Decad3nce:
yep, thanks.
[Droid Eris Android Development] rigbyrobot:
Ive got adb running, and I can flash the new version of the battery tweak if you need any more info, ohh and very awsome way to make a point making your phone report diaz knows nothing as the mod version, an iphone user forwarded me that article, had to explain "hackolichious" to him lol
[Droid Eris Android Development] Decad3nce:
Oh man. That post irked me beyond belief lol.

Anyways. I put up an alternate version for TazzFroyo/KaosFroyo, it includes the CELB Froyo boot.img(CFS v6 kernel + Conap/CM6 ramdisk) which has all he prerequisites for battery tweak.

This might bring up other issues, but hopefully not.

Let me know how it goes.
[Droid Eris Android Development] DS36:
scary but ill test it
[Droid Eris Android Development] Decad3nce:
That's why they made nandroid. But honestly, if they're all CM6 builds, there should be 0 problems.
[Droid Eris Android Development] Decad3nce:
Also, a quick message that collin_ph left in his thread. He's a great guy, and has been an asset to the community. So if you feel the need, or want to donate to anyone, donate to him so he can take his kids to see the shuttle launch :P
[Droid Eris Android Development] DS36:
system/bim/batt-cfg: line 164: start: command not found

also no pid
[Droid Eris Android Development] Decad3nce:
ugh. Starting to sound like an outdated busybox
[Droid Eris Android Development] saintdice:
I'm currently in the drain stage of a batt cal. F#ck sake this is taking forever.

Thank you to all involved.
[Droid Eris Android Development] DS36:
better if you posted in the other thread

but glad to hear it....how many hours are you
[Droid Eris Android Development] Decad3nce:
Ok, I just included the xbin directory from CELB because whatever ROM you're using is utilizing an outdated busybox(and probably other stuff).

It's updated in the OP, same link, different md5sum.
[Droid Eris Android Development] knipp21:
I get a pid even after I reboot...but I get the error 164....what do I need to do??
[Droid Eris Android Development] Jbrown6982:
nevermind :P
[Droid Eris Android Development] Decad3nce:
It's working. Just that busybox in your rom is missing the 'start-stop-daemon'.

I put an update in the OP. Contains the /xbin directory from CELBFroyo. It has the updated busybox with the start daemon.

Otherwise, if you don't update it. Some things might not work correctly with the battery tweak.
[Droid Eris Android Development] knipp21:
Ok updating it now will report back in 10 min lol
[Droid Eris Android Development] knipp21:
I updated. Didn't get any errors...but now no number for pidof batt.sh...
[Droid Eris Android Development] Decad3nce:
Hmm. Run batt-cfg and just choose 1. Then see if there's a pid
[Droid Eris Android Development] knipp21:
Already tried lol. Nothing. I'm running the newest version of froyo tazz
[Droid Eris Android Development] DS36:
Same for me on kaos
[Droid Eris Android Development] Decad3nce:
K sweet, at least we're getting somewhere. Can you guys run batt.sh by itself?
[Droid Eris Android Development] knipp21:
No sir. It said error expected token 'fi'

Edit!

*or ma'am. Just in case lol *
[Droid Eris Android Development] Decad3nce:
I'm a guy, that's my gf in the pic. I was biting her ear off, she was getting on my nerves.

This is at line 266?
[Droid Eris Android Development] knipp21:
Lol nice. Yea line 266. Want me to stay on this and trouble shoot with you? If not ill flash the old one back.
[Droid Eris Android Development] Decad3nce:
Well if you want a working battery tweak ported here, then yes I'd need you. :P

I updated the OP again.

I don't understand the syntax error since it doesn't happen no the HeroC, but it might be because I created an else operant but left it commented. I removed that operand all together, lets see what happens.
[Droid Eris Android Development] saintdice:
I'm at 12 or so and I just passed 70%. I've done the tweak before but I just flashed the new cfs and I'm trying your settings. Gotta recal first though.
[Droid Eris Android Development] Kruby:
Worked like a charm, after cfg save and exit no error. Thanks Decad3nce. Like the GBR!
[Droid Eris Android Development] DS36:
well looks like were going to have a few add temp profiles in the new updated tweak
[Droid Eris Android Development] jdog94:
just downloaded and flashed latest tweak in the op and it works great just like it should

the eris tweak for tazz that is

thanks
[Droid Eris Android Development] saintdice:
Right on. Question..you've got the 3500 don't you?
[Droid Eris Android Development] knipp21:
Confirmed. Works for me too :-)
[Droid Eris Android Development] DS36:
haha nope stock !
[Droid Eris Android Development] eklipze:
Latest version works great!
[Droid Eris Android Development] saintdice:
Holy crap...you're getting 40 hrs out of a stock battery?!
[Droid Eris Android Development] Hungry Man:
I suggest downloading juiceplotter. I can get 50+ hours phone off with light usage, 25+ average.

Juiceplotter will help you keep track.
[Droid Eris Android Development] DS36:
Go over to my new tweak thread in the Eris dev forums and check it out... you can too
[Droid Eris Android Development] KingNemesis:
wifi bug

Found a bug after flashing BatteryTweak v3 DecaMod v2(TazzFroyo/KaosFroyo) wifi is not working it keeps saying obtaining IP address so I talked to DS36 and he has it too anyone one else having this problem or can test there wifi
[Droid Eris Android Development] Ddukes76:
tazz froyo zip dload

I dloaded the tazz/kaos zip for the tweak.

booted into recovery,

flashed zip:

E:Corrupt file:

boot.img

E:Verification failed

Installation aborted

:(

ideas?
[Droid Eris Android Development] roirraW "edor" ehT:
Did you check the MD5 checksum of the zip? I'm sure it's a corrupt download, the file worked fine for me.
[Droid Eris Android Development] DS36:
Hey bud it seems like the last update broke WiFi..... hmmm
[Droid Eris Android Development] Ddukes76:
Trying again, but not sure again how to check the md5 checksum of the zip to verify.. can you tell moi, s'il vous plait?

Edit: I redloaded, ran zip from recovery- worked great. Not worried about wifi at this point.
[Droid Eris Android Development] jdog94:
yup wifi broke

tazz tweak
[Droid Eris Android Development] saintdice:
I'm well aware of the tweak thread. Can't wait to try some of it out.
[Droid Eris Android Development] Jbrown6982:
Tazz v14 or the batt-tweak broke it? I use wifi, but hadn't gotten around to notice whether it was working before I slammed the batt-tweak on there. :P
[Droid Eris Android Development] roirraW "edor" ehT:
If you're using Windows, Goggle HashTab. I think it's www.beeblebrox.org. Make sure and get the right download for 32 or 64-bit Windows. Install it. Then, after you copied the zip file to your SD card (or you downloaded on your phone to begin with), in Windows Explorer, navigate to the zip on your SD card. Right-click the zip file and choose Properties. At the top, click hashtab. From near the link of the downloaded zip or wherever, copy the MD5 hash value and paste it into the hashtab box.

It'll show a green checkmark if the hash matches.
[Droid Eris Android Development] roirraW "edor" ehT:
Batt tweak v3 or the Batt tweak v3 that's specifically packaged with the celbfroyo boot.img, not sure which one or both.
[Droid Eris Android Development] Decad3nce:
Heh, I just packaged the wlan.ko from CELBfroyo... if you have wifi problems just flash the CFS v6 kernel and it should work fine.

It's the same kernel in the update.zip, but I guess the wlan.ko wasn't updated.
[Droid Eris Android Development] jdog94:
flashed CFS v6 that did not fix wifi
[Droid Eris Android Development] Decad3nce:
Makes no sense.. does the wifi fail to load?

Also, try loading the wlan.ko module manually

adb remount
adb shell
cd system/lib/modules/
insmod wlan.ko
[Droid Eris Android Development] jdog94:
it will not obtain ip address
[Droid Eris Android Development] jdog94:
now wifi will not turn on at all gonna try reboot
[Droid Eris Android Development] jdog94:
reboot wifi turns on still will not obtain ip
[Droid Eris Android Development] KingNemesis:
Nope still not working
[Droid Eris Android Development] Ddukes76:
You rock T "r" W....

Thanks

Or is it, r "e" e....

Sent from my Froyo Tazz, oc 806mhz, using my Xda app
[Droid Eris Android Development] roirraW "edor" ehT:
You can just call me Max. Mad Max. :D Actually, the first abbreviation is what I prefer, LOL.

You're welcome!
[Droid Eris Android Development] dj.rom:
I'm getting that too on kaosfroyo, but only on a open/unsecured network.
[Droid Eris Android Development] Decad3nce:
Only happens on unsecured networks :o

Ok, I didn't break anything then.
[Droid Eris Android Development] jdog94:
happens on my home network
[Droid Eris Android Development] Decad3nce:
Try replacing the wlan_cu in system/xbin/ with the one that came originally with your ROM.
[Droid Eris Android Development] rick311:
can you explain this in English so that i may understand it? thanks!
[Droid Eris Android Development] Decad3nce:
lol.

In the ROM you originally had, check the zip contents...

look in /system/xbin/ for a file called wlan_cu

Grab it out of there, put it in your phone somehow: either through adb push or via a different tactic.

adb remount
adb push wlan_cu /system/xbin/
adb reboot

And let me know if it has any more bugs after that.

What baffles me is that no one else has this problem after flashing the CFS v6 kernel by itself?
[Droid Eris Android Development] roirraW "edor" ehT:
Don't sweat it, everything's usually all my fault. I would take the hit on this one except that I'm pretty sure that it's all your fault this time! LOL!

Just kidding!
[Droid Eris Android Development] Decad3nce:
The thing is, I'm trying to patch the ROM itself to make the Battery Tweak work against it, rather than ignoring the problem like last time with a few command comments.. I shouldn't have to patch the ROM though if it's really CM6 :S
[Droid Eris Android Development] jdog94:
that didnt fix it either sill wont obtain ip
[Droid Eris Android Development] Decad3nce:
:/ Flash the ROM back over the top.. yes this will remove the tweak.. but I'll have to figure out the bugs later. That, or tell your ROM cook to update to more streamline CM6 stuffs. :p

I'm currently squashing other bugs with this script right now anyways.
[Droid Eris Android Development] DS36:
Im not sweating it kaos is back he told me he may have ph the next release
[Droid Eris Android Development] Wingman520:
Good to hear... then we can enjoy this amazing battery tweak...

Fyi the patch says obtaining IP like the others have said and my wireless networks are secured
[Droid Eris Android Development] roirraW "edor" ehT:
I would be more than happy to help diagnose the wifi thing if I had working wifi at the moment. My router is stuck with my old internet's config, and it survived a reset, so I'm going to have to play with it again for an extended period of time until it just starts working on it's own again like I had to do last time. I might get a friend's unused one within a week but it'll probably be solved by then.

Sorry I have to deal with things with humor but maybe KaosFroyo and TazzFroyo are having an identity crisis?
[Droid Eris Android Development] DS36:
Hey I was wondering if there are more profiles for this in the future... screen off profile
[Droid Eris Android Development] rigbyrobot:
I know its off topic but try looking up dd-wrt and check their wiki for how to do a true hard reset
[Droid Eris Android Development] roirraW "edor" ehT:
Thank you, I will. I never have flashed any of the alternative ROMs on these LinkSys WRT54Gx's, either. Been tempted to try. Sorry for the continued off topic, but I thought I bricked this router with a firmware upgrade once. It was mearly mostly bricked but I found directions to do a proper flash from a minimal ROM it still had.
[Droid Eris Android Development] Kagedin:
Hey so I was having an issue where all my profile settings were 19200 for min and 710400 for Max but when I ran batt-diag the time in freq showed 0 next to 19200 pidof batt.sh returned a # so I know its running. A reboot didn't work so according to DS's advice given to me in his tweak thread I was gonna redownload and reflash. I was running the batt tweak v2 for kf and tf but I noticed it was taken down was that because the wifi issue?

Could my issue be related to that version?

Should I just dl and flash the regular tweak? And will that version survive reboot with tazz froyo? Lol sorry for all the questions
[Droid Eris Android Development] Decad3nce:
I'll be putting up fixes tomorrow. There's a bug in the temperature management in the script; I've fixed it, I just haven't gotten around to updating it for every device. sorry!

For now just disable temperature management and you shouldn't have problems.
[Droid Eris Android Development] Kagedin:
Lol its np thanks for the tweak lol so I ended up wiping dalvik and reflashing and it fixed it, didn't set anything for temp management according to your advice I'll leave it be. Thanks for all your hardwork looking forward to the next version!
[Droid Eris Android Development] rick311:
so is there a fix so that we can get wifi back? is there that much of a difference between the new and old tweak? should i just flash back to the old one? i dont need wifi just yet, but eventually i will.
[Droid Eris Android Development] DS36:
just go back to the old one if you need wifi
[Droid Eris Android Development] Decad3nce:
K guys, I put up a patched version(which includes the temperature management fixes) in the OP.

I'm not going to be supporting TazzFroyo/KaosFroyo as I don't have enough time right now to debug the missing dependencies.

I set up a separate branch for Eris on my github repo:

http://github.com/Decad3nce/battery-tweak-v3/commits/Eris

If you want to pull it yourself to work on it:

git clone git@github.com:Decad3nce/battery-tweak-v3.git
git checkout Eris

This tweak should work perfectly fine on CELBFroyo, please let me know if it has any bugs(it shouldn't).
[Droid Eris Android Development] rick311:
if i do that, do i need to recalibrate?
[Droid Eris Android Development] roirraW "edor" ehT:
Hi, Decadence! Even though I'm on KaosFroyo, I'm still using the latest v2.2 since I don't need Wifi for now. I already flashed the Celb boot.img before using Clockwork Mod Recovery to selectively restore just the boot.img from a nandroid of a fresh Celb backup and the battery tweak is starting automatically as expected.

I went through the Temperature Management config for the first time and I noticed a default or suggested max frequency of 537600 and I wondered if that's a value you need to adjust since it's not in the list of available frequencies. Minor problem, just wanted to bring it to your attention.

Thanks for this!
[Droid Eris Android Development] Decad3nce:
Ah. Well I was just basing it off the heroc freq table.. forgot about that, thanks.. even though it'll echo 537600, it'll just default to the closest freq to it.

:)
[Droid Eris Android Development] DS36:
Our table is 528000

Plus it was our Eris stock max

That where I always default my max temp to.
[Droid Eris Android Development] roirraW "edor" ehT:
I wondered if that might happen, but I didn't feel like a lucky punk to try it without manually setting it to 528000. :D You're welcome, not worth bothering with a minor update, IMHO.
[Droid Eris Android Development] knipp21:
So if I want my WiFi I need to flash the old one? No prob if so I was jw. Thanks for the hard work. 8 hrs of light use and I'm at 70% :-)
[Droid Eris Android Development] waffleb051:
can anyone point me in the direction for teh collins script for kaos froyo i understand it was taken down becasue it broke wifi but i dont need that.....I just cant get the current one to run for the life of me. I hit 1 in the adb and it reports back: setting saved starting batt.sh

/system/bin/batt-cfg: line 164: start: command not found

what does it mean (well i know what it means and yes i know its not working)

i do the pidof batt.sh and it just shows the command no numbers.....Waffle is lost on what to do...

Edit: wait there must have been an error in the first zip i downloaded. Now i have 875 as my number idk what that means, i hope it means it works
[Droid Eris Android Development] intheb0x:
Hey,

im from over on the Evo boards, what would be the best scheduler for battery life?
[Droid Eris Android Development] waffleb051:
What do you mean?
[Droid Eris Android Development] DS36:
noop OR anticipatory if your using ondemand

bfq or deadline for interactive
[Droid Eris Android Development] vacobra1:
I'm wanting to install this but can I set it up without adb
[Droid Eris Android Development] rick311:
yes, just flash the zip like a rom.
[Droid Eris Android Development] vacobra1:
Oh I thought it had to be configured
[Droid Eris Android Development] chippkipp:
After you flash it. Boot back up and open your terminal emulator app and run batt-cfg. Follow the prompts.
[Droid Eris Android Development] vacobra1:
After I save my settings it says

Settings saved

Starting Batt.sh

/system/bin/batt-cfg: Line 164: command not found

Is that a problem?
[Droid Eris Android Development] dwcasey:
Did you mess with the scripts in the zip before you flashed the zip? I show lines 162 - 166 to be just echo statements

echoit ""

echoit ""

echoit ""

echoit ""

echoit ""