yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] darchstar:
GUYZ! Did you not read my post i made earlier! check if you are using modaco's rom before saying "O noez, no compcache"

Sorry for that little rant, but please, check if you're using modaco's rom before saying no compcache.
[Hero CDMA Android Development] wtphoto:
anyone else checked their up-time? seems like mine is high so I am assuming that the power issue still has not been worked out

other than that no problems
[Hero CDMA Android Development] theraginasian:
Look at it this way: The ROM you flashed came with the stock kernel.

When you apply MoDaCo's update.zip you are tossing out the old kernel and using his custom one.

Going back to the stock kernel is simply reversing whatever his update.zip does.

This my friends, is how a Linux Kernel works. Yes, you can change them out on the fly and put new ones in, this is how development is performed on them, CONSTANTLY. Think about when you boot a distro of linux and you sometimes have many different kernel options, all while keeping everything else intact. Ripley's Believe it... OR NOT!

YES, I understand everything you guys are telling me, I was simply requesting a .zip of the stock kernel. If no one makes one, its fine, my life will certainly go on, it was simply a mention at the end of a post about trying to enable compcahe, nothing more.

It's for the power related issues that I would actually like to simply re-flash the stock kernel. But it's fine, I'll reflash the ROM, its no big deal.

Happy rooting all... people in my Advanced Linux Administration class would find these posts rather amusing.
[Hero CDMA Android Development] wtphoto:
lol as I said I am new to this whole thing hell ive only had linux for like 3 days so im not exactly sure how it works. if there is a way to do i sweet I wouldnt mind either.
[Hero CDMA Android Development] thedudejdog:
All I'm saying is, I would like an update.zip also. But until someone makes one the simplest way to get back is restore or flash the Rom.

Maybe you could use your advanced Linux skillz to make the community a update.zip :D
[Hero CDMA Android Development] wtphoto:
lol thats kinda funny
[Hero CDMA Android Development] darchstar:
You could just swap the kernel in the boot.img if you are too impatient to wait for an nandroid restore. heres the guide to do so: http://xdaforums.com/showthread.php?t=622916
[Hero CDMA Android Development] gu1dry:
If you're so high & mighty & all knowing about Linux, why don't YOU make an update.zip with the original kernel? Just saying.
[Hero CDMA Android Development] theraginasian:
LOL! I actually am trying to, but I can't seem to find a decent enough guide about how to sign the zips once I make em. Touche though, touche...

To be fair though too, I'm in Linux Administration not programming. And let's be real, before we make assumptions about how the system works, give me links to information on how it actually works, not a discussion about how you think it might be one thing or another. I think sometimes were all a little too concerned with appearing to be the bigger hax0r and forgetting to just offer polite guidance on how we can all help each other make our phones run better.
[Hero CDMA Android Development] theraginasian:
As I have addressed in a previous reply:

I think sometimes were all a little too concerned with appearing to be the bigger hax0r and forgetting to just offer polite guidance on how we can all help each other make our phones run better.

I will admit that when I wrote the original reply I was a big of this attitude. However, I'm not high & mighty, nor all knowing about Linux. I also TRY not to make useless assumptions. I'll ask the same from my fellow community.

Can we just get back to figuring out making compcache work? While were busy making me look like the jerk that I already know I am, can we try to get this going? I'm loading MoDaCo 2.0 and going to try enabling compcache again, I'll let you guys know how it goes. PLEASE try and do the same and post RELATED to that cause. Thanks!
[Hero CDMA Android Development] theraginasian:
Thank you for this reply, I found it helpful.
[Hero CDMA Android Development] afazel:
Gumbo 1.5b is based on Modaco, so would this work with compcache under Gumbo?
[Hero CDMA Android Development] darchstar:
Yea, It definitely should work on Modaco's rom seeing as how he built this kernel specifically for it. good luck with that.
[Hero CDMA Android Development] gu1dry:
@theraginasian, Just don't make douche remarks & you won't receive douche responses. I didn't make you look a jerk, you did that all on your own.
[Hero CDMA Android Development] gbhil:
It should. All of Paul's scripts are in place and the boot.img is his. I was pretty sure when we got the source either Paul or TK would be the first out with a good custom kernel. A kernel designed for MCR should drop right in.
[Hero CDMA Android Development] paulobrien:
re: compcache, could someone who's made the changes to the sh file do 'adb shell chmod 4755 /system/init.d/ramzswap.sh' and 'adb shell /system/init.d/ramzswap.sh' and post the output?

Cheers,

P
[Hero CDMA Android Development] paulobrien:
Oops, seems I missed out some libs! Will fix shortly...

P
[Hero CDMA Android Development] paulobrien:
1.2 now online with Compcache modules actually included this time (;)) and a few tweaks!

P
[Hero CDMA Android Development] justinisyoung:
:O it works perfectly!

i admire your work... good job! :)
[Hero CDMA Android Development] paulobrien:
Once this is confirmed as all good, i'll release a new version of MCR with it incorporated and also add it in to the online kitchen.

P
[Hero CDMA Android Development] sadalius:
Just installed and booted it up. However, if I pull the compcache.sh and modaco.sh files and remove the #'s, when I try to push them back, I get an error about read only. Any ideas about that? Everything else works great. This was installed over the modded modaco rom.
[Hero CDMA Android Development] justinisyoung:
make sure you do

and then when you finish

i think its the adb remount that you're missing...
[Hero CDMA Android Development] myke66:
working well over a TTG install, fast.
[Hero CDMA Android Development] gu1dry:
Does MCK 1.2 fix the power management issue?
[Hero CDMA Android Development] justinisyoung:
I'm not sure... but my phone doesn't have the 100% awake time like the pre-sprint MR update. I think the missing HTC power management thing won't make too much of a difference...
[Hero CDMA Android Development] sadalius:
Thanks justinisyoung, the remount was exactly was I was missing.... I'm learning....
[Hero CDMA Android Development] gu1dry:
See that's what I'm worried about.
[Hero CDMA Android Development] gu1dry:
Just a heads up, MCK1.2 does not work with AOSP1.6.
[Hero CDMA Android Development] paulobrien:
Tell me more...

P
[Hero CDMA Android Development] gu1dry:
In the CDMA Hero kernel source, HTC left out the HTC power management source & was just see if you have patched it to include a custom one, ported one over from the GSM Hero or simply left it without HTC's power management.
[Hero CDMA Android Development] paulobrien:
Hmmm, I wasn't aware of this!

P
[Hero CDMA Android Development] abcdfv:
I'm at 6% awake time using 1.2
[Hero CDMA Android Development] posguy99:
So far one person has said they did leave out something, one person has said they didn't leave out something.

Of course, everyone wants to burn HTC for what they may not have done.
[Hero CDMA Android Development] Kcarpenter:
I can't find the thread where they said the power management was closed source.... nvm this post.
[Hero CDMA Android Development] jjjjayd13:
Working Well!

So far, so good!

Install this morning and all working well.

Just one question, can I now load Google Nav?

TIA,

jjjjayd13, :cool:
[Hero CDMA Android Development] SupahDave:
What ROM did you flash the MCK 1.2 on? I just flashed it over Fresh 1.1 and I'm at 100% wake time. Has there been any progress on figuring the wake time issue out?

edit: NM. I think it was staying at 100% because I still had the USB plug in. I unplugged it and set it to sleep and the wake time % is dropping. Everything seems to be working well at this point.
[Hero CDMA Android Development] Kcarpenter:
No, we are still on 1.5 just with kernel change. We are still awaiting the devs to get us a 1.6+ ROM.

I was working on the AOSP 1.6 and my Linux box's HDD took a crap :-(
[Hero CDMA Android Development] posguy99:
You're looking for post #17 of THIS thread:

http://xdaforums.com/showthread.php?t=621726

Where the claim is made (without substantiation) that the power management is closed source, and not included.

It's refuted in posts #146 & 147 in the same thread.
[Hero CDMA Android Development] Kcarpenter:
I knew I saw it some where, thanks for the link back.
[Hero CDMA Android Development] kkruse:
1.2 version works excellent. The Load avg seems high but the compcache stuff really did speed up my Sprint hero. I had previously tried the 1.1 version and it was missing some of the kernel mods for ramzswap.

MoDaCo, any chance in adding the FULL IPsec modules in a version soon? e.g. the stuff required for isakmp, esp, and ah protos?
[Hero CDMA Android Development] paulobrien:
This kernel is now integrated into MCR 2.2 - details - and also the online kitchen!

kkruse, i'm not 100% familiar with what is required for IPsec, can you give me any pointers?

P
[Hero CDMA Android Development] VinceOB:
Quick question, how do I know if compcache is enabled?
[Hero CDMA Android Development] tyrnight:
all I gotta say is.. it Flies. its Fast, makes 1.5 actually usable..

I hope its not the placebo effect.. but its very responsive.. sliding up and down the apps menu is smooth.. and it just works.. so far.. Ill keep you updated..
[Hero CDMA Android Development] ljmeli:
Currently running TTG 1.6. Updated with Modaco 1.2 kernel, removed comments from compcache.sh. What I noticed is the after intially loading up items like the phone and contacts, going back into them is wicked fast...looks like compcache is rocking out.

newbie question, I've been researching Compcache, back-swap, linux-swap. With the compcache.sh is there a need to set up a swap partition on your SD card?

I'm assuming that if you did create a swap partition compcache will have access to you partition and use it as needed...

In the end I did create a swap partition on my SD card, I just wanted to see if anybody with more knowledge can tell me if it's useless to create that partition. Want to be sure I'm understanding everything I've been researching. Thanks!

And like I said, recalling of applications is amazingly fast now! Great work!
[Hero CDMA Android Development] Tikerz:
# cat /proc/ramzswap

It should return statistics.

Or you can run:

# free

If you have numbers in the Swap row, then it's running.
[Hero CDMA Android Development] p926g88:
First off, a huge thank-you to modaco and all of the other developers that post here for all your hard work. Newbies like me wouldn't be able to have the awesome devices we have without your help.

I have one question - I've decided on modaco for the rom I will be using for the forseeable future. I have kernel 1.1 right now flashed on top of 2.0. What I'm wondering is, what do I need to do to my sdcard (stock,2gb included, not partitioned because I don't know how) in order to use the compcache feature included in kernel 1.2 released with modaco 2.2.

I'm waiting to cook up a 2.2 rom and flash it until I know what I need to do to use this feature.

Thank in advance.
[Hero CDMA Android Development] paulobrien:
Compcache has nothing to do with with sdcard... so nothing! ;)

P
[Hero CDMA Android Development] p926g88:
Awesome. Thank you very much!
[Hero CDMA Android Development] Tikerz:
This is fantastic. Thank you, Paul!
[Hero CDMA Android Development] p926g88:
The hero is imo the most attractive and the best android device so far, except for its crappy bloatware and slightly underpowered processor. I was pretty disappointed with its performance two weeks ago when I bought it, but I knew nothing of rooting a phone or any of this stuff then.

Thanks for helping me turn my zero back into a hero, lol.
[Hero CDMA Android Development] watzone69:
Very nice, thanks!
[Hero CDMA Android Development] p926g88:
OK, a quick note to anyone reading this from a newbie's perspective, and I'll quit spamming the thread:

CDMA hero, root, 1.5.2 rec img, modaco 2.2 with 1.2 kernel, 2gb stock sdcard without apps2sd or any of that.

Running senseUI, pandora playing,wifi on and connected, BT on and connected, four windows open in Steel, texts open, picture album open.

This phone in its current configuration with all of these open apps and services moves around with nearly no noticeable lag, even scrolling through my contacts, most of which have pictures. I don't know if its partially placebo effect or not, but it did NOT move like this yesterday when I didn't have the custom kernel installed and compcache enabled... and I was not using sense, it was completely removed from the phone all together.

Really amazing stuff.
[Hero CDMA Android Development] VinceOB:
Awesome thanks! Looks like its running.
[Hero CDMA Android Development] swaze:
Did you have to follow those instructions to get it working, or once its flashed from the latest update to the kitchen, will it initialize automatically?
[Hero CDMA Android Development] kkruse:
Yea i have a few boxes up here I think the tun.ko and the gre.ko modules are only a slice of the complete thing. I would attempt to build it here but I dont have any experience or time right now to learn the repackaging of a signed zip. Theres several more modules you need to get plain l2tp or pure IPSEC going. I would think that those are the minimal (if they compile cleanly).

Looking at one of my vpn routers... I see these are built:

ipsec_sha2 7168 0 (unused)

ipsec_md5 4320 8

ipsec_aes 31904 0 (unused)

ipsec 261312 2 [ipsec_sha2 ipsec_md5 ipsec_aes]

I imagine theres more ipsec_* modules for the various linux supported cryptos but md5 and sha2 are probably the most commonly used one on various IPSEC routers. These modules simply need to be turned on in the kernels 'make menuconfig'.
[Hero CDMA Android Development] wtphoto:
hey Paul,

not sure what you changed between 1.1 and 1.2 but with 1.1 my phone slept just fine but after flashing 1.2 awake time is 100%.

flashed the same way I did the 1.0 and 1.1

wipe data and dalvick > restore backup > flash kernel > reboot
[Hero CDMA Android Development] paulobrien:
MD5 Crypto support is already enabled in the 1.2 kernel release.

SHA 256/512 aren't... will building with these cryptos let you use IPsec or is there more?

P
[Hero CDMA Android Development] Tikerz:
Once you flash it, you have to pull and edit the /system/init.d/compcache.sh file and uncomment the lines. Then push the file back and reboot. It'll work after that.
[Hero CDMA Android Development] kkruse:
I believe that is all. I think we will likely need an app or something from the market to utilize this. Something to handle the nego phase (daemon, app) is about all but these are the drivers needed for freeswan (IPSEC) in linux.
[Hero CDMA Android Development] VinceOB:
I believe Paul enabled it in 1.2. All I did was got into the Shell and typed free and it showed everything.
[Hero CDMA Android Development] Tikerz:
I had to go pull the file and uncomment the lines after flashing 1.2.
[Hero CDMA Android Development] swaze:
Couple questions, what directory is being referred to below?

Also I saw in the thread to use notepad and just save as "all files". But im confused on the exact process, how exactly do you edit after pulling?

adb remount

adb pull /system/init.db/compcache.sh <your directory here>

and then when you finish

Quote:

adb remount

adb push <your directory here> /system/init.db
[Hero CDMA Android Development] EasierLikeThis:
So this has to be done when flashing to ROM 2.2 (which includes new kernel) or only when flashing the new kernel 1.2 (or both)?
[Hero CDMA Android Development] Tikerz:
I flashed the kernel to the MoDaCo ROM I was already using and had to edit the compcache.sh file. I don't know if the 2.2 ROM already has the compcache.sh edited to enable Compcache.
[Hero CDMA Android Development] Tikerz:
A directory on your computer. If you're using Windows it would be like c:\<directory name>.

To edit the file I used Notepad++ or you could use Textpad.
[Hero CDMA Android Development] KERKEDAGAIN:
..or one can "invest" in a root file explorer from the market and cut out the pc and adb altogether!!! haa
[Hero CDMA Android Development] bcnice20:
compcache seems to be automatically enabled for me after flashing the core

i did notice if you flash the core overtop of a rom you have already flashed

the new kernel in it messes with it but if you flash the core overtop of another

rom with the older kernel everything works fine well at least thats how it went

for me
[Hero CDMA Android Development] bcnice20:
and btw dont try to use set cpu its messes with it n actually ends up slowing the phone down more then it helps clueless as to why considering i know nothing about pretty much as new as you can get to all this stuff my first dive into android or linux at all was the hero so yea...
[Hero CDMA Android Development] theoottesen:
It will work you have to enable the userspace gov. and modaco has the perf. gov. set through his shell script, i disabled that in the script and set it up and it works like a charm.
[Hero CDMA Android Development] bcnice20:
im likin the way modaco has things set up right now think i just stick with this but thanks for the info
[Hero CDMA Android Development] abcdfv:
Translation:

Cool story bro, but modaco is so awesome I fear that modifying his kernel will anger the kernel god, who will in turn plague me with kernel demons that will cause my Hero to spit fire, shoot lazers, and blow up my toaster.

Then I will not be able to make toast. Unless I can somehow master the demons and have them use their fire spitting power to perfectly toast my toast every time.

I like my toast with jelly...
[Hero CDMA Android Development] Kcarpenter:
WTF is that about???

L-M-A-O.
[Hero CDMA Android Development] david279:
WOW! What a imagination!!! Are you high? People who are high usually see these things....:p
[Hero CDMA Android Development] abcdfv:
I just had a rough day and work and needed a laugh.

But sadly, I am not high. I value my job more then I value a joint.
[Hero CDMA Android Development] Kcarpenter:
I thought it was funny!!! I am a pretty random person my self. Something funny to say right here escapes me.
[Hero CDMA Android Development] abcdfv:
I am feeling particulary witty today.

Had some guy mistake me for someone at a call center. Man he was pissed though.
[Hero CDMA Android Development] theoottesen:
Nah, i get that, the only reason I do that is for battery life, it keeps the cpu at 245 as soon as I turn the screen off.
[Hero CDMA Android Development] wtphoto:
anyone checked their awake time with 1.2? mines at 100% guess im gonna have to go back to 1.1
[Hero CDMA Android Development] abcdfv:
Fresh 1.1, Kernel MCK 1.2

32% awake time.
[Hero CDMA Android Development] wtphoto:
hmmmmm. maybe ill try reflashing.
[Hero CDMA Android Development] tyrnight:
I nothiced the same thing.. but someone told me that the 100% uptime was due to me having my phone plugged in to my computer.. and what do ya know.. as soon as I unplugged it, all was normal in uptime land...
[Hero CDMA Android Development] Kcarpenter:
100% for me, but it doesn't seem to be having a terribly adverse effect on battery life.
[Hero CDMA Android Development] abcdfv:
I couldn't tell you what I'm doing to get the sleep working. Just installed the kernel, and it did
[Hero CDMA Android Development] wtphoto:
ive bareley used my phone today. Madr a few calls got a couple texts and thats is and after 12 hours with almost no use battery was at 23%
[Hero CDMA Android Development] abcdfv:
My battery has been solid and I've been doing moderate use. Listening to Pandora now and then, playing Radiant

EDIT:

Alright, as far as speed goes i don't think it's the placebo effect. My phone is still blazing while running Wifi Tether, which has never happened before. I used to have to disable tethering to do anything with my phone.
[Hero CDMA Android Development] wtphoto:
ok so I booted to recovery wiped data and delvick, restored backup with stock kernel then reflashed kernel 1.2 and that seems to have fixed it 12 min up time 7 min awake so guess I must have missed a step last time I did it.
[Hero CDMA Android Development] gu1dry:
If I didn't already have so much in my my sig, these would be there. LMAO :D
[General Questions and Answers] dragonfire613:
I changed the security certificate prompt registry setting in WinMobile 6, to what another post said value of 1 = no prompt and value = 0 to be prompted as to if user wanted to allow program to run. Was having problems running a program and getting the certificate error message, thus I changed the registry value from default of 1 to 0 (hoping i would be prompted and could select yes trust the program and go from there)...

well I changed that & did a soft reset and now on bootup I get continuously get a prompt asking me if I want to run phcanOverbmp.dll and it appears this prompt is repeating continuously until it locks up my PPC. Selecting "no" or "Yes" does nothing noticable, and even pressing either as fast as I can on boot of course isn't helping... am I gonna have to wipe my PPC AGAIN!!
[HD2 General] IkeHillard:
I couldn't find it in the settings...

please advise thanks.
[HD2 General] Archer:
There is no auto rotate, except in a few applications, such as Opera, the Photos & Videos tab, the Music tab etc..

You can either install something like BsB Tweaks and then tell it which programs you want to be able to autorotate, or you can install rotation software that allows you to switch when you choose.

BsB Tweaks can be found by searching the Themes & Apps forum, and a toggler app can be found in my signature - PLToggle.

There's various other apps out there, but those 2 offer the different styles of rotation for the device.

Hope this helps :)
[HD2 General] Bimme:
try bsbtweak. you can easily add or remove programs to auto rotate or not...

or you'll have to manually add the program to whitelist in registry...
[HD2 General] paulking:
PL toggle is pretty good. :)
[HD2 General] Archer:
Heh - thanks ;)
[HD2 General] paulking:
You're welcome!

good job!
[HD2 General] Archer:
Thanks man. It's good to know it's being of use to some people. That is, after all, why I made it!
[HD2 General] BABA MAI WUDIRI:
hey, i tried both gyrator and BsB Tweaks on my AT&T Tilt2 and it works. but on HD2 not possible because it requires stylus hardware support inside the device.

i hope someone can try and verify on their HD2
[Hero, G2 Touch Android Development] mickb00:
Any one know if this is possible I would like to use Amon Ra's as it allows you to partition the sd card. I can't figure out how to do this without using Amon Ra's
[Hero, G2 Touch Android Development] gu1dry:
This is the Hero forums, we don't a Cyanogen recovery. I would recommend you consult the Dream or Sapphire boards. But to answer your question it should be as easy as:

adb push <the recovery you want to use>.img /sdcard
adb reboot

The phone will restart. After it finishes restarting you type the following commands:

adb shell
su
cd /sdcard/
flash_image recovery <the recovery you want to use>.img
reboot recovery

And you will be in the new recovery.
[Hero, G2 Touch Android Development] mickb00:
Also using modaco 3.1 (which is excellent) just cant figure out the aps2sd part

I am using the htc hero maybe I got mistaken but when I boot in recovery mode

I get a pic of a green android and the following options

android system recover

reboot system now

apply sdcar updare.zip

apply any zip from sd

wipe data factory reset

nandroid 2.2 backup

restore lates backup

repair ext file system

Build Cyanogen mod 1.4 +jf
[Hero, G2 Touch Android Development] gu1dry:
The Cyanogen recovery should not be able to run on a HTC Hero...
[Hero, G2 Touch Android Development] adwinp:
You can make it.

Just replace the kernel in the img and it should work just fine.