yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] theimpaler747:
352 should be enough for any app, the point deca was making is that since he put 19mhz back as a viable frequency, it may be going to 19 and causing the problem :)
[Hero CDMA Android Development] Drizzzle01:
Requested Logcat attached.
[Hero CDMA Android Development] Decad3nce:
Try kicking up your scaling_min_freq

path is /sys/devices/system/cpu/cpu0/cpufreq/

Example:

echo "176000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

Otherwise.. get me a dmsg/logcat of the app cutting out.
[Hero CDMA Android Development] Decad3nce:
Don't see anything too out of the ordinary in that. Then again it seems to be cut off. Can you dump the logcat while recreating the 'crash' with the app?

Also, try kicking up the scaling_min_freq like i mentioned above.
[Hero CDMA Android Development] Drizzzle01:
kicked up min_freq like mentioned before and

echo "748800" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

since my phone loops on 768000, and it corrected the issue. Thanks :-P
[Hero CDMA Android Development] oostah:
The #51 691 works alot smother and faster than the #60 691.
[Hero CDMA Android Development] Decad3nce:
Based on what? The only thing that was changed is the freq table and forced scaling governor. Try switching to interactive.
[Hero CDMA Android Development] oostah:
I'm not using any kind of governor thought you didn't need one with the 691. #51 691 the pages load faster apps are smother and faster no lag. I use the 691 kernels on my wife's and kids phones are 20 and 26. That way they can't change any thing it makes my life easyer.
[Hero CDMA Android Development] xDragod:
Deca, I've been kinda curious since you started changing the kernel numbers... What is your numbering strategy? Like... #43 -> #51 -> #60. I just don't see a pattern. :P
[Hero CDMA Android Development] Decad3nce:
It's Linear Congruential.
[Hero CDMA Android Development] dburg84:
sorry if I missed it. has the latest 768 wifi issue been fixed?
[Hero CDMA Android Development] Decad3nce:
Not yet. Can't repo sync anything atm on my lappy. wlan.ko won't compile properly until I get that working.
[Hero CDMA Android Development] vita10gy:
Doesn't look like it, unless he's fixed it in the last hour or so. It's flying though.
[Hero CDMA Android Development] brokentoaster24:
dude i can't wait for #19683
[Hero CDMA Android Development] removebrain:
thanks for the great kernels.

openvpn seems to be broken on your 2 most recent versions (#59 & #60). It works fine when flashing back to CFS #43. I'll try swapping the tun.ko files.

thanks.
[Hero CDMA Android Development] Decad3nce:
Just updated. Included the updated tunnel modules too. Sorry about that.
[Hero CDMA Android Development] Decad3nce:
Kernel update!

Maintenance update

Updated wifi and tunnel module

Reverted vm tweaks

New toolchain
[Hero CDMA Android Development] xDragod:
No updates for a month then we get like 4 updates in 3 days.

Someone is overcompensating.
[Hero CDMA Android Development] Decad3nce:
Haha.. erm.
[Hero CDMA Android Development] xDragod:
Uncomfortable? lol.
[Hero CDMA Android Development] Sodikop:
:rolleyes:

Oh come on, the guy does nothing but give us his time and extraordinary efforts. He bows down from being very active with releasing his kernels to the general public because his thread ended up with nothing but "Sw33t!1 10char" or "This/That got broke...FIX IT!!!" comments. We got something we didn't deserve, and then had the audacity to *****...:confused:

/rant

@Deca:

THANKYOUTHANKYOUTHANKYOU!!!

I thought I was going stir crazy for a bit when I saw this thread update. Then I thought I was going even crazier when my phone ran great for a few hours, but suddenly started having seizures. Running the newest revision now, will report any weird issues I run into.

again...THANKYOU!!

edit: ok well, I am not sure if I ran into the same issues as others (wifi does work), but i did figure mine out. When I first ran the new kernel from the 20th, this phone ran great...for a while. Then pretty much any major ui change (open a menu, go "home", open new app, etc.) would laglaglag. It would hang for almost 30 seconds sometimes...

Anyways, went into batt-cfg and changed the governor from smartass to interactive and seems to have fixed the problem. My phone never liked smartass no matter what I tried. When I read it was the default for this new kernel I was ecstatic when the phone ran great the first flash.
[Hero CDMA Android Development] ch1naski:
Bah, math. Trust me, it's a passing fad. Roman numerals is where it's at.:rolleyes:
[Hero CDMA Android Development] KBizzle:
Digging the new kernel on my 2.1 Rom. Curious if I can use the 06 batt tweaks on a 2.1 Rom?
[Hero CDMA Android Development] KBizzle:
Oh also, what's the adb command to change the governor to say interactive or ondemand?
[Hero CDMA Android Development] Decad3nce:
The script is included with the kernel update.zip. Itll run on boot on any ROM.
[Hero CDMA Android Development] skyline247:
Nah, fingers and toes, my friend, fingers and toes. Well, excepting when I has to count over 20, tee hee.

lol, jk. Anyways, flashed the wifi fixed updated kernel, and everything is still blazing fast for me Deca. Thanks M8. Lots of progress since #14 eh? :D
[Hero CDMA Android Development] KBizzle:
Good deal.

What about the codes to change the governor through adb?
[Hero CDMA Android Development] Sodikop:
I'm using Deca's battery tweak. lets you control a few other things, one of which is the governor.

See the bottom of the second post.
[Hero CDMA Android Development] theimpaler747:
Sorry double post
[Hero CDMA Android Development] stricklerjosh:
Did I ever say I was overclocked? My phone is flying at 691 and great battery.
[Hero CDMA Android Development] theimpaler747:
Well to each their own I guess! My phone has amazing battery and is flying at 768

Sent from my HTC Hero running froyo: take that, Sprint!
[Hero CDMA Android Development] mdsj:
I re installed overclock and only set the phone to 710 and my phone is working great. I can only imagine what 768 is like. Lovin my phone right now :cool:
[Hero CDMA Android Development] Decad3nce:
Updated the BFS kernel with some things I forgot to add in earlier + Eris compatibility + updated touchscreen source via darch + the usleep function via ninpo.
[Hero CDMA Android Development] theimpaler747:
I see a new BFS is up... Is GPS still broken, or does it still vary per user?
[Hero CDMA Android Development] Decad3nce:
I'd say it's a little bit more stable.. but not anywhere near 'good' enough, but I haven't tested this latest one on the road.
[Hero CDMA Android Development] theimpaler747:
OK cool keep up the great work! Hopefully one day in the near future we'll have a .32 BFS kernel with full GPS that's 100% stable :D
[Hero CDMA Android Development] brokentoaster24:
i'll give it a test. i'm about to head to work (i'm a pizza delivery guy :P)

i'll let you guys know how it works
[Hero CDMA Android Development] theimpaler747:
Great, thanks man. If it works well for you then I'll probably flash it over stable #9 and try myself.
[Hero CDMA Android Development] mdsj:
Quick question: if I uninstall overclock and I have it set to 710 will the CPU automatically default to 691 even if I don't set it that way before I uninstall?
[Hero CDMA Android Development] theimpaler747:
Yes. If you change to a kernel that doesn't support 710, then even if you don't change the setting in set cpu, it will default back to 691 when you boot up the slower kernel.
[Hero CDMA Android Development] mdsj:
Well what if the kernel can be overclocked to 710, I have it set that way and then uninstall the overclock and still have the overclockable kernel?

Sorry that sounds ridiculously complicated. LOL
[Hero CDMA Android Development] theimpaler747:
If the kernel supports 710, then you can uninstall your overclock app and the kernel still will run at 710... is this what you're asking? :)
[Hero CDMA Android Development] brokentoaster24:
Tested new bfs, GPS locks on but doesn't follow well. Takes a good 20 - 30 seconds to update your position if you're moving

Sent from my cm6 hero
[Hero CDMA Android Development] theimpaler747:
Well that is an improvement, which means we might be close! I would love to use a bfs kernel but I need my GPS a little too much to give it up

Sent from my HTC Hero running froyo: take that, Sprint!
[Hero CDMA Android Development] brokentoaster24:
Agreed

Does anyone know if the newest stable kernel works with the Eris?

Sent from my cm6 hero
[Hero CDMA Android Development] Decad3nce:
I just added that this morning to github(for my stable). I haven't compiled it, don't have an eris to test, but darch said it works fine except for the soft keys.
[Hero CDMA Android Development] brokentoaster24:
Cool, I've got some coworkers with Eris' that were interested in this

Sent from my cm6 hero
[Hero CDMA Android Development] iczerjones:
Thank you, thank you, thank you for the 8/27 stable #9 kernel!!!!! My epic battery life is back with 2.2!!! I was seriously considering going back to Fresh 2.3.3 simply because I couldn't get more than 8-10 hours out of moderate use CM6, but all is well again.

Thank you. =)
[Hero CDMA Android Development] Decad3nce:
About ~25 commits and 2 updated drivers along with 5 frequency table changes :p
[Hero CDMA Android Development] Sodikop:
adb remount

adb shell

batt-cfg

3

follow the prompts from there
[Hero CDMA Android Development] KBizzle:
I don't use batt tweak. My experience everytime hasn't been good with it. Just want to change the governor.
[Hero CDMA Android Development] hotaru:
echo interactive>/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

and i'm sure you can figure out how to change it for ondemand if you want that :p
[Hero CDMA Android Development] KBizzle:
I appreciate it.
[Hero CDMA Android Development] Robbie_G:
Hey,

Thanks to all for their fantastic work on this kernel and the great support in this forum.

I'm still kind of new to all of this. I'm looking to get the most out of my hero, but still have a battery that gets me through the day. :)

CM 6.1. I cleared dalvik cache, flashed DecaFuct 12222010 (768), flashed BatteryTweak DecaMod 2.2. I then ran batt-cfg, turned on temp management, then set 768 mhz defaults. Browsing through the settings, I noticed the governor was set to interactive instead of smartass, so I changed it. Scheduler is set to deadline.

I've been trying to keep up with the last many pages in this thread, but I'm honestly way over my head. Should I not have ran the 768 defaults in batt-cfg? Should I change any of the other settings besides going back to smartass (i don't even know what that means)? Should I enable the cfs tweak? While we're at it, it seem like the 768 kernel is set to run at 691 on battery (in batt-cfg defaults), so is there even a difference between that and the 691 kernel when running on battery?

Thanks for any help!
[Hero CDMA Android Development] Decad3nce:
Setting the 768mhz defaults in batt-cfg should set your scaling_max_freq to 768 while on AC/USB connection. If you wanted to go 768mhz on battery, you'd have to hit option number 3 when running the tweak and then customizing everything.

Smartass, like interactive, is a cpu frequency scaling governor. Smartass is actually based on interactive but holds a few extra conditions along with it. During sleep, it allows the phone to go from 19mhz - 352mhz freely but not any higher. During wake, it makes sure that the devices stays above 518mhz at all times. They're embedded "sleep" and "wake" profiles if you want to look at it that way, without a 3rd party program creating any extra overhead.

The CFS tweak sets NO_NEW_FAIR_SLEEPERS in CFS sched_features. Essentially, it makes the Completely Fair Scheduler behave more like a traditional scheduler where nice value isn't really taken into account. It noticeably improves both raw cpu performance and graphics performance. The one draw back is that gps tends to cut out when NEW_FAIR_SLEEPERS is disabled. The script inside the battery tweak, when CFS tweaks is enabled, checks for the navigation app activity. If the activity is present, it automatically turns off the CFS tweak so that gps behaves normally. You can thank collin_ph for his ingenuity on that.

Hope that helps.
[Hero CDMA Android Development] aiwetir:
THE navigation app or A navigation app?
[Hero CDMA Android Development] Robbie_G:
Thank you for that! Very helpful.

What settings do you run in the batt tweak?
[Hero CDMA Android Development] Decad3nce:
Only the google navigation app. You could manually add the check for other apps though:

navPID=`pidof "com.google.android.apps.maps:driveabout"`
if [ "$navPID" ]
then
disableCFStweaks "Disabling CFS Tweaks, GPS Navigation detected.";
else
if [ "$CFSstate" != "enabled" ]
then
mount -t debugfs none /sys/kernel/debug
log "collin_ph: Changed sched_features (CFS Tweaks Enabled)"
echo "NO_NEW_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features
umount /sys/kernel/debug
CFSstate="enabled"
fi
fi

It essentially looks for the process id of the google navigation activity. If it's there, then it disables the CFS tweaks; else it sets NO_NEW_FAIR_SLEEPERS.
[Hero CDMA Android Development] Decad3nce:
Right now I'm not running the tweak as I need to test the kernel battery life as a control.

Usually:

Interactive

176000-614400

deadline
[Hero CDMA Android Development] Robbie_G:
Cool. Thanks for the help!
[Hero CDMA Android Development] 24601:
Bluetooth Connectivity

@Deca-

Beginning with #51 bt is not connecting properly. Prior to 51 I would install kernel and reboot twice, then bt would work and connect. Now, bt turns on, phone says it is properly paired, but will not connect to car audio. Any reason bt would be affected with the newest kernels? I am using your latest iteration of Mau5 (which, btw, is awesome).
[Hero CDMA Android Development] aiwetir:
Thanks for this, I understand the code but am cluless where to find this.

Alternatively is there a setting I could just change for NEW_FAIR_SLEEPERS.

I have a gps app I ride my bike with, I haven't tested it yet as I've been sick but I'm guessing it's gonna have issues with this.
[Hero CDMA Android Development] laie1472:
Have to say DEC this is by far the best kernel IMO. that you've released love the recovery signature lol but man once again can we say zoom zoom thanks for yet anthoer master piece and enjoy your hoildays would report what's works and what doesn't buy ummm everything works real smooth and I mean everything works smooth thanks again

Root-Hack-Mod-Always™
[Hero CDMA Android Development] Decad3nce:
It's in batt.sh inside the battery tweak script.

There's a switch you can use for the CFS tweaks in the scripts itself. It's one of the options in the main menu.
[Hero CDMA Android Development] Decad3nce:
Don't see anything that could've affected BT. Is there any way you could reset the 'saved' connections on your car audio and then try again?

The few devices I have around here can connect fine via BT so far.
[Hero CDMA Android Development] :
Thanks

Deca just wanted to say Thx for all the work you put into this thread and the community.been running the different ver. since #20 something and haven't missed a beat. Have a great Happy Holiday's

Fdx
[Hero CDMA Android Development] Decad3nce:
Happy Holidays to you as well.

:)
[Hero CDMA Android Development] hunterd13:
i had that happen on the latest with my earpiece. bluetooth icon comes on, then goes back off. reflashed previous kernal and all is good again. hardware and software are crazy sometimes. thanks for any and all effort you put in for everyone.
[Hero CDMA Android Development] aiwetir:
You know I tested my app today and it runs fine, but I'll poke around anyway, Thanks!
[Hero CDMA Android Development] Decad3nce:
I'll review the latest commits; if anything I just left something open ended.
[Hero CDMA Android Development] brokentoaster24:
Hey deca, have you seen around the boards lately people have been cooking up kernels with trickle charging/superior charging? Just wondering if you've looked at it (as if you didn't have enough to work on). Happy holidays! :D
[Hero CDMA Android Development] AGiLiT:
Hey Deca:

I'm wondering if this is causing the problems I have with Sprint Navigation. It constantly loses and then instantly regains the gps signal. I don't have the problem with Google nav.
[Hero CDMA Android Development] c00ller:
Maybe we could compile a list of GPS apps we use for someone to add to the script? Just an idea, since Google Navigation is definitely not the only app we use that needs GPS.
[Hero CDMA Android Development] 24601:
Reinstalled #589 and bt worked fine. Last night flashed jaybob's extblue, then flashed #589 again, and now bt doesn't work again :p I am sensing this is a phone, bt issue, not a kernel issue. Btw, 589 is zippy. Thx again, and happy holidays
[Hero CDMA Android Development] hunterd13:
that is so funny. jaybobs extblue is what i have that the latest kernal and bt not playing well together.
[Hero CDMA Android Development] mercado79:
My brother just showed it to me... seems very cool.

Original thread here:

http://xdaforums.com/showthread.php?t=876590
[Hero CDMA Android Development] Decad3nce:
That original commit looks ugly. I'll dig through it though and figure something out. That's for htc_battery in 2.6.32 so it'll require a few other backports as well, unless I can just adapt the idea straight up.
[Hero CDMA Android Development] c00ller:
I don't know if it's the new kernel, switching to smartass, or incorrect perception but my battery life seems to have improved drastically since the last release :D
[Hero CDMA Android Development] Decad3nce:
It's the updated frequency table :P

On another note.. I almost have this trickle charging/superior charging thing working..
[Hero CDMA Android Development] brokentoaster24:
Good work sir, didn't expect you to get it that fast. Guess that's what I get for underestimating you ;)
[Hero CDMA Android Development] Decad3nce:
I have it patched; won't boot though. I'll see if I can figure out the problem.
[Hero CDMA Android Development] brokentoaster24:
I glanced through the evo and inc forums, they said it works on both phones since they have the same battery drivers. Don't we the same drivers since we the same battery?
[Hero CDMA Android Development] KBizzle:
Now that's exciting news. I did some reading on that today and it sounds fantastic. Thanks for digging into it.
[Hero CDMA Android Development] ch1naski:
+1 on the battery life. thanks, deca.
[Hero CDMA Android Development] ms79723:
I thought the Hero used a different battery driver from the Evo...I saw a battery driver file for the Hero and it looked more like the Desire's than the Evo's.

But thinking about it now...maybe someone took the info from the Desire's and put it into the Hero's...I'm gonna see if I can find that file again.
[Hero CDMA Android Development] brokentoaster24:
Desire devs have it working too, maybe we could kang from them
[Hero CDMA Android Development] ms79723:
Different battery driver, wouldn't work. Which is why I was confused when I saw the same battery driver file in a Hero kernel...can't seem to find that page again so I'm starting to think that I made it all up.
[Hero CDMA Android Development] brokentoaster24:
Well shoot, wish I knew how to help other than suggesting difficult things to add :p

maybe we need more backports or a true .32 kernel to get this fully working :/
[Hero CDMA Android Development] ULoveAriana:
Ok so for some reason the OP is confusing to me on my phone & I heard about some updates so I'm running 2.6.29.6-cyanogenmod ameer@darchstar#3 kernel uncapped I believe so is there something better I should be running (probably) & if so which one is it t.i.a :)

Sent from my DarkHorse Hero CM6.1 ;)
[Hero CDMA Android Development] vinnypel2ella:
This one :-)

Sent from XDA App - HTC Hero AOSP 2.2.1 Froyo - Decafuct #589 - BB: 2.42.02.10.29 -
[Hero CDMA Android Development] ULoveAriana:
Thank you :)

Sent from my DarkHorse Hero CM6.1 ;)
[Hero CDMA Android Development] mercado79:
deca, very awesome that you got this into the kernel so quickly! though i still think it sounds super cool, i just read an article that says it is very bad for the battery.

http://phandroid.com/2010/12/25/you...is-lying-to-you-and-its-not-such-a-bad-thing/

not sure if it matters to me since sprint allows us to upgrade every year or so, but maybe something to warn users about. or to have as an add-on patch to the standard kernel. is that even possible?

anyway, just thought i'd share the link. interesting stuff.
[Hero CDMA Android Development] brokentoaster24:
Android tries too hard to protect our batteries :p
[Hero CDMA Android Development] JWnSC:
What libs are needed for liquid?
[Hero CDMA Android Development] spanglmd:
after flashing this kernel my boot takes forever. gets stuck in logcat with

AudioPolicyService not published

Waiting for sevice media.audio_policy

any ideas wtf is going on here?

Edit: Nevermind. Pulled the battery and it booted right up.
[Hero CDMA Android Development] Decad3nce:
Chances are you'll probably never see it in this kernel anyway. I just like trying things.

what?

Sounds like the cpu is pegging at boot. Try flashing the 691mhz version.
[Hero CDMA Android Development] spanglmd:
@deca

i'm going to do that. at 768 this is running really sluggish compared to the kernal I was using before. gonna play around with some stuff
[Hero CDMA Android Development] Decad3nce:
If you're device can't handle the higher frequencies, it'll do more harm than good, including sluggishness.
[Hero CDMA Android Development] spanglmd:
I was running it at 768 on whatever other kernal I was running before with no problems.
[Hero CDMA Android Development] JWnSC:
what?

Sorry, I was asking what files are needed from cm6 to get this fully functional on a 2.1 sense based rom. :)
[Hero CDMA Android Development] Decad3nce:
Oh, ok. Lol. Sorry I thought you meant the liquid(phone), so I was confused.

Just grab the sensor and lights libraries from /system/lb/hw/ in cm6 and push them to the same place in your sense ROM. Everything else will work fine.
[Hero CDMA Android Development] oostah:
Just flash the kernel I have the #43 691 on my wife's stock 2.1 alltel rom with root. Runs great thanks again dac for great kernels
[Hero CDMA Android Development] brokentoaster24:
I wandered over into the gsm hero boards and asked erasmux about trickle charging and he seems to think the hero already behaves like that :confused:
[Hero CDMA Android Development] Decad3nce:
Yeah, that's something I talked to him about too. It's just the effect of being on "100%" battery capacity for an hour or so after getting off of charger.
[Hero CDMA Android Development] brokentoaster24:
Is that just an effect or is it actually charging more? From what I've read they've changed the driver to allow the battery to completely charge and not just to what android thinks is full
[Hero CDMA Android Development] :
Just to let you know I'm running Liquid right now with Decad3nce's #589 kernel and this rom is smooth and fast.

BTW thank Deca!