yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] cjdalessio:
Yeah, I dug in a bit more and nothing at all seemed a logical cause. Still curious what ultimately did it in - I suspect there's something in the Email app that is easily tripped up.

Interactive + deadline on Stable. Should do well with the constant email stuff, network sharing, browsing, and constant music playback I do. No gaming. :)

My wife is gonna make me swap batteries with her tho, she gets nothing out of hers... right now. :) Almost 12 hours and 63%, with over an hour and 40 minutes of display on time.

C
[Hero CDMA Android Development] fifedogg:
If you put on JIT you will get a much higher score. I usually get 5. 3-5. 4 on the latest bfs kernel @ 768
[Hero CDMA Android Development] theimpaler747:
Yes, just be aware that over time, jit may slow down your phone

Sent from my HTC Hero running froyo: take that, Sprint!
[Hero CDMA Android Development] cjdalessio:
Perhaps I spoke a bit too soon. This morning it was not email but I could not get a data connection at all. Logcat spam was the same two debug lines. Had to reboot for data to pick up. Could not get it connected any other way I tried.

Not sure if this is kernel relatedor not yet.
[Hero CDMA Android Development] mrtoofresh09:
Battery Drainn help!!!

im using the latest stable kernel and my bat life is horribleeee......i only get 4 hrsif im lucky....im running cm nightly #95.....2.42.01.04.27 radio nd no mater what settings i change using set cpu or oc widget {together and seperatly} i get the same result
[Hero CDMA Android Development] danaff37:
You should not have both set cpu and overclock widget on your phone, that is probably your problem. Hell, my battery life has GREATLY improved getting rid of both.

I use a bash script to change governors, and leave clock speed alone.
[Hero CDMA Android Development] d12d:
What script did you use to set your clock speed. I use setcpu and just leave mine the same speed all the time. I would love to not have to use setcpu at all.

Thanks!
[Hero CDMA Android Development] TP2DH1:
Running CM6 Build FR91 & Uncapped #9 with Decas batt tweak @691 defaults.

Everything appears to be running smooth for the past 2 days. GPS acquires within 3-6 seconds on average. Camera appears to be working fine. So far Weather Bug's weather map wigit is working. Battery after 6 hours is at 90% with some texting, emails & 2 quick calls.

:)
[Hero CDMA Android Development] gpsmoucer:
I too lost bluetooth after flashing #9 768mhz (CFS stable version). It doesn't seem that I lost bluetooth completely... I can enable it, but I have confirmed I can no longer receive files via bluetooth push from my computer (two computers actually, mac and pc)

Reboot, clearing the Dalvic cache, force killing bluetooth transfer app and clearing data (cache clearing isn't an option) hasn't helped.

Edit: Just confirmed I can pair with my computer, but still no transfer. Haven't tried bluetooth in car or any other bluetooth functions.
[Hero CDMA Android Development] dpeeps74:
Well, I've been pretty happy with "stable" life but a couple of days ago decided to try the #9 cfs I think, 691mhz. No setcpu or anything. I definitely noticed some improvements but 1 thing I found was 3 freezes in the past 2 days I had never had. Nothing really that I'm able to replicate but enough to nandroid back. Improvement I saw was very much related to quickness of data to respond, browser, xda, etc...but the freezes were the deal breaker for me. I've never seen them with stable cm6. Definitely not knocking the kernel, battery seemed improved as well, but I will just stick with stable for now. Just my 2 cents, it's obvious the devs here do great work and help each other out a lot, so they've likely made contributions to the "stable" that makes my phone what it is.
[Hero CDMA Android Development] vashing:
I'm a full time student and have horrible hand writing. Would it be possible to modify this kernel to allow you to use an external usb keyboard. It would be amazing to take notes on my phone. I know its been done before on the hero, but the only examples I could find are for android 1.5. Something like this: http://adq.livejournal.com/95689.html
[Hero CDMA Android Development] danaff37:
Clock speed I leave alone. I let it run at what it's set at.
[Hero CDMA Android Development] Decad3nce:
I'll have to check it out. Have you been able to transfer with this kernel before?

If so, I haven't changed anything regarding bluetooth, so it may require a wipe from your end(it's punny).

Love to see those 'freezes' in a logcat/dmesg. Glad you had a decent experience though.

Ooooo. It seems that it kills other usb functions though? I may look at just making a separate kernel for this. I'll have to check out if everything matches up though.
[Hero CDMA Android Development] TP2DH1:
Turned off GPS in Beautiful Wigits, turns out the GPS receiver in the phone is not very sensitive causing severe battery drain. At home, driving its fine & acquires in under 10 seconds. At a restaurant I noticed halfway through dinner I lost significant battery, turns out Beautiful Wigits hit its 4 hour GPS interval & was pinging for over 30 minutes, because the building structure blocked the signal. When I am camping for a week or more I will leave it on, pine trees and a tent wont block the signal, while in town it will be off for that app.

FYI for those with the Hero and notice battery drain, it could be the GPS since the receiver is not sensitive.
[Hero CDMA Android Development] nspot:
Hey Decad3nce, had another reboot again. Same scenario as before. Was using the Music app and when a call came in and finished, phone froze up when changing songs. Attached is the bugpreport. Thanks.
[Hero CDMA Android Development] bso44:
After flashing CFS and running SetCPU on 748/245 (got reboots on 768), my battery life has been insane. My phone's been unplugged for over 48 hours and it's still at 28% with moderate usage. Lovin' it!
[Hero CDMA Android Development] madeSICC:
What percentage does your guys screen use on your battery? Mine easily uses 70-80%. Is that average? I have the brightness fairly low

Froyo!.... its whats for dinner.
[Hero CDMA Android Development] foolforfood:
I just have to say, I'm running CM6 with the latest stable kernel, and it is a masterpiece. Thank you so much for making this phone worth using!
[Hero CDMA Android Development] stayclean:
This is completely normal, display will pretty much always be at the top of the list.
[Hero CDMA Android Development] Decad3nce:
Looking through the logcat, it doesn't show any specific problems. But the dmesg shows some promise to why this might be happening.

It seems like there are too many wakelocks active and

<4>[ 3844.224609] Freezing user space processes ... (elapsed 0.00 seconds) done.

<4>[ 3844.233947] Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.

is being caused by too many kernel threads not being able to share cpu. But that could just be from excessive uptime and the dalvikvm not really being meant for .29

I see this is after 10 days of uptime?

Time on battery: 14d 2h 59m 12s 61ms (66.5%) realtime, 3d 8h 20m 0s 48ms (15.7%) uptime

Total run time: 21d 6h 6m 15s 685ms realtime, 10d 11h 27m 3s 694ms uptime,

Is this only a problem after a lof of uptime?

Is this something new with #9? Has it happend before?

Does this only happen when cpu intensive tasks such as music and receiving a phone call happen at the same time?

I also bugged s0be about this:

my guess, the reboot is caused by a pair of threadlocked high prio things, causing the WDT to not be properly triggered

I'll see if there are any watchdog patches I can scour for.
[Hero CDMA Android Development] nspot:
Umm, the reboots are fairly spaced out, so I guess they occur after a lot of uptime. They've only been happening after flashing #9, so yeah. A few of the reboots occurred during fairly idle times (just music, no calls). The first bugconfig I posted was just music with no call interruption. Thanks.
[Hero CDMA Android Development] vashing:
Either way it would be amazing! I wouldn't mind having to nandroid back and forth between kernels just to use the keyboard. He posted talking about having a software toggle for usb host mode so adb would still function, but I never saw a real example of it implemented. The kernel doesn't really have to be all that stable or fast, just enough to take notes and save them to the sd.
[Hero CDMA Android Development] s0be:
These devices have USB OTG(On the go). The default driver only uses device mode, but they're fully functional as hosts too. You can just have 2 separate usb drivers you unload/load for the toggle function (from what I remember)
[Hero CDMA Android Development] cuezaireekaa:
same thing happened to me a couple times. dec#9 \\ collinstweak @710.:(

But boy does this setup fly on the nightlies. wish it would stop freezing about 3 songs in..

Thanks for all your hard work Decad3nce. :D
[Hero CDMA Android Development] saltyclams:
This kernal is awesome. Thanks Dec! I really didnt think I would see as much difference as I am seeing. Im also having issues at 768... but movin it down to 748 is fine enough, and 100xs more stable.

Awesome.... awesome.
[Hero CDMA Android Development] saltyclams:
Actually, I think that I might have spoken too soon. The kernal, when working properly is smooth and fast and a good bit noticeable different than the standard on CM6. However, my LP continually crashes and the phone reboots itself every now and then. I move the max down to 729 and it seems to have helped the issues a bit. Is that just a coincidence or does the max speed setting really have that much to do with the stability? Im on CM6, using the stable/latest kernal. I wipe dal/flash update... wiped dalv again thinking those were some "strange problems."

Can anyone point me in the right direction? Or is what I am experiencing the norm?

Thanks!!

--- ohh crap, i just noticed i dbl posted... sorry bout that.
[Hero CDMA Android Development] aosp:
that might fix it;)
[Hero CDMA Android Development] Decad3nce:
Alright guys... I updated my battery-tweak. See post 2!

Added a completely new Battery Temperature management system.

It allows you to set the min/max override frequencies as well as the temperature for when to override the frequencies at.

Don't worry, you can opt-out of the extra 1-2 cpu cycles that this causes, and it's disabled from boot. If you want to enable it, just type

batt-cfg

then you'll see

Please choose an option and press enter.
[1] Revert to 768mhz defaults and exit
[2] Revert to 691mhz defaults and exit
[3] Customize settings
[4] Disable Battery Tweak Entirely
[5] Disable CFS Tweaks
[6] Disable Disk Boost
[7] Enable Audio Fix (Disable Stagefright)
[8] Temperature Management
[9] Save Changes & Exit
[Enter]: Exit Without Saving Changes

Notice the new menu "Temperature Management".

It allows you to enable the Management system as well as change all the variables to your own liking.

I also removed the LEDfix as it's obsolete.

I'm tired. Have a nice night.
[Hero CDMA Android Development] CrashV2010:
Thank you, Sir !!!!
[Hero CDMA Android Development] madeSICC:
So. If I'm using set CPU then I have no need for this correct?

Froyo!.... its whats for dinner.
[Hero CDMA Android Development] Vandelay007:
Correct

Sent from my froyo using the xda app
[Hero CDMA Android Development] madeSICC:
Thanks.

Froyo!.... its whats for dinner.
[Hero CDMA Android Development] Sodikop:
I would recommend trying the battery tweak out. I was a big supporter of SetCPU before I stumbled onto colin's original battery tweak. As Deca has mentioned a couple times, SetCPU uses a lot more overhead (system resources) than this tweak and is therefore not as optimal for battery life. Just like autokiller is like a smarter and leaner task/app manager, this is like a leaner and meaner SetCPU.

SetCPU is great for phones that don't support the battery tweak, but it has been known to become unstable depending on your phone. Just like some Hero's can't handle going over 691 MHZ, some phones can't handle SetCPU so YMMV.

Give this a try with whatever Kernel you like, and hopefully like me you will find it much more agreeable with your phone.
[Hero CDMA Android Development] hotaru:
that's only if you use profiles in setcpu. setcpu without profiles enabled uses less than the battery tweak.

in my experience, having a service running to change the cpu scaling settings drains the battery a lot more than just leaving it set at 345-768 with the interactive governor.
[Hero CDMA Android Development] Decad3nce:
There's a lot more to the tweak than just changing the scaling settings :P
[Hero CDMA Android Development] hotaru:
yeah, but at least for me, none of it is worth the extra battery drain that comes from messing with the scaling settings.
[Hero CDMA Android Development] Decad3nce:
I don't see how there's battery drain from messing with extra scaling settings.. you're just writing to the scaling_max_freq and scaling_min_freq on the fly. It's not written to unless there's a change, so the write doesn't happen every polling interval...

But if it's not giving you the results then I guess I can't say much for it.
[Hero CDMA Android Development] brokentoaster24:
hey deca, the tweak script runs automatically at boot now right? or do i have to restart it every time?
[Hero CDMA Android Development] Decad3nce:
If you're running CM6, it runs automatically
[Hero CDMA Android Development] Sodikop:
As I said before, some phones don't like SetCPU as much as others do, I'm lucky in that both the tweak and SetCPU worked on my phone. I have just found the tweak to hold a lot better than SetCPU, which on occasion would hangup and lock the cpu at its lowest setting. So again, YMMV with the tweak and SetCPU, use either one and never both.
[Hero CDMA Android Development] mxl180:
i'm sorry..but what is "the tweak" ? I'm currently using setcpu.
[Hero CDMA Android Development] theimpaler747:
If you use set cpu, then don't use the tweak :) They conflict
[Hero CDMA Android Development] mxl180:
Understood, but seems like he claims the tweak has an advantage? Just wanted to know what it is.
[Hero CDMA Android Development] theimpaler747:
It saves battery by lowering max frequency as battery drains, along with some other things
[Hero CDMA Android Development] startak11:
I think the #9 + today's nightly = compcache no longer working...

I did a full wipe then selected 26% rebooted...terminal emulator shows nothing shared...then switched to default option and rebooted and still nothing shared?

anyone else experience this?
[Hero CDMA Android Development] CrashV2010:
I looked at the same thing, Su in terminal and then punched in free... Has a big 0 next to it....
[Hero CDMA Android Development] startak11:
dunno...my phone is super fast is compcache even necessary at this point?...i've got several apps installed internally and still at bunch of MB free

Does compcache even help since the decad3nce's kernels are so good? Impaler?
[Hero CDMA Android Development] startak11:
by the way crash...i haven't yet enabled JIT and it's superfast...

I don't think it can improve much more than the quickness that already is....is it worth it and are you using JIT?...it's so fast without compcache and JIT...but obviously I want to maximize and will switch on JIT if it will improve quickness
[Hero CDMA Android Development] theimpaler747:
Compcache usually helps if you have a class 6 sd card, but otherwise it won't do much :D
[Hero CDMA Android Development] theimpaler747:
JIT slows the phone down over time... I don't recommend it
[Hero CDMA Android Development] startak11:
i do have a class 8 card...impaler do you recommend to enable or not? I don't want to slow over time....I can't imagine it can get much quicker with the hardware

enable JIT or no? (NM saw your response)
[Hero CDMA Android Development] CrashV2010:
I will try the roms out without jit enabled right now...
[Hero CDMA Android Development] madeSICC:
I use jit all the time and I really like it. I never get any weird symptoms. But I also reboot my phone pretty regularly

Froyo!.... its whats for dinner.
[Hero CDMA Android Development] theimpaler747:
That's probably why lol
[Hero CDMA Android Development] madeSICC:
Yea I figured that's why

Froyo!.... its whats for dinner.
[Hero CDMA Android Development] gpsmoucer:
I've tried to do my due diligence and read up on the optimal collin's battery tweak settings, but I still don't know what or how to set most of the settings.

Should I simply go with the "Revert to 768mhz defaults and exit" (My phone seems to handle 768 just fine, using CFS #9),... instead of customizing settings and using the recommended "CPU Governor: Interactive" & "I/O Scheduler: deadline/noop?"

I guess I'm a little unclear if the default settings incorporate the best settings. For what its worth things seemed to work fine with SetCPU at 768/245 - perhaps a little slower than with the collin's tweak.

BTW, on the #98 nightly with the #9 CFS kernel I have Compcache enabled at 18% (using a class 4 SD)... can't tell if its made the phone any faster, though.
[Hero CDMA Android Development] CrashV2010:
Just a heads up, I think you will still need the sticky LED fix in your battery tweek. My LED sticks, till I went back to your first Battery Mod... Thank You !!!!
[Hero CDMA Android Development] danaff37:
Hey deca.... did you disable loop devices by any chance in the latest kernel?
[Hero CDMA Android Development] Decad3nce:
Nope.

CONFIG_BLK_DEV_LOOP=y
[Hero CDMA Android Development] CrashV2010:
Is the new 2.1 battery mod supposed to hang at the HTC screen for a while ?
[Hero CDMA Android Development] danaff37:
yeah I broke it somehow. I'll work on it later when I have time. lol
[Hero CDMA Android Development] laie1472:
A decad3nce thanks for all the hard work and the awsome kernels but Ive been running the # 13 since release date and it flies no doubt as usual :-D but had to go back to # 12 yesterday I have one of those werid heros wen ever I use a batt mod or mem mod it slows my phone down or drains the battery but in this case it just sucking the life out of my batt like Dracula with a fresh victim Im wondering if there is a way I can remove the mem killer settings and just have the kernel with every thing else forgive me if this sounds stupid I know nothing about making or modding kernels I leave it to the pro so Im asking is this possible thanks in advance

Root-Hack-Mod-Always™
[Hero CDMA Android Development] :
no longer relevant.
[Hero CDMA Android Development] Decad3nce:
Fixed some bugs with the Temperature Management in the Battery Tweak.

COMMITS:

e215beda2c417de45bc2

4f20912e24315d8c0462

:P
[Hero CDMA Android Development] CrashV2010:
Did you add back the LED tweak ?
[Hero CDMA Android Development] Decad3nce:
There's no need for it? Why would I add it back?
[Hero CDMA Android Development] CrashV2010:
Oh, okay sir, sorry !!!!
[Hero CDMA Android Development] laie1472:
Well the # 12 still superchargers my hero with excellent batt life thanks for the hard work Decad3nce

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Decad3nce:
Two new stable versions out (#13 + #10)

They have the same changes, but #13 is 768mhz and #10 is 691mhz-capped.

All the changes are from upstream and the specific commits can be seen here: http://github.com/Decad3nce/htc-kernel-heroc/commits/heroc

I'll be updating the BFS branch later tonight. Thanks dedian for being a guinea pig!
[Hero CDMA Android Development] laie1472:
My bad Decad3nce I should have mentioned I was referring to your Bfs # 13 I don't use the cfs cause I think the Bfs's are faster on my phone

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Decad3nce:
Oh lol. I meant that I just had an update out. Sorry if it came across differently lol.

I'll have a BFS update tonight :D
[Hero CDMA Android Development] laie1472:
Ill b on stalk mode looking forward to it will it still have the mem killer setting built in??

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Decad3nce:
of course.. every new edition has a changelog.. if it doesn't specifically say that I 'reverted, or removed' something, then it's still there.
[Hero CDMA Android Development] laie1472:
Is there any way I can disable it don't mean to bug u man it's just every time I use a mem mod or batt mod my cell seems slower

Root-Hack-Mod-Always™
[Hero CDMA Android Development] laie1472:
I get awesome performance and batt life with bfs # 12 but # 13 I'm dead in like 4 to 6 hours no matter what I do I've never had this happened before and I know u got better shi* to do but I don't get to chat with u often so Im trying to get as much info as possible thanks in advanced

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Sodikop:
Gonna try out #13 CFS today and will report back what I run into, if anything. :)
[Hero CDMA Android Development] Decad3nce:
:S Do you have any extra settings? Are you using autokiller?

There's no way to manually change it without compiling without the changes.

Check what your top 5 processes are:

adb remount
adb shell
top -m 5 -n 1

and just paste the output here.

I'll help you debug.
[Hero CDMA Android Development] laie1472:
Booting up now

Root-Hack-Mod-Always™
[Hero CDMA Android Development] laie1472:
got it up and i have the results but i cant figure out how to copy and paste from the command terminal im using vista ultimate forgive my ingorance but im trying to figure out how
[Hero CDMA Android Development] Decad3nce:
If you're on windows. Select the text; go to the command terminal border, right click, and it'll have an option to copy.
[Hero CDMA Android Development] laie1472:
Microsoft Windows [Version 6.0.6002]

Copyright (c) 2006 Microsoft Corporation. All rights reserved.

C:\Users\Laie>adb shell

# top -m 5 -n 1

top -m 5 -n 1

User 1%, System 3%, IOW 0%, IRQ 0%

User 7 + Nice 0 + Sys 11 + Idle 342 + IOW 0 + IRQ 0 + SIRQ 0 = 360

PID CPU% S #THR VSS RSS PCY UID Name

138 4% S 60 259600K 27208K fg system system_server

3295 3% R 1 944K 388K fg root top

108 0% S 2 2104K 296K fg compass /system/bin/akmd

4 0% S 1 0K 0K unk root watchdog/0

5 0% S 1 0K 0K fg root events/0

#
[Hero CDMA Android Development] laie1472:
thanks hope this is what you were asking for if not please let me know
[Hero CDMA Android Development] Decad3nce:
Doesn't look out of the ordinary. :/

You may just need to calibrate your battery since #12 -> #13 contains the idle code backport which changes how the phone idles.
[Hero CDMA Android Development] laie1472:
Thanks for the time and the feed back but that was the first thing I did I even tried my spare batt Which is brand new I'm super confused

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Decad3nce:
could you also dump wakelocks and paste them here.

adb remount
adb shell
cat /proc/wakelocks

If there aren't any problems there, then i'm unsure of why you're having issues :/
[Hero CDMA Android Development] laie1472:
Like right now just dropped like 10% in like 15 min and its just with this #13 I mean it flies way faster than 12 but my batt just can't keep up any suggestions thanks in advance

Root-Hack-Mod-Always™
[Hero CDMA Android Development] laie1472:
Yup give me a sec

Root-Hack-Mod-Always™
[Hero CDMA Android Development] laie1472:
Lmao that looks way confusing

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Decad3nce:
You've had wifi active over these past 15 minutes, correct?

It may just stem from the driver holding a consistent wake-lock. (Thats the only thing I notice here)

EDIT: Idle-lock also seems to be over-active.

Do you have the same issue when using #12?
[Hero CDMA Android Development] laie1472:
The fact u can understand that amazes me if u ever have time and nothing to do which I doubt I would love to have like a guide or a thread explaining all that / that's if you ever have time

Root-Hack-Mod-Always™
[Hero CDMA Android Development] laie1472:
Nope get way way better batt life with # 12 and all of ur kernels expect #13 the only thing is wen I used Collins batt tweak it slowed my phone down and mem killer did the same and please forgive me but wen I used your batt mod it slowed me down as well that's y I can't use them

Root-Hack-Mod-Always™