yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] erasmux:
You are right, was comparing them "manually", and thought you didn't have those diffs but you really do :D too much hours in front of the computer will do that....

The smartass diffs where from my version to yours, so yes I suggest increasing the up/down rate to 24000/49000. I mainly remember that I played with these values a lot, using various benchmarks, including one that I wrote myself and monitoring the actual frequency jumps it does. At the end stabilized on these values, so like I said if you don't why they are different, I would use my values.
[Hero, G2 Touch Android Development] riemervdzee:
Will use them right away :)
[Hero, G2 Touch Android Development] riemervdzee:
Must say, battery is quite good now :) Especially when sleeping it seems it doesn't suck much battery. Still amazed how it drops when listening music though (which also appears at the flykernel one, not sure whether it is worser or same though). Will look at the headset driver today, Sobe always complained how bad it was.

However probably the first version won't contain support for headphones via wire/headset. Anyone got a problem with that? :P (as in: does anyone use it at all

edit: a new build is compiling, for the users who are using LV but got battery probs.
[Hero, G2 Touch Android Development] swatsbiz:
I'll be giving it all whirl then :-)
[Hero, G2 Touch Android Development] riemervdzee:
A new version is out! Grab it when its hot :)

Download link is on the first page, including md5 hash

Changes in 0.4.4:

Changes to usb, should be more stable and usb tethering should be working now :)

Battery problem should be gone

Some smartass tweaks proposed by Eran

Camera experience may vary once again, as there were changes to the SMD code. Your previous settings may not work, while other settings may etc.

Note: on the camera, there is a random chance it won't work.

When it doesn't work for a single time, it won't work again until fully rebooted!

Try lowering the picture size to 3 megapixel to get it more stable.
[Hero, G2 Touch Android Development] keyra74:
yeyyyyy /me grabs
[Hero, G2 Touch Android Development] dpjohnston:
I'm trying to download new version and multiupload link doesn't work. Can you please check.
[Hero, G2 Touch Android Development] riemervdzee:
Hmm, seems to be a problem at multiupload. Try the third link, it should work.

I will see whether I can upload to another spot. Thanks for notifying :)
[Hero, G2 Touch Android Development] keyra74:
first try, phone took 5 min to let me use it, and now it's frozen on a sms screen
[Hero, G2 Touch Android Development] riemervdzee:
Please use call+menu+endcall to reboot it. Could you grab the file /proc/last_kmsg for me? put it on pastebin or something. Much appreciated.
[Hero, G2 Touch Android Development] keyra74:
it's stuck on this last line since 2 min now

gonna grab the file
[Hero, G2 Touch Android Development] riemervdzee:
This is the second time booting?
[Hero, G2 Touch Android Development] keyra74:
second booting yeah

http://www.mediafire.com/?s10igm8wujjn4s4
[Hero, G2 Touch Android Development] riemervdzee:
Hmm, and if you flash back a previous version it works again? It looks more like the ROM is corrupted somehow. Maybe try wiping dalvik, to get it rebuild up again.

edit: I also noticed this:

Seems you still got the old version of it. Your system is full? the copying of the module failed it seems. Try clearing it a little, and reflash the kernel.
[Hero, G2 Touch Android Development] rdejager:
Rapidshare on multiupload is not playing ball as of late. When you click it it says the file does not exist, with every file since rapishare is remapped (again) What you can do to get it, remove the multiupload part in the adress bar when you clicked rapishare and let it load. That works for me everytime.
[Hero, G2 Touch Android Development] riemervdzee:
Next version will include a line of code which clears the previous kernels modules before installing LV's ones. To prevent the overfull /system/ kyra for example is experiencing :)

Hopefully I get the new headset driver working tomorrow
[Hero, G2 Touch Android Development] swatsbiz:
First boot, and it's looking good.

Thanks for the work and well done, keep it up!
[Hero, G2 Touch Android Development] riemervdzee:
Thanks :) Please let me know later how the battery is holding out
[Hero, G2 Touch Android Development] keyra74:
four try and it's even worse now

black screen after pin

gonna go back to herokernel for now and i'll wipe all later today
[Hero, G2 Touch Android Development] riemervdzee:
Try to remove all modules from /system/lib/modules/ manually via adb, and then reflash. It should work.
[Hero, G2 Touch Android Development] mikarbach:
Hi!

OK, I installed it over ele-2.3 and see how it works.

I have a question, concerning battery, what is the preferred cpu-governour, smartass or ondemand? I really do not care about performance, which I think is for my personal usage good enough for both.

With fly-12a-kernel usually I use smartass.

Michael
[Hero, G2 Touch Android Development] riemervdzee:
Smartass on .35 should kind of give the same results as on flykernel.29. Not sure how you like the batterylive of your current kernel?

For better battery I guess you could better use on-demand, with having an screen-off profile somewhere ranging from 19mhz to 176mhz. You could get problems when listening to music though (it might begin to stutter).

Atm I prefer smartass. But I recharge every day (night)
[Hero, G2 Touch Android Development] mikarbach:
With fly.29 I have had the best battery live so far. Usually I can get two days of usage, with more or less 2G and wifi half the time on and one or two calls a day and 1-5 SMS a day and some apps occasionally running. Sometimes using GPS.

As some other users I also made the observation, that when screen is off the battery usage is extremely good, if screen is on it goes down sometimes really fast, despite the fact that I try to use lowest screen-brightness which is possible.

OK, I will make an comparison and let you know in case of a significant difference. What do you mean with screen-off profile? Is it included in the kernel? And it does override the CM-settings of lowest CPU-frequency?

Thanks,

Michael
[Hero, G2 Touch Android Development] riemervdzee:
Unfortunately I'm not familiar with the cpu frequency settings by CM. I always have used SetCPU, where one can set different "profiles" when the phone is in a specific state (screen is off, or when battery is below a specific level and things liek that).

Basically what you want is when the screen is on to have it at higher frequencies 400-600 or so while when the screen is off 19mhz to 170mhz (not exact numbers, can't recall them all sorry :P).

Smartass does something like this as well, but automatically for you. When using on-demand, you need to do it yourself with profiles for example.

You can get SetCPU on XDA for free btw :)
[Hero, G2 Touch Android Development] Wupper:
Mirrored 0.4.4 here
[Hero, G2 Touch Android Development] mikarbach:
Yes right!

Before it was possible to set CPU-Frequency and gov-settings in CM, I also have used setcpu and used profiles for screen on and off as well as hero connect to power. But since the CM-settings exist, I have disabled setcpu. My feeling was, that it not improves my battery-live, because running the app needs additional CPU-time. But this was only a feeling, never really compared this.
[Hero, G2 Touch Android Development] sjknight413:
My phone keeps freezing about 5 minutes after booting here, resulting in a battery pull. it seems to run really nice before this freeze though! running on erasmux's wildhero 0.99 gingerbread sense
[Hero, G2 Touch Android Development] riemervdzee:
Hmm, seems there is problem in the current headset driver which prevents the phone from sleeping to the lowest possible level :-/ Although battery level seems to be quite ok for now.

Time to get it replaced I guess.
[Hero, G2 Touch Android Development] riemervdzee:
Hmm I don't like this. Seems like the same problem kyra got. Could you please test out the previous version and see whether you get the same freeze?
[Hero, G2 Touch Android Development] sjknight413:
i have been using 0.4.3 as my daily kernel with no problems, definitely no freezing :)

edit: on the same rom too

edit2: also worth noting that on wildhero i can use the camera fully functional with the smartass governor at 176/710!
[Hero, G2 Touch Android Development] riemervdzee:
Nice about the cam :) Maybe it is indeed fixable at the ROM level, not sure anymore lately.

Could you also please test the following version of 0.4.4?

http://www.multiupload.com/BCISMFQ3AZ

It has some saver SMD code, which hopefully solves the freezing problem
[Hero, G2 Touch Android Development] sjknight413:
thanks for this! will download and give it a shot in a few minutes, am i bit busy this morning!
[Hero, G2 Touch Android Development] swatsbiz:
Sorry Reimer, responded too soon, it appears with both the original 0.4.4 and the new test version the ROM just completely freezes, often with the screen on :-(

Going to have to revert
[Hero, G2 Touch Android Development] riemervdzee:
Does it happen when you wake up the screen? I think I know what the little bugger might be

edit: ok I am able to reproduce it when using higher frequencies. Will check it out. Sorry for the inconvience
[Hero, G2 Touch Android Development] keyra74:
you're gonna be *****slaped :D

F5 ing this thread until you give me a solution
[Hero, G2 Touch Android Development] sjknight413:
yep, still freezes.

oh, im using the frequencies 176/710 by the way. my hero has always been stable at 729 though so i dont think its a problem with my phone being unstable at that high a frequency.
[Hero, G2 Touch Android Development] riemervdzee:
A new version is out!

Made a grief mistake when cleaning up some freq code. According to the manuals vdd_3 till vdd_6 are the same, but it seems our Hero's don't agree with it :-/ This caused the freezes at the previous version.

See download link in opening post

Changes of last Version 0.4.5:

Fixed "freeze" problem when using higher frequencies (sorry :()

Fixes -for now- a gpio problem with h2w which didn't let the system sleep
[Hero, G2 Touch Android Development] keyra74:
confirmed working :)

good job
[Hero, G2 Touch Android Development] swatsbiz:
Flashing Now!

Thanks Reimer

Edit: Working great, flashed and battery life seems better already ... will report once I've done some proper usage with it
[Hero, G2 Touch Android Development] Krishna.duvvuri:
Update seems to have fixed more that just the freezing problem, the camera works well with the wild hero rom! took a couple pictures and they all seem to be of the same quality at my older photos. This kernel seems to be very compatible with WildHero
[Hero, G2 Touch Android Development] sniperde:
hey guys,

the battery drain seems to be solved definitively :)

Using On-Demand governor (is a bit less battery consuming when screen is on compared to smartass, 19-576) and my hero is fast, responsive and has a great battery life!

For some apps as Copilot it is blazing fast now.

Thank you very much for your hard work, it is unbelievable what u guys have done so far. HTC should learn a lesson from you....
[Hero, G2 Touch Android Development] swatsbiz:
Yes, I can confirm, the battery drain issue is fixed, over night it only lost 10%.

The drain with screen on is comparative to flykernel now.

Thanks Reimer!
[Hero, G2 Touch Android Development] sniperde:
Just one question:

is the hero meant to go to deep sleep if plugged in ?

Cause it does not go to sleep if you connect it to the charger.
[Hero, G2 Touch Android Development] erasmux:
Its the same with HTC official kernel (and of course with fly kernel which is based on it), so I would say yes it shouldn't goto sleep when charging....
[Hero, G2 Touch Android Development] elelinux:
I'm working to find a solution to usbtethering, but has no solution yet ready, go on working until a solution appears.

BTW Riemer great work with v 0.4.5 :D
[Hero, G2 Touch Android Development] riemervdzee:
Thanks all :) I'm quite fond of the latest build. Battery could be better though, gonna dive into it a little today when I'm sobered up a little ;)

Hmm it isn't working yet? the function is only at your gb rom I guess? (I am currently on your Froyo's)
[Hero, G2 Touch Android Development] swatsbiz:
More battery life would be awesome :-D
[Hero, G2 Touch Android Development] elelinux:
Well it's probably just GB problems, has probably some time tonight in the hockey game run back and forth between TV and the computer.

Sweden and Finland in the finals tonight, who should I cheer for, Finnish background and live in Sweden it's tough :D
[Hero, G2 Touch Android Development] J.K Nilsson:
I am glad that this exercise has ended. Another night at Skandic in Rovaniemi could have been scary. :cool:

J.K Nilsson
[Hero, G2 Touch Android Development] Habarug:
Awesome work on the kernel, battery life improved :)
[Hero, G2 Touch Android Development] Krishna.duvvuri:
0.4.5 kernel worked well yesterday but when I woke up today the phone was frozen and even a reboot didnt fix it. Had to go back to fly kernel for now
[Hero, G2 Touch Android Development] riemervdzee:
You sure you didn't accidentally installed 0.4.4? both were released on the same day, while 0.4.4 indeed had freezes.
[Hero, G2 Touch Android Development] Krishna.duvvuri:
The file I installed says 0.4.5 and I'm sure i didn't download 0.4.4 since you already closed the download link by the time I saw it
[Hero, G2 Touch Android Development] riemervdzee:
Hmm, how unfortunate :-/ But without any additional information I can't really fix it either I'm afraid.

I'll add some instructions at the opening post to get debug info.

Basically it is like this, holding call+menu+endcall to get it rebooted (when it hangs) and get me the /proc/last_kmsg file. I hope it isn't too much of a trouble to get this for me?
[Hero, G2 Touch Android Development] Krishna.duvvuri:
No trouble at all. I'll go back to LV and do it IF I get any freezes maybe it was just installed wrong?
[Hero, G2 Touch Android Development] perdita2000:
Good work! !!!

As you mentioned, Kernel starts to work nice in 10 minutes... but it runs very very fine... Do you think that we could get a working camera with this cool kernel?

Perdita2000
[Hero, G2 Touch Android Development] swatsbiz:
Used the camera with this kernel tonight no problem
[Hero, G2 Touch Android Development] Krishna.duvvuri:
same here :D
[Hero, G2 Touch Android Development] nu_skool:
New version definitely has improved battery life. Also, as others have reported, the camera appears to be working fine. Thanks Riemervdzee.

My only negative comment so far is I've noticed when I unlock the phone it takes longer than normal to respond to screen touches. I end up swiping several times before it works.
[Hero, G2 Touch Android Development] riemervdzee:
I think I got used by it now, but I can remember it aye. Will take a look at it :)

Camera is still a bit unstable here though :-/ Which ROM are you using?
[Hero, G2 Touch Android Development] nu_skool:
Using Elelinux latest 2.3.
[Hero, G2 Touch Android Development] Wupper:
It seems I´ve missed the 0.4.5 version :eek:.

mirrored
[Hero, G2 Touch Android Development] sjknight413:
oh riemer, i forgot to say, every time i reboot the phone i get system and phone force closes after unlocking the screen. doesnt affect anything but i thought it was worth a mention because its quite annoying :) i installed over wildhero 1.0 with a dalvik and cache wipe.

running amazingly other than that though! very fast and camera is working perfect still at 176/710 smartass!
[Hero, G2 Touch Android Development] r34c7:
Yeah, i know that the kernel has some battery life problems, however i'd be glad to know why on two different ROMs i got battery life just about...24 hours. Previously, i thought it was the ROM that's responsible for that, but after using another ROM, with which i have had battery life of 3 to 4 days, i got about the same battery life with this kernel...for example, yesterday about 00:00 my battery was at something like 12-15% and i plugged it on the charger, charged it for about 8 hours (100% battery charged) and i plugged it off. Now it's 10:22 am and my battery is at 78% (still haven't used the phone really about anything). The weirdest thing, though, with both of the ROMs is that in the battery screen, at about phone in settings, there is uptime for example of 14 hours and awake time of...yeah 12 hours and a half..! (these are the figures before i start charging it, used USB Disk Drive for about 5 minutes) :eek::eek::eek:

Can this issue be fixed? I really like this kernel, and i already sacrificed the 5M camera, so that's my only problem with it now. Thanks for reading my long reply.

PS: If it helps, both ROMs are with HTC Sense - WildHero 1.0 and now back to VR 13, using stock frequencies
[Hero, G2 Touch Android Development] HannoSLM:
strange, i tried the kernel with the same rom you are refering to and to tell you that camera was not working for me and the speed is much less compared to the flykernel. I also wiped dalvik cache and cache!? what could be the reason?
[Hero, G2 Touch Android Development] riemervdzee:
You mean both kernels? I noticed a battery problem when the phone hasn't got a connection with the provider. Maybe it is the same problem?

At first it might be a bit slow, but after 10 min it is quite fast actually (for me atleast). Maybe you've set the wrong frequencies/governor? Or what exactly is slow for you? Don't read the linpack scores though, or other benchmarks... they give the wrong impression.
[Hero, G2 Touch Android Development] HannoSLM:
Hi,

i have tried most of the governors and with all the freq are 518/652. Slow, i mean that scrolling is not smooth, the response time is too much and for example when opening a contact/email/sms is lagging ... compared

honestly i do not test with the test programs ... quite often the scores are irrelavant.

which governor and freq would you recommed?
[Hero, G2 Touch Android Development] riemervdzee:
The freq/governors would be ok. Maybe you are one of the minority which have a specific screen type. I can recall I had some vsync problems with it. Could you please test out the following build?

http://www.multiupload.com/53DWCCYXYE

Otherwise you might want to kill some apps, it seems something is eating up cpu. LV is a bit fairer in distributing cpu-power than fly I believe (although this not always wanted ofc.)

For anyone which has battery problems, please test the build above as well! many thanks in advance :)
[Hero, G2 Touch Android Development] r34c7:
No, this happens only with your kernel and it happens when i have full signal strength (i always do), so i assume it is not connected in any way to the connection with my provider. It looks like the kernel can't switch between the wake-up frequencies and the sleep frequencies. At least, i explain it in this way. Can you please try to figure out what's it up with it, i love using it but it really drains my battery. There is no difference in screen on / off battery usage. :D

Edit: will test the 17-05-2011 build tonight and will tell you tomorrow morning does it fix something ;)
[Hero, G2 Touch Android Development] shantur:
Hi riemer,

Finally, i made more than 10 posts to be able to post in this thread.

This new update works really well... I was using the LV 4.5 since 24 hours with WildHero. It looked like someone is eating CPU all the time...

But as i flashed the new kernel my hero got a new life :)

This new update works well... feels much faster now

Thanks for the hard work...
[Hero, G2 Touch Android Development] J.K Nilsson:
Jupp, this one was amazingly good.

J.K Nilsson
[Hero, G2 Touch Android Development] MentalDeath:
riemer do you think Feeyo would take a look at this now since it is much better off now, or has he washed his hands of .35+ kernels unless he gets legit sources (which will never ever happen)?
[Hero, G2 Touch Android Development] Krishna.duvvuri:
this kernel is soo fast!! unbelievable! idk about its stability or battery life yet (only just installed it) but sooo fast!

Edit: its very unstable every time the screen shuts off, the phone reboots
[Hero, G2 Touch Android Development] keyra74:
3 reboot later i'm back on 0.4.5 :)
[Hero, G2 Touch Android Development] r34c7:
riemer, the battery life sucks again. All night everything was ok (that's about 12-14 hours of uptime), only 2% of the battery was drained. Then this morning i had three conversations about 10 minutes each and the device wouldn't go to sleep again. Rebooted and now everything is back to normal.

Will try to investigate further, is this caused by the phone calls or the Wi-Fi. This morning i used Wi-Fi for 2-3 minutes or so and after that i noticed the battery drain (of course, i turned wi-fi off after i used it).

And now i should mention another bug, noticed it in 0.4.4 and 0.4.5 (haven't got experience with the older builds). Sometimes when the phone is locked, and it's in "sleep" when i turn the screen back on, it just wouldn't...and this happens randomly. I don't think that this bug appears if i wake up the phone with any other button except the power button/reject call button. And there are two cases here: in the more common one, only the backlight of the display turns on, in the rarer case the display displays a distorted image. Everything is back to normal when i "sleep" and then wake up the phone again.
[Hero, G2 Touch Android Development] HannoSLM:
many thanks for the feedback. I will try it later tonight and will inform you.
[Hero, G2 Touch Android Development] shantur:
Not sure about battery as my phone remains connected on USB for development, but i have not had any reboots for last 14hrs when i switched to the updated kernel.

Did you clean cache and dalvik cache. I would recommend another try. Its really superb
[Hero, G2 Touch Android Development] riemervdzee:
Thanks all for the reports :)

I think I found the suspend-problem in the bluetooth driver, now I only need to fix it properly without breaking it. I also will require some testers for it though (probably next build).

I haven't experienced the reboots, could anyone post a /proc/last_kmsg (it dumps the dmesg to this file before rebooting).

Then I can see what's the problem and why it rebooted. Thanks in advance! :)

The Linux kernel and this fork for the Hero is perfectly open source? You can find it on: https://github.com/riemervdzee/cm-kernel

which is also mentioned at the opening post.

I would love to see other devs working on the kernel though :) It is quite a big monster, which requires a lot of time to tame it ;)

edit:

Kind of fixed bluetooth, now the headset via-wire is playing magic tricks on me :P

edit 2:

For anyone who gets the great idea of "but I haven't used bluetooth or headset": You don't have to use them, they might get annoying when going to suspend/sleep
[Hero, G2 Touch Android Development] elelinux:
I have started to spend time on your kernel source,but unfortunately did not find any better solution yet, has already managed about 100 compilations, works with the camera and usbtether as soon as I get a breakthrough and you will be the first to hear the news.

Esa
[Hero, G2 Touch Android Development] keyra74:
second try (my reboots were due to latest nightly and gapps)

nothing weird for now
[Hero, G2 Touch Android Development] riemervdzee:
Pfew, glad the reboots ain't a fail on my side :P

Here is a new build I'm currently testing: http://www.multiupload.com/KFR2FU8WUN

It could be that the powermanagement issues are less of an annoyance on this one :) It still complains that "a" device fails at suspending sometimes, but it doesn't keep the whole system awake any more.
[Hero, G2 Touch Android Development] shantur:
Downloaded

Will try on way
[Hero, G2 Touch Android Development] swatsbiz:
That's good to know as I had to reflash Herokernel just to get to the end of the day!
[Hero, G2 Touch Android Development] keyra74:
installed, i'll tell you tomorrow since i'll be in "bunker" school : one time signal, 2 second later nothing and back...

how to ruin your battery :)