yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] Decad3nce:
Have to do stability tests.

Anyone willing to be a guinea pig for some bug testing?

Preferably, I'd like people who have at least some familiarity with android debugging.

Also, preferably need someone who's phone can boot at 768(since that's the only one I've compiled thus far).
[Hero CDMA Android Development] theimpaler747:
I can do both ;)
[Hero CDMA Android Development] jaybob413:
While you are updating, don't know if you saw this submission.

Increase Clock speed to 83 mhz for s5k3e2fx. You can check it out at http://review.cyanogenmod.com/#change,35 if you are interested.
[Hero CDMA Android Development] Decad3nce:
Looks good, but seems there's also a bottleneck on the encoder(according to them). I'll see how this(http://review.cyanogenmod.com/#change,36) change is reviewed before I move forward on it.

EDIT: On second look, that's for 720p..
[Hero CDMA Android Development] theimpaler747:
Wow, that would be very impressive! Hope that comes through
[Hero CDMA Android Development] :
What's this ramswap you guys speak up? Doesn't that fix touchscreen lag ?
[Hero CDMA Android Development] theimpaler747:
It's virtually memory swap and compression, good to use with class 6sd
[Hero CDMA Android Development] Decad3nce:
Update!

Commit overview(with my changes from upstream):

cpufreq: Remove input event handler code

[ARM] media: video: msm: Don't force V4L2 on when using MSM camera

Fixed conflicts with HeroC

msm_camera: Backport from 2.6.32

I've also updated the s5k3e2fx(our camsensor) driver along with this .32 update(3000+ changes)

[ARM] msm: kgsl: Remove support for mmap from the kgsl driver.

msm_kgsl: Add writecombine flag to map vmalloced memory

msm: kgsl: Remove extra grp_pclk management

Fixed conflicts with HeroC.

fix kgsl standby timer

msm_kgsl: Move kgsl_sharedmem_init to module load

msm_kgsl: Restore the shader when CTXT_FLAGS_SHADER_RESTORE flag is set

msm_kgsl: Optimize TLB flushing

cpufreq: interactive: Changes to interactive governor

Fixed conflicts with HeroC

Summary

A lot of updates with kgsl(Qualcomm) which should provide a noticeable boost in 2D/3D performance. There are also numerous changes to msm_camera which, along with my update to our camsensor(s5k3e2fx), should benefit in camera performance. There's also an update to the Interactive CPU governor, the details can be seen in the last commit on the top.

Enjoy!
[Hero CDMA Android Development] theimpaler747:
Thanks man! Are there any differences between this and my testing version?
[Hero CDMA Android Development] FrankAmato:
amazing work deca!
[Hero CDMA Android Development] :
I know that zenrom comes with a custom boot.img that almost eliminates lag with the touchscreen and I'm trying to see if I can port it to cm 6.0. I have only lag when I use the keyboard in some apps. Not all. Very strange
[Hero CDMA Android Development] theimpaler747:
If you use BFS 768-245 interactive, deadline, there's no typing lag on the HTC IME mod :D At least for me ;)
[Hero CDMA Android Development] :
ill try !

Ill let you know. My hero is quite odd though
[Hero CDMA Android Development] theimpaler747:
Yeah, they're all different, just let me know how it goes :)
[Hero CDMA Android Development] Vandelay007:
Holy shish-ka-bob! With this kernel and switching to decs battery tweak as opposed to set cpu I finally broke 500 on quadrant standard.....505....outstanding work!! Thank you!
[Hero CDMA Android Development] Vandelay007:
Is there a file to download to enable ramzswap? I have an 8gig class 6 so I would want to enable it....I ran

su

free

And saw all zeros....
[Hero CDMA Android Development] jaybob413:
Noticed that you had set CONFIG_MSM_CAMERA_V4L2=y in your .config. Is this needed, or just for continuity? It looks like the change allows compilation of the camera without the V4L2 interface. Are there issues building without this interface?
[Hero CDMA Android Development] theimpaler747:
No file needed, but you need to partition your SD card and then enable compcache in settings

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Android Development] Vandelay007:
I definitely have compcache enabled and I know I had ramzswap working when Dec used to have a seperate file to enable it a few kernels back.....I partitioned my card a while back.....before I started using Firerats partition and stopped needing apps2sd....

It def worked then....I can't help but wonder what else I'm missing....(yes, I left myself wide open there lol)
[Hero CDMA Android Development] srthimsen:
It appears decs battery tweak breaks compcache. Reflash the rom and kernel, then use setcpu until it's fixed (he's working on it)
[Hero CDMA Android Development] house1999:
Has anyone noticed lag waking the screen with the newest CFS kernel from yesterday?
[Hero CDMA Android Development] CrashV2010:
Recommendation, don't use firerate mod... It will mess up your phone and you sd card... Personal experience.
[Hero CDMA Android Development] srthimsen:
Yes. About 2 secs, tried 16 and 32 cm heap, about the same.
[Hero CDMA Android Development] theimpaler747:
Yeah its in bfs too, deca said its for stability purposes :)

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Android Development] Decad3nce:
Just for continuity; There shouldn't be any problems/issues building without the interface AFAIK.
[Hero CDMA Android Development] Decad3nce:
cpufreq: interactive: Changes to interactive governor

Changes include:

* May scale up to intermediate speeds after scaling down, rather than

scale to max speed and then only scale down until max speed needed.

* Tweaked thresholds at which max speed requested (previously CPU must

have been 100% busy since idle exit timer started, now will go max if at

least 85% busy) and default minimum sample time raised to 80ms. Tweaking

based on UI tests, still in progress.

* SMP fixes.

* Fixed attempted multiple delete of sysfs group on governor stop.

Set a just-in-case-CPU-goes-busy-again timer even if nr_running == 0 at

timer function run time, but cancel if that CPU goes idle (and don't

re-arm timer if that CPU is currently idle).

* Re-evaluate speed if a CPU goes idle while above min speed (and no timer

currently set) in case the platform requires all CPUs to be at the same

speed.

* Realtime workqueues disappeared upstream, convert speed up workqueue to

a realtime task. Average scheduling latency measured significantly less

than WQ_HIGHPRI.

* Timers are not deferrable, must wake CPU from idle, since we now

re-evaluate speed for idle CPUs

* CPU load is computed from higher of short-term load since idle exit vs.

long-term load since last frequency change, to avoid dropping speed

during temporary dips in load on long-term-busy CPU.

* Avoid 1 CPU starting new idle exit load eval interval in a race with

timer running on another CPU.

* New fugly debugging printfs should be reworked or go away eventually.​

In bold are the changes that would affect wake.. note that the top is tunable.

I also think I missed on updating sched.c along with these changes. For right now, you can just change the cpu governor to smartass/conservative/ondemand.
[Hero CDMA Android Development] debh945:
I wonder if you can elaborate? I'm having issues and thought it might have been my SD Card but I also use Firerat's mod. What problems did you have and how did it mess up your SD card?
[Hero CDMA Android Development] CrashV2010:
Firerats... This wipped out all my pix that I had on the sd card... But it left all the zips and folders, but all the stuff in them were gone....2 .... I had to reformat my card... 3...Had to figure out how to repartition my phones storage.... Just Not Worth the run around... Def when you are flashing as much as we are, you have to reflash everything and repartition the firerats recovery if the updates or files don't fit the repartition ...
[Hero CDMA Android Development] Namtaru:
Yeah, I am getting wake lock on mine as well, even with the smartass governor set.

For the time being i have nandroided and am running the previous CFS and am no longer receiving the wake lock.

I'll hop on the next release :)

Thanks for all the hard work Dec
[Hero CDMA Android Development] theimpaler747:
Agreed :)

Sent from my hero running froyo... take that Sprint!
[Hero CDMA Android Development] Etrick:
Been experiencing the wake lag for a couple seconds as well. Figured was stability thing. Only notice real lockup at below 40% battery. Adjusted min battery process up to 352 and no more locking up. I think it polls battery to quick when set to 15 sec and lowers speed too quick which crashes launcher. By adjusting I only lost tiny bit of battery life. This only happened at wake, or usually only at wake. 245min seemed too slow. 6.1, cfs16 and 15 did it.

Edit: actually battery polling was at 60 not 15 and would see at least a minute before it realized it was on AC and CPU would ramp up enough to quit lag/lockup.
[Hero CDMA Android Development] Vandelay007:
Idk guys, I have great luck with firerats partition...idk that my emulator showing 0's under swap has anything to do with Firerats partition cause it worked before when Dec added a file to download for ramzswap on earlier kernels
[Hero CDMA Android Development] :
Great kernel.

Running interactive 245/691 on CFS uncapped.

Set dalvik cache to 24m and Autokiller to optimum.

Almost no lag at all with anything. Voice search is instantaneous as well as opening apps.
[Hero CDMA Android Development] norm12:
I my experience decs tweak enables the swap. Whatever you do,don't touch the compcache in cm settings. Just type "compcache start" from the terminal and run the tweak and your swap will work.
[Hero CDMA Android Development] dirkyd3rk:
3D Gaming

I gotta say when using cm6 2.2 ive never really had a good exp with games that require hardcore 3d acceleration etc; for an example i play this game called homerun battle 3d and it requires some crazy hardware to run i mean it plays on the hero overclocked ok but i feel like it runs without any lag on sense roms. all the aosp roms ive tried homerun just runs choppy and jerky. even when using all your amazing kernels they run choppy i guess its maybe just the hero itself but when i play this game on a stock sense rom it runs so perfect on 2.1 but how is that so? reason im posting this is because i installed the latest 11/07 kernel and now the game is running almost 50% better. whatever changes you made affected my 3g gaming as said in your change log for the new addons to the latest kernel. My last questions are what else can i do to make 3g gaming alot more smooth like on a stock sense rom? should i disable jit, is that my 3d problem on aosp roms? thanks in advance
[Hero CDMA Android Development] brokentoaster24:
no such file or directory :/
[Hero CDMA Android Development] gpsmoucer:
I think I understand what you're saying your setting are...could you clarify?

1. You're running dalvik cache at 24m, or is that the VM heap size at 24m?

2. Is compcache set at 18%?

3. What governor are you using, interactive?
[Hero CDMA Android Development] stayclean:
Try disabling JIT, there is basically no reason to have it enabled on a Hero.
[Hero CDMA Android Development] Namtaru:
This has to have been posted before but I cannot find it, what is the best way to do this on this rom?

edit: and by this rom i meant AOSP's rom, sorry i thought i was in that thread :/

edit: found it http://xdaforums.com/showpost.php?p=8802301&postcount=1519
[Hero CDMA Android Development] neonjam:
Settings > Cyanogenmod > Performance > Uncheck JIT.

Should actually not be enabled by default if you didn't enable it youself before.
[Hero CDMA Android Development] andythegreenguy:
First of all, Thank you all involved for making my Hero a "Hero"... I really appreciate you taking the effort in building the ROMs, Kernels, Tweaks & such and then supporting it, by answering numerous questions, anytime... Big Thanks!

So, after losing SU...

1. I restored my NAND backup (CM6 with Blue Steel theme) - was not needed, now I realize :o

2. Flashed #15

3. Checked SU - working fine

4. Flashed Deca's Mod (BatteyTweak) v2.2

5. Checked SU - it was not working, at this point :confused:

Ofcourse, I flashed the SU framework provided by Impaler, which restored the SU. But, just wanted to bring it to your attention and check if this was a known issue? Or is it something specific in my case.

Again, thanks to all!
[Hero CDMA Android Development] :
Ahhh. I meant heap size yes. And compcache is at 18% which is the default and yes, interactive governor
[Hero CDMA Android Development] iesous-kurios:
I get a message from compache in terminal that reads "permission denied" do I need to type in commands prior to 'compache start' to give me certain permissions?
[Hero CDMA Android Development] dirkyd3rk:
ok fellas thanks i guess i will try disabling jit and see if my 3d games get better performance.
[Hero CDMA Android Development] Decad3nce:
I'll break up your questions so I can answer them better:

even when using all your amazing kernels they run choppy i guess its maybe just the hero itself but when i play this game on a stock sense rom it runs so perfect on 2.1 but how is that so?

should i disable jit, is that my 3d problem on aosp roms?
​

I'm not sure that it runs perfect on 2.1? There are a lot of factors that play into this.

The dalvik virtual machine is tailored more towards our device in 2.1. The sputtering/skipping/choppyness in 2.2 could be caused by the limited amount of RAM that our device has. Low RAM + JIT active = Lots of low memory situations even when running 1 or 2 "heavy" tasks. So before the next, quicker calculation, the system has to retrieve enough resources to be able to hold the task. Games themselves are heavy. So you'll see this problem with JIT.

Disable JIT completely, you don't need it. It's not tailored for our device and it'll only cause more problems than good things.

My last questions are what else can i do to make 3g gaming alot more smooth like on a stock sense rom?​

Things you can do:

Disable JIT

Keep the background processes to a minimum

Set your acpu clock as high as possible

Make sure the ROM contains an update to the qcom library(aosp/jaybob's have it, not sure about CM6)

Hope. Pray. Relax.

Hope that helps
[Hero CDMA Android Development] theimpaler747:
No problem, glad it got you up and running again :D
[Hero CDMA Android Development] norm12:
you must have already typed "su" at the $ and then at the # type "compcache start". if it works you should get a 1 line message. then just type "free" and you should see something other than zero next to the swap. FYI, I had three zeroes next to swap, did "compcache start" and had my swap working with #15. Running the tweak seems to have helped to make it permanent. My issue was that I had the swap working fine until nightly #117 or so and then it just stopped---I hadn't changed anything. rereading through this thread (page 99-101) gave me the idea to try those commands. However, I'm still a bit of a novice so maybe I just lucked out.
[Hero CDMA Android Development] dirkyd3rk:
Wow thanks deca these questions have been on my mind for a while now but I finally decided to ask them. Everything you have said makes tons of sense *pun intended lol* I have used jit since it was first available for the hero and haven't been without it yet. I am going to finally run my hero without jit for a little to see a performance diff. Once again I appreciate your work and advice.
[Hero CDMA Android Development] theimpaler747:
I used JIT, and then disabled about a month ago and IMHO everything is much smoother
[Hero CDMA Android Development] igtheactt1:
It's not firerats its them... **** is fine and running great.
[Hero CDMA Android Development] dirkyd3rk:
You knw whats crazy impaler, some people swear by jit like its the best thing since sliced bread but i never have never gone longer than an hour using a rom that doesn't have jit at least i know now. thanks again dudes
[Hero CDMA Android Development] theimpaler747:
No problem, hope it all works well for you :)
[Hero CDMA Android Development] brett1211:
I get the same thing after 'su' and 'compcache start'

Any ideas anybody?

Thanks in advance, love the kernel! Great job w/ everything!

EDIT: although it gives me the error, after typing 'free', it appears my swap partition is indeed being used. I also typed 'compcache --stats' before checking w/ 'free' .. not sure if the stats param had anything to do w/ it or not
[Hero CDMA Android Development] theimpaler747:
When does it say that? When you type su?
[Hero CDMA Android Development] gpsmoucer:
Thanks for the clarification! I'll try 24m... I believe it's at 16 in CM6 by default. And yeah compcache at 18% is default, but I wonder with our Heroes' hardware limitations if smaller or none would work better.
[Hero CDMA Android Development] theimpaler747:
I agree, 24 is much better IMO :)
[Hero CDMA Android Development] gpsmoucer:
Can someone elaborate on this point? I haven't read of this before, and running CM6 don't know if or how to make this happen. And just for curiosity's sake, what does the qcom library do?
[Hero CDMA Android Development] Decad3nce:
argh, meant the qcom hw3d library(libGLES_qcom.so). It's just better (visual) performance.
[Hero CDMA Android Development] :
None (compcache)is better. I found out after testing for a while. But I'm sure it varies
[Hero CDMA Android Development] theimpaler747:
Compcache can be helpful, but only is you have a class 6 sd card (or higher for phones that can handle it ;))
[Hero CDMA Android Development] gpsmoucer:
Cool. Only have class 4, so I'll disable it. And thanks for your work on getting this old thing working as best as possible. I can't wait 'till sprint releases whatever the successor to the Hero might be.
[Hero CDMA Android Development] theimpaler747:
No problem, and yeah, I'm waiting for something as well from them :D Let me know if you ever need anything!
[Hero CDMA Android Development] house1999:
I keep seeing people mentioning the need for a class 6 SD card for compcache.

So please correct me if I'm wrong, but I was under the impression that compcache compresses a portion of the RAM (say the default 18%, which leads to about 36mb) and uses that as swap. So it reduces the amount of available RAM. The wiki also mentions that compcaches tends to slow down over time.

Swap is what uses a swap partition on the SD card for swap, thus the benefit of a class 6 card.

http://wiki.cyanogenmod.com/index.php?title=Swap_and_Compcache

So in the end, does compcache really improve performance on the RAM-limited Hero? Also, as a side note, the battery tweak sets swappiness to 0 when on battery, which forces the system to swap less.
[Hero CDMA Android Development] street253:
So i followed the instructions listed and ended up at my phone being stuck at the htc screen. I wipe the dakav which was located under advanced partions then flashed the downloaded file. Did i do something wrong? Also the instructions state to download the update.zip i downloaded one of the kernels and didn't see it. Sorry this is my first time changing kernels on my phone. i already did a nanroid before i flashed so my phone is up and running
[Hero CDMA Android Development] theimpaler747:
Swap requires read/write on an sd card, and as flash memory is slower than ram, a higher class sd card is indeed very beneficial
[Hero CDMA Android Development] theimpaler747:
If you wipe dalvik, the next boot will take about 15-20 minutes. You just have to wait and be patient :)
[Hero CDMA Android Development] andythegreenguy:
So, is it a known issue (losing SU after installing Deca's BatteryTweak)?

FYI - it happened again, installed #16 & BatteryTweak and lost SU.
[Hero CDMA Android Development] theimpaler747:
It happened to me once, not on the newest version of the mod though.
[Hero CDMA Android Development] street253:
Yikes! Did not know this i guess i will try the new kernel out again. Thanks =)
[Hero CDMA Android Development] theimpaler747:
No problem, let me know how it works out for you :)
[Hero CDMA Android Development] andythegreenguy:
It happened to me thrice... twice with #15 & BatteryTweak-DecaMODv2.2 and once with #16 & BatteryTweak-DecaMODv2.2. :confused:. Everytime I had to flash the SU framework to restore SU.
[Hero CDMA Android Development] theimpaler747:
Not really sure, have to ask Deca if it's an inherent problem :)
[Hero CDMA Android Development] :
Lockscreen lag in the new kernel is saddening cause its amazing
[Hero CDMA Android Development] theimpaler747:
Yeah, I think Deca's working on it ;)
[Hero CDMA Android Development] :
Good (: haha
[Hero CDMA Android Development] liquidtenmillion:
Just so everyone is clear,

SWAP requires that you have a fast sd card as it writes to the sdcard in low mem situations.

COMPCACHE does not as it takes a slice of ram and compresses it and uses that as the swapfile. Compcache can in fact be used with no sdcard at all. It could also be faster than swap in just about all cases.

They are the same in same every way except from where they save there cache.
[Hero CDMA Android Development] Decad3nce:
If you're having lag on wake-up, just switch to a different cpu governor for the time being(there are instructions on post 2).

Also, the BFS kernel doesn't have the update to the interactive governor, so if you want to experience the boost in kgsl(QCOMM 2D/3D) without the wake-lag... well, that's an option.

I'll probably be updating stuff if I get some time tonight; will have to give interactive a facelift to play along with our bastardized sched.c
[Hero CDMA Android Development] CrashV2010:
To put it very simple, you have made my hero a Hero again... Thank you so much for the time that you put into restoring faith in our phones.. Making them last long enough now to save up for a dual-core in the spring.... Thank you so much man, I hope to be able to follow you far beyond the Hero....
[Hero CDMA Android Development] theimpaler747:
Great, if you need a tester and I'm up I'll be happy to do it again :)
[Hero CDMA Android Development] house1999:
Strange...I removed current widget from my screen and rebooted and now the wake lag is gone even while using interactive governor.
[Hero CDMA Android Development] GeezyAF:
I was running the new BFS kernel and was gating wake up lag on interactive.
[Hero CDMA Android Development] theimpaler747:
Yeah, Deca is on it :)
[Hero CDMA Android Development] stayclean:
Try Ondemand with BFS.
[Hero CDMA Android Development] Decad3nce:
BFS has always lagged with Interactive... the task timing messes with interactive. Stick to ondemand on BFS(or smartass)
[Hero CDMA Android Development] GeezyAF:
Really? Because I was using 10/27 BFS on interactive and never got wake lag.
[Hero CDMA Android Development] theimpaler747:
Yeah, that's an issue on the newest kernel only
[Hero CDMA Android Development] Etrick:
Hey didn't mean to sound like a &%$#@ btw deca. Your kernals are better than Orville redenbacher. Thirty seconds lag is worth being able to cram angry birds up a hero's arse even with no background. Your upgrades sure beat kissing sprints cheeks to make premium upgrades. This is a new phone. I'm still too chix n shik to get too unstable.
[Hero CDMA Android Development] GeezyAF:
Dec said the new BFS never got the new interactive update but always had trouble with interactive if you read a couple posts back.
[Hero CDMA Android Development] theimpaler747:
Ah ok, sorry about that, thought you were just talking about the new lag :o
[Hero CDMA Android Development] GeezyAF:
Simple misunderstanding but I am on the newest bfs with interactive. Just wiped cache and dalvik and the wake lag disappeared. Running at 768.
[Hero CDMA Android Development] theimpaler747:
Hmm, that's odd I did that and still have lag... ah well, I'll just wait for Deca's fix :)
[Hero CDMA Android Development] :
I never wipe dalvik / cache when I flash a kernel, OOPS maybe thats why its so unstable for me
[Hero CDMA Android Development] GeezyAF:
Do you prefer interactive over ondemand/smartass?
[Hero CDMA Android Development] GeezyAF:
Its dec's instructions to do so before and after.
[Hero CDMA Android Development] :
Yeah I noticed D;

I'll do that.

Watch it rock now xD
[Hero CDMA Android Development] theimpaler747:
I would recommend it :D