yashsingh1/xdaforums huggingface dataset:
[Hero, G2 Touch Android Development] riemervdzee:
An official 0.4.0 has been posted! See opening post.

Changes of last Version 0.4.0:

Switched kernel bases. We are now based on perfshoot's 2635 kernel. This increases the linux version to 2.6.35.11 (former was xx.10), bringing some nice speed improvements and other many goodies I don't know. However it might be a bit unstable for now (haven't had any reboots though!).

Some camera fixes :) It works quite well now! Need a hell lots of testers, hehe

Taken the backlight driver from the hero CMDA version, might increase batterylive I haven't tested it yet

Some changes to proc_com, should improve speed.

I need lots of testers for the camera. Please report how many times you were able to take pictures and which cpu freqs you use + cpu governor.
[Hero, G2 Touch Android Development] bonesy:
Ok wiped dalvik, booting now! Ill have to try figure out how to make the libcamera.so...Im desperate for froyo sense! The wife to be doesn't like the idea of me dipping into the wedding funds for a new phone.Great work by the way Riemer, i thought this thread was going to just stop :D
[Hero, G2 Touch Android Development] Wupper:
Mirrored :D. here
[Hero, G2 Touch Android Development] B1nny:
This may be a stupid question.. but why?

I mean.. like the .29 kernel is working.. fine right? I really don't want to disapprove this work you put in it! No way, it's really awesome! But what extra will it offer us in the opposite of the .35 kernel?

Again, really no flame meant in this reply!

I just want to know, what this kernel will fix/upgrade for us, like speed, battery life, range(you know.. with your carrier, the bars on top >.<)

And keep it up!
[Hero, G2 Touch Android Development] keyra74:
omg just when i needed camera

flashing and testing right now

camera fails everytime :
[Hero, G2 Touch Android Development] elelinux:
Well done Reimer, hold on and test drive v 0.4.0 really nice, looks like I may lower my frequency a bit, the camera works without any major worries :D

Eagerly look to the future with this kernel,now that it is so little left
[Hero, G2 Touch Android Development] f_padia:
has the 'userspace' governor been configured in any particular way? or is that left to the user?
[Hero, G2 Touch Android Development] gavtaylor:
just flashed it, will let you know how it goes...
[Hero, G2 Touch Android Development] riemervdzee:
Please post cpufreqs and the cpu governor you are using. It seems it works all the time at 633mhz on-demand (default values). However going a bit higher is failing aye, will look at it tomorrow.

Also, if the camera fails one time it will leave the cam in a "broken" state, it can't recover from it! Reboot, set the correct cpu freqs/gov and try again :)
[Hero, G2 Touch Android Development] bonesy:
Using with villainrom 13 and camera has taken over 20 shots, all fine! It wont go to mobile network roaming though?thats why im losing signal i think
[Hero, G2 Touch Android Development] riemervdzee:
Gracias :) Will add it to OP

Unfortunately the radio is responsible for the range, which could be a tad better aye. The real reason why I started this: I got too much time, and I wanted to know more about hardware. Why is this all interesting to you:

- Probably better support with newer android versions. from .32 releases the kernel should support WiFi tethering (haven't tested it though). Also I noticed debugging Gingerbread is a bit better supported at my .35 kernel than on .29 FlyKernel.

- Kernel is about speed and battery-live aye (although, many things influence battery-live). It seems the current version is a tad faster at displaying things (called, the blitter) while it is a bit slower at raw floating point math (linpack scores are around 4.2) which I hope to tackle soon. IO operations are quite nice nowadays. Also for most parts there are newer drivers, for sound etc. there is less latency. Basically it offers more functionality!

Hope to answered it a bit? I should write a longer text at the opening topic :)

After it fails one time, it won't recover and leave the sensor in a broken state. Reboot to have another try! It seems it is very crunky about cpufreqs/governors though. It is very very stable at 633mhz on-demand (default), going a bit higher and it is failing right away. Will look at it tomorrow

Yup, it is quite kicking ass lately. Thanks to S0be and decandance though :) they kept me motivated the last weeks.

Haven't touched it at all. Why do you ask? userspace gov. is about: giving an userspace application/process the right to change the cpufreq. All other governors work with min-max values and they control which frequency to pick in the end.
[Hero, G2 Touch Android Development] f_padia:
no particular reason just noticed it in setcpu so I thought id find out if it had been configured for anything. I'm trying the kernel with elelinux's 2.1. seems to be ok so far. it doesnt feel quite as smooth as flykernel with this rom but ill keep it running for a while and see if problems arise.

thanks for you effort and keep up the good work :D

edit: getting fc's with whatsapp. will try re-installing to see if it fixes it.
[Hero, G2 Touch Android Development] CSL00:
Working good with cyanogenmod 7 rc4 (unofficial) interactive governor 352 min/614 max. Took 20+ pictures, recorded 3 movies and the camera only fc'd when used volume keys for zooming (could be reopened without reboot) . aside from a slight lag when scrolling and sometimes hang on hero screen it's should be my daily driver even managed to play nfs shift on the above settings (usually I have to use 518/691mhz on flykernel). Thanks and keep it up Riemer.

Edit: after a few reboot tests I get close to a minute with USB connected and 4 in 5 times boot stops on Hero screen.
[Hero, G2 Touch Android Development] keyra74:
ok, changed to 352/633 interactive and it works flawlessly

you're the man :)
[Hero, G2 Touch Android Development] riemervdzee:
Any chance you can pull me the /proc/last_kmsg? Did you also wiped cache/dalvik-cache? which ROM are you running?

Good to see it works out :)
[Hero, G2 Touch Android Development] Wupper:
I've flashed the latest kernel and had some power usage issues.

My phone was in flightmode from 01:00 am until 08:00 am and used 25% of my battery, I've used it with the latest Elelinux 7.0.0 RC4 v1.7.

Speedwise it was great, it certainly improved since the last time I used it :).
[Hero, G2 Touch Android Development] bonesy:
Orange - T-mobile

Anyone here in the uk and with orange or tmobile and using ora

nge - t-mobile? I cant get roaming to work on this which means no signal at home for me :( same with any rom using Las Venturas kernel (CM7, VR13, EL Froyo etc)
[Hero, G2 Touch Android Development] riemervdzee:
Maybe play a little with certain radios? Also can you pull me a "adb shell dmesg" after booting? (to see if any device registration fails)
[Hero, G2 Touch Android Development] riemervdzee:
Also noticed quite a battery-drain :-/

Did some powermanagement tricks the other day, will revert them and see how it goes.
[Hero, G2 Touch Android Development] bonesy:
Dmesg.txt...

View attachment 557801

Tried all available radios with no joy :(
[Hero, G2 Touch Android Development] B1nny:
Yes you did ^^ thanks! :D
[Hero, G2 Touch Android Development] bonesy:
My signal problem seems to be the radio turning off when it goes into sleep?

I/NetUtils( 223): ipd: send header fail!
D/TelephonyRegistry( 147): notifyDataConnection() state=0isDataConnectivityPoss
ible()false, reason=radioTurnedOff
D/TelephonyRegistry( 147): broadcastDataConnectionStateChanged() state=DISCONN
ECTEDtypes=default,dun,supl, interfaceName=null
D/dalvikvm( 223): GC_FOR_MALLOC freed 7828 objects / 472352 bytes in 288ms
D/TelephonyRegistry( 147): notifyDataConnection() state=0isDataConnectivityPoss
ible()false, [COLOR="Red"]reason=radioTurnedOff[/COLOR]
D/TelephonyRegistry( 147): broadcastDataConnectionStateChanged() state=DISCONN
ECTEDtypes=null, interfaceName=null
D/TelephonyRegistry( 147): notifyDataConnection() state=0isDataConnectivityPoss
ible()false, reason=radioTurnedOff
D/TelephonyRegistry( 147): broadcastDataConnectionStateChanged() state=DISCONN
ECTEDtypes=null, interfaceName=null
D/LocationManagerService( 147): CdmaCellLocation Unavailable
D/SIMStateChangeReceiver( 318): SIM state: NOT_READY

I know teh log is from a sense rom but it does the same on CM7
[Hero, G2 Touch Android Development] keyra74:
indeed, i was already at 41% when after 5 hours without doing anything but some sms
[Hero, G2 Touch Android Development] CSL00:
Yes wiped cache and Dalvik-cache before flash, Rom is CyanogenMod 7 RC4 by SteelBytes.

View attachment 557981
[Hero, G2 Touch Android Development] gavtaylor:
I've had my governor set to ondemand (352 - 710) since I flashed 4.0 last night, have taken loads of random photos last night and all day today and its been perfectly fine. No FC's, crashes, reasons to reboot, anything.

Im running it ontop of @Steelbytes CM7 build, and its pretty snappy, not had any wakeup issues, slow down and that annoying memory issue is yet to surface.

Im on Orange, my signal has been pretty strong the last couple of weeks so I've not dropped over to t-mobile for a while but will keep an eye out.
[Hero, G2 Touch Android Development] sjknight413:
kinetic scrolling is still buggered here. any news on that bug riemer?
[Hero, G2 Touch Android Development] thantos2024:
Have to say, kinetic scrolling is working fine for me on ele's 1.7

Great work on the kernel btw, now using as my daily
[Hero, G2 Touch Android Development] gavtaylor:
it didnt last as long as I was hoping yesterday either, seems to be when the radio/wifi is in use, might be worth dropping back a version. I know a few people who say the latest radio drains the battery quite a bit sometimes. has always been ok for me tho

all in all, Im really impressed with this build, its fast/stable enough to use as a daily kernel so I'll be keeping it on.
[Hero, G2 Touch Android Development] riemervdzee:
A new version is out! See the opening post for download

I've tried to get the camera a bit more stable before releasing this, however I failed :-/ Maybe in the next releases.

The changes to this version brings however are nice enough to upgrade.

Changes of last Version 0.4.1:

Some changes to SMD, hope this solves some problems related with radios etc. (kough bonesy kough)

Reverted some powermanagement tricks I tried...

Going back to CFS instead of BFS. Should improve "kinetic scrolling" experience, however degrades overal UI smoothness "feel". However will be tweaked to match BFS somewhat on this point. In overal it feels more robust :)

Small updates on bma150 and microp, to increase overall speed (they were blocking cpu on unnecessary spots)

Enjoy!
[Hero, G2 Touch Android Development] keyra74:
testing right now
[Hero, G2 Touch Android Development] bonesy:
YEA BOI! You are the man! All working now :) Have a beer!
[Hero, G2 Touch Android Development] Wupper:
Mirrored: here. And now going back for some sunshine :D.
[Hero, G2 Touch Android Development] e2zippo:
Looking really good, i might just try this now!

You're doing an amazing job, keep it up!
[Hero, G2 Touch Android Development] f_padia:
I dont know if it applies to this kernel but I remember on some older kernels changing a few debugging options that improved the UI smoothness of non-BFS kernels. I read that the changes made the kernel behave more like a BFS kernel without actually being one. anyway the changes were to 'de-activate' NORMALIZED_SLEEPERS and NEW_FAIR_SLEEPERS (http://xdaforums.com/showthread.php?t=785988). they other tweaks I posted in that thread changed some of the CPU cycle times and stuff.

Again no idea if this applies or if you already know about these things but I remember feeling a big difference after applying these tweaks to the kernel, maybe they will help here too.
[Hero, G2 Touch Android Development] elelinux:
Really people, try this kernel is awesome, good work Reimer :D
[Hero, G2 Touch Android Development] huuuuuh:
just tried, works awesome. really fast, sometimes better than .29 kernel. everything, including the cam, seems to work. except wlan-tethering and VPN. VPN is something i really would like to have so then will it work?
[Hero, G2 Touch Android Development] Imperticus:
Flashed this on Ele 7 v1.7.1

Camera just freezes after trying to take a pic, photo is not saved in Gallery. Any help?
[Hero, G2 Touch Android Development] B1nny:
Lol you have some kind of RSS on his posts? XD

You mirror that DAMN fast! Great work!

I think I might give this a go anytime soon :)

Maybe tomorrow/tonight, planning to test a gingerbread rom with this :)

Keep the work up! (Y)
[Hero, G2 Touch Android Development] riemervdzee:
Thanks, I'm glad it worked :) I will make sure I get some beer tonight ;) Cheers

Thanks, and yea sun was nice. Too bad I had to work inside :-/

Thanks for the heads up. Complete Fair Sched. had some improvements between the .29 and .35 release, but I'll see whether we are able to tweak it even more for our Heros :)

Thanks :) (ps. it is Riemer hehe ;) pronounced as: Reamer in English)

I'll check it out. VPN might be a simple config problem, but what do you mean with wlan-tethering? via mobile-network tethering to usb, or via wifi? (the latter is a bit of a pain to get it working I'm afraid). Do you get any message whether something is missing or something?

This is due the timing-problems I have with the camera. It is really picky about the cpu-frequencies you use. Try to put setCPU off (checkbox set-on-boot should be off), reboot so it goes to the default cpu freqs and then it should work. When it doesn't work for a single time, it won't work again until a reboot is done btw. You might want to play with frequencies who work or who don't.

I hope to have it more stable in the future, but it is quite an **** sorry for my French
[Hero, G2 Touch Android Development] Imperticus:
It worked, defaults settings are working just fine. I'll play around with different cpu frequencies. Thank you :)
[Hero, G2 Touch Android Development] riemervdzee:
Glad it works. My appologize for the inconvience
[Hero, G2 Touch Android Development] arty:
so..whats the main difference between that kernel and the flykernel? i know its a 2.6.35 kernel...but whats the big advantage of this?

what other stuff?
[Hero, G2 Touch Android Development] dpjohnston:
I have been using this for 3 hrs 20 mins with Ele 1.7.1 with default frequency setting.

I went out with full battery and came back with 87% having listened to music for 1.5 hrs so no different to what I am used to. Music quality was definitely better than I am used to so very happy about this.

I took a couple of pictures with no problems although camera was slightly slower taking photo than I am used to (but I know you are working on this).

General performance of phone was certainly at least as good as normal with older kernel.

Overall I have to say I am very impressed and am happy to stick with this kernel for everyday use.:)
[Hero, G2 Touch Android Development] huuuuuh:
sorry, mean the wifi-thethering (wifi-hotspot, in android 2.3 (cronos ginger)) .

It just says "Error" after some seconds
[Hero, G2 Touch Android Development] r34c7:
I am following the thread for the last 6 months or so and i finally decided to flash this kernel. And i found out that my T-Mobile G2 Touch won't even boot with it. It doesn't even display the ROM animation while booting, it just goes back to the G2 Touch logo.

Any ideas how to get it working?
[Hero, G2 Touch Android Development] riemervdzee:
I've posted some here: see second quote/reply

http://xdaforums.com/showpost.php?p=12560308&postcount=524

I will update the Opening Post one day, when I feel like writing a bit ;)

For at the moment it works on some parts better (2d/3d rendering is quite fast) while raw floating-pointh math is a tad slower.

Besides speed, newer drivers often offer more functionality. WiFi tethering should be working (although it doesn't), and not to mention that the .29 kernel is quite old(2 and a half years?) The official linux kernel is already at 2.6.38.

Not to forget that GB was build for using the .35 kernel.

Good to hear :) Yes the kernel is getting quite stable lately. You can't imagine how happy I am (it was very slow in the first releases). Only camera to tackle

That is indeed not working :-/ I will check it out soon

Have you wiped cache and dalvik-cache?
[Hero, G2 Touch Android Development] r34c7:
Yes, i wiped cache and dalvik-cache. What's even stranger - i booted 0.3.1 normally, and 0.4.1 wont boot at all. :D Using VillainRom 12 if it's of any matter.
[Hero, G2 Touch Android Development] bluepinkpanther:
Camera is working always for me now :) 264-691MHz with interactive govemor.

REALLY great job.
[Hero, G2 Touch Android Development] sjknight413:
Really cannot believe we have fully working gingerbread and a 2.6.35.xx kernel on the hero, so amazing. great job riemer, looking forward to updates!
[Hero, G2 Touch Android Development] bluepinkpanther:
Sh*t... I can't take any picture now... Standard freqs, few reboots and nothing ;/
[Hero, G2 Touch Android Development] swatsbiz:
Oops spoke too soon!
[Hero, G2 Touch Android Development] Ciprilik:
I've flashed 0.4.1 about 3 hours ago and my camera worked once on 176/614 Ondemand and I had just 1 wake up issue so far... I've reverted to standard frequency for now.... the kernel is taking shape :D keep it up :D

Just 1 question: what kind of governor is userspace?
[Hero, G2 Touch Android Development] Wupper:
Haha, no, i'm just checking this thread multiple times a day and Riemer is always changing the title when a new version is up :). And my mirror should be fast as it's my server with a dedicated 100mbit line :D. /offtopic
[Hero, G2 Touch Android Development] Ciprilik:
Last night I turned my phone off, took the battery out , placed it back in, plugged in my charger, this morning I unplugged the charger, booted straight into Recovery and wiped battery status, reboot and left my phone on Idle ... after 2h 26m 33s my battery is at 79% with 2h 22m 46s on Idle with 2g, network data off, wi-fi off, gps off, everything off :D... anyone else has this battery drain?
[Hero, G2 Touch Android Development] Imperticus:
Can't say I have. Mine has been 11h on battery, and still have 90% remaining. Most of it was through the night so had hardly used it.
[Hero, G2 Touch Android Development] Ciprilik:
I wonder why I have this huge battery drain :( I did wiped cache and dalvik-cache before I flashed the kernel last night
[Hero, G2 Touch Android Development] r34c7:
I experienced some serious battery drain too. Yesterday evening for 1 hour listening to music i lost around 20-25% of battery.

@riemervdzee, i think i understood why the 0.4.1 kernel won't flash :D I think it's because i used some sh-t to make flykernel boot at 691mhz + better zip align. However, i'm not sure is this the reason.
[Hero, G2 Touch Android Development] f_padia:
hmmm interesting. There doesnt seem to be a /sys/kernel/debug folder in this kernel. This is where the schedules features are that I mentioned previously. Only your kernel and feeyos dont seem to have this folder. how come? Do you have some special version of the kernel? The sched features are available in all the other kernels I have tried. even on my ubuntu system which is also running 2.6.35 kernel.
[Hero, G2 Touch Android Development] riemervdzee:
Probably as I configured the kernel without any debugging. I can put the sced-debugging on if you want?
[Hero, G2 Touch Android Development] f_padia:
if its not difficult then i wouldnt mind taking a look to see if any of the settings affect performance in any way.
[Hero, G2 Touch Android Development] bluepinkpanther:
What freqs are you using to take photos??
[Hero, G2 Touch Android Development] riemervdzee:
576-246 on-demand work for me here. Have been trying to get the cam rolling better whole day but no ball :(
[Hero, G2 Touch Android Development] bluepinkpanther:
Not working for me ;/
[Hero, G2 Touch Android Development] Krizp0:
Try default cpufreqs by disabling any set on boot-options (SetCPU/CM settings etc), then reboot.
[Hero, G2 Touch Android Development] bluepinkpanther:
Unfortinatly... Not working.
[Hero, G2 Touch Android Development] ChosSimbaOne:
Is there a point in flashing this if i'm running vr 13?
[Hero, G2 Touch Android Development] bonesy:
I used it on VR13 its smooth but the included kernel works just as well so unless you want to help the kernel dev then no
[Hero, G2 Touch Android Development] :
Look at the first post there are the sources.
[Hero, G2 Touch Android Development] blackplatypus:
No offense but there are not many people around which have the ability to read/understand and write kernel code... especially if you even cant find the kernel sources...
[Hero, G2 Touch Android Development] Waerloche:
None taken. i am not working on it personally - will be referring it to my business partner who is a programmer with experience relating to these kernels
[Hero, G2 Touch Android Development] Waerloche:
Ok - so far when I try to load the custom img the device cant get past the HTC loading screen. I haven't had any issues with the device 'bricking' as I took precautions for that. Please update when you have a chance. thanks.
[Hero, G2 Touch Android Development] erasmux:
Get source from github, build the kernel with hero_defconfig, add an appropriate ramdisk for the ROM you are using, and it should load (with the touchscreen not working so kinda hard to unlock...).

If it does not, even better, then you can help by finding why it does not work for you and fixing it :D
[Hero, G2 Touch Android Development] blackplatypus:
was playing a bit with the kernel..does someone else too experience kernel freezes after the GUI is loaded? (with the latest repo) probably related with the broken touchscreen driver?.
[Hero, G2 Touch Android Development] MrNameless:
Guys, i got this error while compiling: - Ho questo errore quando compilo:

http://pastebin.com/Ecc6nQhP

Any ideas?
[Hero, G2 Touch Android Development] erasmux:
Weird it works fine for me. Are you using the hero_defconfig? If not try using it.

Can you compile the android build? If you haven't already I would try to setup my environment according to the instructions here: http://source.android.com/source/download.html

Don't have any other ideas.
[Hero, G2 Touch Android Development] MrNameless:
Ok, good i did it!
[Hero, G2 Touch Android Development] blueflash:
Nice to see you here MrNameless :) good luck
[Hero, G2 Touch Android Development] MrNameless:
Guys, try this in GSM Hero. It is this kernel with psfreedom enabled:

http://www.megaupload.com/?d=MULVZTSB
[Hero, G2 Touch Android Development] Pontifice:
I'm going to try it.

What i am going to do:

1.- Flash zImage with adb

2.- Put module on sdcard

3.- insmod psfreedom.ko

correct?
[Hero, G2 Touch Android Development] HWMNBN:
I tried just now. Kernel:

Linux localhost 2.6.34.2 #1 PREEMPT Thu Sep 9 20:11:54 CEST 2010 armv6l GNU/Linux

booted up on my hero. But Touchscreen is dead.

# insmod psfreedom.ko
insmod: init_module 'psfreedom.ko' failed (Device or resource busy)
[Hero, G2 Touch Android Development] MrNameless:
so it is booted up? when you plug usb in it says you a message or it doesnt do nothing?
[Hero, G2 Touch Android Development] MrNameless:
- su

- cd /sdcard

- insmod psfreedom.ko
[Hero, G2 Touch Android Development] Pontifice:
But if the touchscreen doesn't work and neither adb we can't use console to "insmod psfreedom"
[Hero, G2 Touch Android Development] MrNameless:
you use adb shell
[Hero, G2 Touch Android Development] hobbitjack:
Sounds great, ill give it a go. Can always use the wireless adb method :).
[Hero, G2 Touch Android Development] Pontifice:
But adb shell does not work
[Hero, G2 Touch Android Development] erasmux:
adb over usb should work. It works for me from the current elemag github sources.
[Hero, G2 Touch Android Development] ChosSimbaOne:
Ok, thanks for the reply
[Hero, G2 Touch Android Development] Diechel:
Thanks for the kernel, trying it right now with ele 1.7.1 + data2ext