yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] d1msum4lyfe:
'with google' phone?

hardware revision 2?
[Hero CDMA Android Development] gomorrah:
Nope. HTC branded, hardware revision 0002.
[Hero CDMA Android Development] abcdfv:
I'm running "with Google"

Fresh 1.1
[Hero CDMA Android Development] d1msum4lyfe:
i'm wondering if some phones got shortchanged
[Hero CDMA Android Development] gomorrah:
I dont know. I ran # free in adb shell and my regular memory was the same as everyone else's, but my swap was way smaller.
[Hero CDMA Android Development] d1msum4lyfe:
Same here. Hm...
[Hero CDMA Android Development] noonanjs:
Can someone please tell me if my compcache is working, thanks:

C:\androidsdk\tools>adb shell cat /proc/ramzswap

DiskSize: 48976 kB

NumReads: 18

NumWrites: 17

FailedReads: 0

FailedWrites: 0

InvalidIO: 0

NotifyFree: 0

ZeroPages: 0

GoodCompress: 23 %

NoCompress: 52 %

PagesStored: 17

PagesUsed: 14

OrigDataSize: 68 kB

ComprDataSize: 50 kB

MemUsedTotal: 56 kB
[Hero CDMA Android Development] justinisyoung:
yes yes your compcache is working. if you get a return from doing cat /proc/ramzswap it means your compcache is working.

on a side note, the htc power management issue is quite serious actually. again, its if you send a text from the stock app, your awake time will become 100% due to a lock on the phone app or something like that, if i remember correctly. i turned on my phone this morning at 7 to send a text and didn't know my awake time was 100% till 4pm, and i'm at 26% battery!
[Hero CDMA Android Development] theoottesen:
Im not having that issue with the stock app, and my awake time is at 18%, havent rebooted in 35 hours. I was sending text all day yesterday.
[Hero CDMA Android Development] justinisyoung:
strange, i just rebooted my phone and sent a text to test it out again.. and it doesn't seem like my wake time is staying at 100% anymore...

i have an idea that there's something else affecting this...
[Hero CDMA Android Development] posguy99:
Why? What's wrong with what you got? Be specific.
[Hero CDMA Android Development] abcdfv:
My awake time is at 23%

Having no issues with battery life.
[Hero CDMA Android Development] chippillie:
It will show that before you pull and uncomment the lines at least mine did. You can follow theraginasian's guide here. http://xdaforums.com/showthread.php?t=623308&page=20. I don't know if it is working or to the fullest if this is not done. You could ask MoDaCo he made it.
[Hero CDMA Android Development] :
Well I wasn't sure if your question had been answered, but to get the compcache to push back, make sure "root explorer" and "mount file system" are enabled in the explorers settings, then cut the compcache and move it to the sd card, open it as text, and del all the # symbols. Save, and cut and paste back where you found it. I did it and it worked without a hitch. Hope it helps you.
[Hero CDMA Android Development] adelaney:
Alright, I finally got it working right. I love having Android terminal and es explorer on my phone. Love it
[Hero CDMA Android Development] adelaney:
The only thing I could have been doing wrong, was deleting # and the space after. You wouldn't think it would make a difference, but it did.
[Hero CDMA Android Development] johndoehizzle:
Im running fresh 1.1 n just added this kernel last night...soo much better.first thing i did to try it out was drag icons around on my home screen lol.smooth..n scrolling around on the browser as well..n typing...no problems with this.thankkkkksss!
[Hero CDMA Android Development] ljmeli:
Thanks,

I did not even know about those settings! Makes ES explorer all the better!
[Hero CDMA Android Development] esoteric1311:
Why would you have to move it to the SDcard. You are able to do the with ES file explorer then save the file. Or did you try that method first?
[Hero CDMA Android Development] adelaney:
I couldn't get it to save when working in system. Fyi, in settings choose hiapk Rom not cyanogen. At least for me, that's the way I could get full write priveledges.
[Hero CDMA Android Development] afazel:
no problems with battery life but phone seems to slow down drastically over time. I haven't installed any new major software since flashing the kernel. I'm using Gumbo 1.5b, which is built on modaco. Runs quickly alot of the time, and compcache is enabled.
[Hero CDMA Android Development] tkirton:
What's the matter Colonel Sanders? Chicken? :D
[Hero CDMA Android Development] thedudejdog:
the radar, sir, it appears to be....jammed
[Hero CDMA Android Development] tkirton:
I thought that was already fixed in the 1.56 update.
[Hero CDMA Android Development] justinisyoung:
okay, i'm actually not completely sure of what's causing power management issues. Sometimes i get near 100% awake time, but sometimes i get 10-30%(normal). If anybody gets something like 100% awake time please report back.

and tkirton, yes htc fixed the problem in the 1.56 update, but its not included int he kernel.
[Hero CDMA Android Development] justinisyoung:
Edit: nevermind
[Hero CDMA Android Development] tkirton:
Oh that sucks. There's a configuration in the kernel that deals with HTC Wake Lock. It's on, but I'm curious of what would happen if I turned it off.

Sounds like more experimenting for this weekend.
[Hero CDMA Android Development] justinisyoung:
Yeah im really not sure about the power management... flipz confirms it on geekfor.me... but I dont know why I get it sometimes and why I don't sometimes. trythe wake thing in the kernel... I don't have Linux northeast ability to work with kernels :)
[Hero CDMA Android Development] Diplomat2387:
Has anybody flashed this over the Fresh ROM and if so have u had any problems?
[Hero CDMA Android Development] gomorrah:
I flashed it over Fresh 1.1 and fully enabled compcache and have had zero problems.And got a little speed boost to boot.:)
[Hero CDMA Android Development] tango22203:
newbie ? how do you enabled compcache?thanx
[Hero CDMA Android Development] Diplomat2387:
Is it any faster on Fresh ROM or just on boot up?
[Hero CDMA Android Development] gomorrah:
I think its faster in a lot of ways. Opening apps, settings, launching. The text input was also faster until I started using Swype at which point that became moot.
[Hero CDMA Android Development] Diplomat2387:
So u can just flash Modacos Custom Kernel as an update.zip ?
[Hero CDMA Android Development] justinisyoung:
yes you can.
[Hero CDMA Android Development] HeroMeng:
You think this would work if I flashed it over 1.6? Probably not..... but, still.
[Hero CDMA Android Development] AH28:
Ever since going from MoDaCo 2.0 to 2.2 my battery goes from needing to be charged once a day, to needing to be charged three times a day!! Anyone else experience this/know how to fix it??
[Hero CDMA Android Development] INCubed:
Under the...

/system/init.d/

...folder I only find 'modaco.sh' and 'compcache.sh'.

Am I just supposed to delete the comments from both of those files to enable compcache or am I missing something? I find no 'ramzswap.sh' file or anything of the like.

Actually, I mistakenly removed the entire contents of both of the files I listed above instead of just deleting the #s in front of the contents. Could someone please post the contents of both files so that I can fix this error of mine? ;) Thanks!
[Hero CDMA Android Development] mrinehart93:
I don't know why that would happen, but you may want to try either tweaking Android's internal task killer in MoDaCo's kernel, or you can try flashing gbhil's Gumbo kernel that has the internal task killer already tweaked. I recommend this because it cuts down on the number of running apps by freeing memory. But what does this mean? Basically, I've had my phone on all day today, and only lost one bar of battery life :) Oh, how I love my Hero now :)
[Hero CDMA Android Development] mkeyslehman:
Look up the 2.2 Custom Rom thread. Paul set the processor to "performance" and there's a nice write-up on how to change it back to "on demand"
[Hero CDMA Android Development] AH28:
Thanks but I already use Advanced Task Manager.
[Hero CDMA Android Development] AH28:
Great, thanks! I didn't realize I wasn't in the 2.2 thread to begin with...
[Hero CDMA Android Development] paulobrien:
Internal task killer is VERY different to things like Advanced Task Killer...

P
[Hero CDMA Android Development] rokair:
If you have not already tried it the Fresh Pre 0.2 Kitchen has an option to sign any zip.
[Hero CDMA Android Development] Kcarpenter:
HAHA Glad I checked back on the post before I actually flashed. :-)
[Hero CDMA Android Development] wtphoto:
ok got it to load only thing there is no apps2sd I restored, wipe data and delvick then flashed

wow seems nice and fast I mean fresh was fast for me to begin with but wow.
[Hero CDMA Android Development] paulobrien:
Interesting... need to track down that difference!

Encouragingly, the fundamentals of the kernel work then!

P
[Hero CDMA Android Development] ysoserious:
Does everyone that got stuck in the bootloop use APP2SD?
[Hero CDMA Android Development] paulobrien:
You'll only get A2SD if you're flashing it over a MoDaCo Custom ROM.

Is anyone using MCR and having issues?

P
[Hero CDMA Android Development] JasonMudd:
I just flashed on top of a MoDaCo custom ROM from the Kitchen and everything came up fine. Seems good to go.
[Hero CDMA Android Development] wtphoto:
ill flash it really fast and see
[Hero CDMA Android Development] paulobrien:
Ah, yes, in the rush (i'm about to log off for the day) I probably didn't check it's non-MCR friendly!

I'll fix in a release in the morning...

P
[Hero CDMA Android Development] thedudejdog:
i do, but i wiped data from recovery and now it boots fine. no app2sd support.

paul, where do i find the boot log?
[Hero CDMA Android Development] tkirton:
Here's the log from bootup until the crash.

http://tkirton.dyndns.org/upload/log.txt
[Hero CDMA Android Development] paulobrien:
Oh, btw, if you check out /system/init.d/ramzswap.sh and modaco.sh, you'll see everything you need to try out compcache.

Just pull those files, remove the comment #, push back and reboot! :)

P
[Hero CDMA Android Development] ultivegito2:
I flashed it over Fresh 1.1 without wiping, and it appears to be stuck in the boot sequence. It loads a few frames of that Sprint wing thing, and then stops. It's been doing that for over 5 minutes. I'll try a wipe in a few minutes, see if that does any good, and report back.
[Hero CDMA Android Development] tkirton:
I've been meaning to try the MCR 2.0...guess this is as good of a time to try it.
[Hero CDMA Android Development] tkirton:
It's doing that on the TTG ROM as well. I'm going to try it on MCR 2.0 here in a minute.
[Hero CDMA Android Development] azprogrammer:
Downloading and installing MCR 2.0 so that I can try as well...let you know
[Hero CDMA Android Development] chuckhriczko:
Paul,

I was just wondering if you were going to share the source for your kernel? I have built a kernel with compcache enabled but was having a problem with certain other aspects and was wondering if maybe your code could answer those.
[Hero CDMA Android Development] tkirton:
It crashed again...but it could be the way I put the ROM on. I put the MCR 2.0, then the kernel. I'm going to try again.
[Hero CDMA Android Development] wtphoto:
looks like you have to do a wipe no matter what rom it boot looped with a fresh install of MCR 2.0 as well but after wipe and reflash loads just fine.
[Hero CDMA Android Development] ultivegito2:
Odd...I just wiped then installed Fresh 1.1 again...now I lost the recovery screen. o.O
[Hero CDMA Android Development] wtphoto:
try going into adb shell and reboot recovery that way.
[Hero CDMA Android Development] ultivegito2:
Nah, I fixed it.

However, after a wipe/Fresh 1.1 install, then using the kernel update, my Fresh is looped. Won't load past the /data point. Any suggestions?
[Hero CDMA Android Development] wtphoto:
retore your nandroid reboot then go in wipe and flash thats what i had to do
[Hero CDMA Android Development] bcnice20:
I also got I to work by wipeing data then dalick cache then flashing the update but there's no root ascess at all
[Hero CDMA Android Development] ultivegito2:
Wipe /data? And what am I flashing, the update? Or Fresh again?
[Hero CDMA Android Development] wtphoto:
I have it after flashing over MCR 2.0 but paul just posted that it was very friendly with non MCR roms.

edit: never mind after trying a few things you are right no root

looks like back to my back up fresh 1.1
[Hero CDMA Android Development] JasonMudd:
I dont know if this has been mentioned, but the phone will not connect to wifi after flashing the kernel over a MoDaCo 2.0 custom ROM.
[Hero CDMA Android Development] VinceOB:
I wiped, restored my nandroid, then wiped again and this time it didnt get stuck, buuuuut it wouldnt show me anything else. Just a black screen with HTC on it. Oh, I also got a bunch of FC's. My taskbar would show, but then disappear when i swiped to unlock. Weird...I just went back to my Nandroid backup.
[Hero CDMA Android Development] paulobrien:
Updated to version 1.1. Again, recommended for use with MoDaCo Custom ROM.

P
[Hero CDMA Android Development] Las_Vegas:
Flashed it over my current MDC 2.0 install. No problems booting. Almost everything worked fine. Even WiFi. No SprintTV! Restored and still so SprintTV. Hmm… Perhaps unrelated. Once SprintTV is back, I'll flash again to test.
[Hero CDMA Android Development] tkirton:
I'm reloading my phone...will test in a moment.

Interesting enough, I put MCR 2.0 over the TTG 0.1.6 and it booted fine (saw the a2sd messages...didn't see Permission Denied). However, when I put the 1.0 kernel on MCR 2.0, I saw the Permission Denied messages. Had to wipe phone (factory, davlik and ext) to get it to come up.

Let's see if 1.1 fairs any better.

Edit: I'm up and running!!! The 'Permission Denied' messages from A2SD did not appear in this flash. Kernel version says 2.6.27-mck-1.0 (presume you just fixed the A2SD issue and not updated the version number in the kernel).

I just got a call from my wife...that appears to work fine. Heard the ringtone.

Got to Google on the browser...that's working well.

Bluetooth audio works.

Camera works.

SMS at least sent outbound...awaiting for my stepdaughter to send me a text.

Looks good.
[Hero CDMA Android Development] david279:
Everything works for me. I get crazy speeds on Wifi now using the speedtest app. Didn't see that before.
[Hero CDMA Android Development] david279:
Anybody try this yet? And @paul if i want to stop using these features i just add the comment back right?
[Hero CDMA Android Development] tkirton:
Works on my Fresh 1.1 backup.

TTG is next when I get home.

This is sweet!!!!
[Hero CDMA Android Development] beyondinferno:
Flashed over fresh 1.1 with a2sd and no problems!

Great work Paul.
[Hero CDMA Android Development] VinceOB:
Redownloaded the 1.1 update and flashed it without a wipe over Gumbo 1.5b and it worked perfect. No FC's at all.
[Hero CDMA Android Development] Las_Vegas:
SprintTV's back so I reflashed 1.0. It works fine. WiFi works. I did not have a2sd enabled, so saw no effect there. So far, everything else is working perfectly. Real quick too!

EDIT: I just tried flashing 1.1 over 1.0. Got the following:

Copying files…
E:Can't symlink /system/lib/modules/2.6.27-mck-1.0
E:Failure at line 3:
symlink /system/lib/modules SYSTEM:lib/modules/2.6.27-mck-1.0

Installation aborted.

I did a Nandroid restore and reflashed with no problem.
[Hero CDMA Android Development] myke66:
flashed over TTG, works fine, no issues so far. i do not have app2sd.
[Hero CDMA Android Development] kyrumo71:
Whats this kernel supposed to do, what differences am I looking for?
[Hero CDMA Android Development] darchstar:
please read the first post
[Hero CDMA Android Development] Kcarpenter:
Blah got this 4 times in a row now.:confused:

EDIT:

Now I have this weird hybrid of Fresh/Modaco with out touch??? Have I become owner of the first touchless hero?

Odd to, when I hold down end to power off, the power off screen just flashes and goes away, no time to hit it...oh wait no touch....

Battery Pull
[Hero CDMA Android Development] kyrumo71:
I did, unless I overlooked something

EXT3/4 support, compcache support, NFS etc. etc ?
[Hero CDMA Android Development] 4redstars:
wow, this phone is flying now...installed over fresh 1.1 in case the rom is still relevant.
[Hero CDMA Android Development] wtphoto:
flashed 1.1 after going back to fresh after flashing 1.0 flashed this kernel over fresh NO problem and as everyone is saying my phone is flying now.

thanks paul it never ceases to amaze me what you guy can do.
[Hero CDMA Android Development] Kcarpenter:
has anyone pulled the files and removed the comments yet?? Wondering what other types of surprises we can expect.

BTW. Still no boot for me.
[Hero CDMA Android Development] bcnice20:
if its still not working for u try exactly this wipe your phone flash modaco 2.0 then immidiately after do no boot flash the kernel update that should work fine.
[Hero CDMA Android Development] wtphoto:
what program would you use to modify this? I have this givs a great performance boost but I dont know what to use to change it.
[Hero CDMA Android Development] x99percent:
Umm... What do you think removing comments in uncompiled code would accomplish?
[Hero CDMA Android Development] Kcarpenter:
Well, after I stood on one leg, clucked like a chicked and put mashed potatoes in my pants. I got it to boot with out everlasting FC's.

It took just the right combo of things. Not sure what that was. I think it had to do with Factory reset twice, then ran the update, then factory reset, then ran the update again.....

So can someone confirm Kernel Version:2.6.27-mck-1.0 root@vmware-karmic-x64 )
[Hero CDMA Android Development] tkirton:
That didn't come out right.
[Hero CDMA Android Development] Kcarpenter:
Its not code, its shell scripts...... guess you jumped in late on the thread.

or where you refering to my signature???? Thats sarcasm...I have dug through tons of uncommented code, more than I care to have.
[Hero CDMA Android Development] kyrumo71:
Thats what i'm showing
[Hero CDMA Android Development] Kcarpenter:
Gedit in Linux

Notepad might work in windows. Just don't save it as a TXT file, that may mess up the header. Save it as "All Files" and then dont give it an extention
[Hero CDMA Android Development] thedudejdog:
i've just done this, i just used estrongs file explorer. mount as rw and then went in and removed the #, there isn't a file called "ramzswap.sh" but its called "compcache.sh"

rebooted, the changes stuck i have seen no change as of yet (from the compcache) but the kernel is making the phone tons faster. its night and day
[Hero CDMA Android Development] Kcarpenter:
I gotta say guys I am really just not noticing tons of difference here. Not saying you all aren't.

@paul

Did you disable all the debugging stuff?
[Hero CDMA Android Development] wtphoto:
the only reason I am really seeing a difference is because I was starting to get kinda laggy for some reason. nothing to bad still faster than most that I tried except AOSP builds but after the kernel flash it isnt lagging at all.
[Hero CDMA Android Development] kyrumo71:
Seems the same to me ?
[Hero CDMA Android Development] abcdfv:
Flased over Fresh 1.1 with no issues. So far.

Wifi tether is working. Seems slightly faster, but not ZOMG I WET MYSELF faster.
[Hero CDMA Android Development] mrinehart93:
Flashed over Fresh 1.1 without errors, but it only seems slightly faster. Still noticeable though.
[Hero CDMA Android Development] theraginasian:
Flashed this over a clean load TTG rom 0.1.6. Booted up CRAZY fast. Going try enabling compcache, ill let you guys know how it goes!
[Hero CDMA Android Development] theraginasian:
OK... I pulled /system/init.d/compcache.sh and /system/init.d/modaco.sh, but only compcache.sh had the # lines to uncomment. I uncommented everything, my resulting compcache file looks like this:

# cat ./compcache.sh
/system/xbin/insmod /system/lib/modules/lzo_decompress.ko
/system/xbin/insmod /system/lib/modules/lzo_compress.ko
/system/xbin/insmod /system/lib/modules/xvmalloc.ko
/system/xbin/insmod /system/lib/modules/ramzswap.ko disksize_kb=131072
/system/xbin/swapon /dev/block/ramzswap0
echo "10" > /proc/sys/vm/swappiness

I pushed both files (modaco.sh and compcache.sh) back to /system/init.d and rebooted.

Again, the boot up time is CRAZY fast. With the TTG 0.1.6 ROM I only have to wait for the Nexus One boot animation to create a multi-colored X TWICE, then BAM its on.

However, I don't know if compcache is actually working! Does anyone know what commands to run to test? Very exciting stuff thoughr regardless, I'll be updating my Root Cheat Sheet with how to do this for sure!
[Hero CDMA Android Development] abcdfv:
Seems that despite having my timezone set properly, it's defaulting to GMT -10 instead of -5?
[Hero CDMA Android Development] jamesthomas128:
seems good

Loaded up on Fresh 1.1, then edited compcache.sh with ES and rebooted. Definitely seems faster.

What is the scaling_governor in modaco.sh?

Does this keep the processor at 528 all the time, rather than the stock autoscaling?

We'll have to see how this does on battery life for a whole day.
[Hero CDMA Android Development] dcdave63:
Tried to install over 1.3c, but it didn't happen. Wiped, installed a few different other ROM's, until one finally let me get it installed (I tried 3 or 4 with this in between and honestly don't remember the last one I used). Works great. I see a huge speed improvement. Great work!
[Hero CDMA Android Development] house1999:
How to configure Android's *internal* taskkiller

Has anyone tried this? Looks interesting.

How to configure Android's *internal* taskkiller

xdaforums.com/showthread.php?t=622666
[Hero CDMA Android Development] theraginasian:
So, according to this: http://xdaforums.com/showpost.php?p=5120277&postcount=4

You need to be able to get a return from running "cat /proc/ramzswap"

This, unfortunately, returned this:

# cat /proc/ramzswap
cat: can't open '/proc/ramzswap': No such file or directory

So, I don't think we have any compcache goodness, even with the changes to compcache.sh

Help?

Also... could we maybe get a .zip of the stock Kernel? Just in case we'd like to go back of course... especially since all this is supposed to be changing is the kernel, it should be real easy to go back.
[Hero CDMA Android Development] thedudejdog:
Agreed, I used a app called meminfo it shows no compcache used.

You could always just restore your nandroid backup or flash a new Rom over this.
[Hero CDMA Android Development] wtphoto:
if you want to go back just use your nandroid back up that you should have made before you flashed.
[Hero CDMA Android Development] theraginasian:
I understand that re-flashing the ROM or loading from nandroid backup will take me back to the stock kernel, I'd simply like to re-flash the stock kernel without having to reflash a whole rom or nandroid backup again. Kind of like just applying an update.zip to get animations on TTG rom rather than having to apply an entirely separate ROM. But thanks.
[Hero CDMA Android Development] thedudejdog:
You could always make one, id test it for you;)

Maybe you don't realize the work that goes into compiling a kernel, or even an update.zip for that matter. I've been messing with it since we got the source, its a huge pita
[Hero CDMA Android Development] darchstar:
I think compcache is only enabled in modaco's rom, but im not 100% positive. This is, after all, modaco's kernel and he did state in the first post

Edit: lol, whoops, i quoted the wrong post
[Hero CDMA Android Development] wtphoto:
if you want to get technical this "is" the stock kernel source. now we all know that that is not true however as far as I understand it to get the original stock kernel to compile you need the source that shipped with the phone (which as I said is not this source) sa I belive that the only way to go back is to do the restore from back up as the kernel is not something that you can just pull.

I may be wrong as I am still pretty new to this but thats how I understand it.
[Hero CDMA Android Development] david279:
So no compcache?
[Hero CDMA Android Development] kkruse:
I have no issues yet.