yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] rafiqzadah:
So only camera changes for older sense? No performance improvements or tweakies? XD
[HD2 Android NAND Development] iamcxa:
thanks for new kernel:D
[HD2 Android NAND Development] essi_baba:
trying it

thanks for hard working ,your is great dev

senior marc please remove this error in debuging

ERROR/dalvikvm(XXX): Cannot get policy, waiter thread id=XXX

ERROR/dalvikvm(XXX): Failed to find cpu subsys
[HD2 Android NAND Development] iamcxa:
hi i remember marc said about this, it's caused by cpu groups and bfs didn't have this function. so just skip it.
[HD2 Android NAND Development] marc1706:
Hard to remove that error since I'm pretty sure nobody wants CFS (that's actually about 20% slower) and I can't edit Android's files with my kernel. ;)
[HD2 Android NAND Development] essi_baba:
thanks for answer great job man :)
[HD2 Android NAND Development] alihakli:
marc1706_desire_0_2_1 sense 3.5 rom 800x480 not camcorder.

please new kernel!
[HD2 Android NAND Development] feloccio:
Camcorder isn't working with Sense 2.1. Neither HTC Camcorder nor LG Camcorder.
[HD2 Android NAND Development] ph03n!x:
@marc1706, Dj Danik had posted in his Sense 1.0 thread that he did not have any luck with Camcorder @ 800x480 with kernel v0.2.0a - this is the build that works find at 800x480 with 0.1.3.

I had camcorder FCing on me on my as-close-to-stock-GB-Desire build, but this might be because I am not doing something right. I will try 0.1.3 in this build, as well as install Dj Danik's build and try 0.2.1 later...
[HD2 Android NAND Development] marc1706:
Is it still laggy or not working at all after updating from 0.2.0 to 0.2.1?

I saw that. I'm currently on his 2.3.3 Sense 1.0 build and camcorder works without issues @800x480 with 0.2.1. Version 0.2.0a didn't work, that is correct.
[HD2 Android NAND Development] patensas:
Still laggy, and yes sense 1.0 is working flawless
[HD2 Android NAND Development] Lavell7298:
Question About I/O Schedulers

Hey Marc,

Is there a way for the user to change the I/O scheduler in your kernel? I know that deadline is the default. But I'm curious to try other I/O schedulers. Thanks and keep up the excellent work!:)
[HD2 Android NAND Development] pirlano:
little donation for you :) 1XT617824M3247056
[HD2 Android NAND Development] darkony:
No-frills CPU Control v1.22

install No-frills CPU Control
[HD2 Android NAND Development] CaCtuZ123:
Camcorder(Recording/Playback) works perfectly on DJ Danik's Sense 1.0 with 0.2.1. Only problem I got is it reboots every 2nd-3rd hour, don't really know if it's kernel related. It has been rebooting since 0.1.3.
[HD2 Android NAND Development] Cheech1976:
Don´t really know if it´s related, but i remember reading that ZRAM may have to do with one or the other reboot.

I had swappniess set to 60 and had that reboot once or twice a day, i changed swappiness to 35 two days ago and the phone has yet to reboot on it´s own, might be worth a try?
[HD2 Android NAND Development] ph03n!x:
Ok, just tested 0.2.1 in Dj Danik's Supersonic based Sense 1.0 build, camcorder works fine at 800x480. I see a bit of a sluggishness while panning though not a deal breaker!

Thanks again, @marc1706
[HD2 Android NAND Development] feloccio:
@marc It is working but laggy like in the versions before.
[HD2 Android NAND Development] Lavell7298:
Thanks for the info.:) That app worked out well.
[HD2 Android NAND Development] ak100:
It works only with MPEG4 codecs, so you need sense 1.0 build for it or LGcamera with MPEG4 codec. Sense 2.1 and laters uses H.263 or H.264 codec..i forgot.., so this kernel doesnt affect on stock camcoder on theese builds.
[HD2 Android NAND Development] ph03n!x:
Yup, the latest version fixes MP4 codec, and works fine in Sense 1.0 at 800x480. We have to enable MP4 in Sense 2.x+ builds, or figure how to make H.26x work.

@Marc1706, maybe we should have a note in the first post as many users seem to be adding about the same thing...
[HD2 Android NAND Development] Rick_1995:
/arch/arm/mach-msm/include/mach/htc_usb.h:259 ;)

/arch/arm/mach-msm/makefile.boot:3 ( initrd is placed at 0x12800000 which is mem base + 0x01000000 ), it works now because bootloader supplies the address in atag, so this one is not critical.
[HD2 Android NAND Development] marc1706:
Sorry but what are you trying to say? I don't really get what you mean with that post. ;)
[HD2 Android NAND Development] chrisrj28:
Figured this gets fixed after my HD2 doesn't work anymore :p

Great job Marc, would give you a thanks but I used all mine today ;)
[HD2 Android NAND Development] Rick_1995:
There's a typo in the first location, line 259 of /arch/arm/mach-msm/include/mach/htc_usb.h, rment instead of rmnet

The ramdisk address defined in makefile.boot is wrong, it is membase+0x01000000 which is 0x11800000+0x01000000 = 0x12800000 and not 0x12200000
[HD2 Android NAND Development] essi_baba:
Senior marc, read your private messages
[HD2 Android NAND Development] marc1706:
It seems to me like this was a meant typo. They are actually using it as rment in the whole file. Also we are not using that part of the kernel right now and it's not used in the bravo kernel either.

Regarding the address:

We are using the same address that tytung and others have been using for quite a while:

https://github.com/tytung/android_k.../blob/ics/arch/arm/mach-msm/Makefile.boot#L10

So the currently used one is actually incorrect?

I'll reply once I've looked a bit more into that. ;)
[HD2 Android NAND Development] essi_baba:
i send for you about zram , Do you read it ?
[HD2 Android NAND Development] Nedo Ukradan:
I am ashamed of mine actions

guys,

I have to apologize for my unacceptable behavior last days ... I was too nervous and too much beer ... Our beer has more alcohol ...

I had some incredible problems with sound (Incoming - crackings, outgoing ... crazy unintelligible, even using earphones...). None of the sense 3.5 ROMs was not working ... I think I tried everything ... I know I acted like a fool - I was desperate .... sorry!

Found the solution: mwakiousRUNNINGrom® 8.1.0 - amost perfect: outgoing sound could be a bit lower (3-5%).... but it is almost perfect. I have got new hd2...

It is time to recognize another crazy Italian... This one plus Dansta.... Those who survive will speak. Ages... :)

Sorry again

I wish you all Merry the first day of May - the day that many pigs in Serbia will not survive :)
[HD2 Android NAND Development] winner1:
is there any updates or progress in the ICS+sense 4.0 kernel and drivers?!!
[HD2 Android NAND Development] marc1706:
From what I'm hearing we're getting closer to ics sense Roms. At the same time I've been working on a .35 based ics Kernel:
[HD2 Android NAND Development] winner1:
thanx for ur hard work ... and for ur time ... hope u can do it soon .... 1 last question plz ... is the kernels made for the none sense roms help u in ur development of this kernel?! ... from what i saw in the these roms they did very good progress .... so is it helpfull for u to use some codes from these kernels?!!
[HD2 Android NAND Development] Rick_1995:
I'm feeling like an idiot, WHY GOD WHY !?

i did an extra bit shift before adding them up, it is indeed 0x12200000 and not 0x12800000, as for the other typo, i'm sure that was not my sleep deprived eyes :p
[HD2 Android NAND Development] marc1706:
You can call me Marc.

I was really wondering since the address Magldr displays is also 0x12200000.

Anyways, I'll change the typo and see if that possibly fixes RNDIS or other usb related internet thingys. :D

edit: The usb functions are correctly referred to as rment. It really looks like this was meant.
[HD2 Android NAND Development] alex.odell.2011:
Glad to here it, Dansta (TBD) says he will start cooking some sense 4 ROMs when the kernal is realised :D
[HD2 Android NAND Development] marc1706:
First post has been updated with kernel version 0.2.2. Have fun.

P.S: Please note that this is the GB Sense kernel. ;)
[HD2 Android NAND Development] drharisis:
my phone always force closes android process when updating from 2.1 to 2.2...(I wiped everything,running energy rom)..Any syggestion?????Does new kernel provides less battery drainage??
[HD2 Android NAND Development] Cheech1976:
No force closures for me with the new kernel, battery drain I think will take a day or few until a statement can be made :)
[HD2 Android NAND Development] alex.odell.2011:
Just a thought are you updating inside about phone
[HD2 Android NAND Development] secaplus:
Hi Marc

After update, the value given in parameter/about phone/... Is 0.2.1+ not 0.2.2 why ?

Secaplus
[HD2 Android NAND Development] feloccio:
After updtating my notification bar went missing:-(
[HD2 Android NAND Development] rafiqzadah:
Haha... Try to wipe cache and dalvik.... See if that helps...
[HD2 Android NAND Development] powerofthink:
I have also same thing. "About phone" shows 0.2.1+
[HD2 Android NAND Development] alex.odell.2011:
+1
[HD2 Android NAND Development] feloccio:
Thanks, that helped!
[HD2 Android NAND Development] alex.odell.2011:
If in doubt or bugs appear, have a wipe ;)
[HD2 Android NAND Development] marc1706:
I probably forgot to change the version in the config. Can't do much right now since my mouse is broken and a new one won't arrive until tomorrow.
[HD2 Android NAND Development] Tigermoto:
Installed V2.2 on my HD2 yesterday and i can't believe how much smoother my device has become, dunno what you did Marc, but you did well.

Thanks.
[HD2 Android NAND Development] -pixelfreak-:
rctweaks do not come from kernel. this several stones are in Rome. has with kernel purely nothing in the care.

I have also obstructed rctweaks in my Rome. only with the difference that not from the net is pulled(drawn) separate with the installation everything already on sd lands

die rctweaks kommen nicht vom kernel. das sind mehrere bausteine im rom. hat mit dem kernel rein garnichts am hut.

ich habe die rctweaks in meinem rom auch verbaut. nur mit dem unterschied, dass nix aus dem netz gezogen wird sondern beim installieren alles schon auf der sd landet

pixelfreak
[HD2 Android NAND Development] fatballj:
Thank you marc. Will Try soon. Just wonder whether you could migrate the fix of video encoding function from ICS kernal to GB kernal so as to fix the 800 X 400 recording on HD2 in near future.
[HD2 Android NAND Development] marc1706:
As I've already mentioned a long time ago the issue with video recording in GB sense kernels is related to the libraries. The libs we currently use try to open hardware encoding of a msm7x30 device which the leo obviously is not.

You should be able to use lgcamera though.
[HD2 Android NAND Development] ariebower:
Thanks you Marc for update,,downloading now...:)
[HD2 Android NAND Development] axelf_69:
Good work dude!

HD2 runs like a new phone, with haldric's XL rom!
[HD2 Android NAND Development] -leo-:
thanks for your great kernel, marc!

seems MAC address and kernel version didnt change a bit................................

since MAC filter of my wifi router didnt block my phone:D

version num. i noticed post above;)
[HD2 Android NAND Development] marc1706:
If your mac address didn't change you probably have a file named "calibration" in system/etc/. Please contact your ROM developer on how to get rid of that file or at least the mac address inside that file. Removing the line for mac address in that file breaks wifi as far as I know.
[HD2 Android NAND Development] Al-Shaheen:
conform it works with a Unique Wi-Fi MAC address

Hi, Thank you for making HD2 one of best phones ;)

I conform it works with a Unique Wi-Fi MAC address just copy /proc/celibration to /system/etc/ :cool:

& with 3 HD2 working together in my WiFi with each Unique mac address :D
[HD2 Android NAND Development] fatballj:
Thank marc I am trying lgcamera free version I bb the market. Set video encoder ad h264 or h234, the output file is mpeg 4., bit rate default 3Mbit. Resolution from 640*480 to 800*400 The camcorder could record but the frame rate seems low and not smooth. Could you share the setting which make it work smoothly? Thanks.
[HD2 Android NAND Development] marc1706:
Change the video encoder to MPEG4.
[HD2 Android NAND Development] fatballj:
Thanks. I did it as I knew you said that only mpeg 4 encoding is work. But the latest free version of lgcamera will prompt "record video failed" and stop respond. Which version are you using?:confused:

By the way, I am using RCmix 3D 5.1 and kernal 2.2
[HD2 Android NAND Development] hellraiser-rh:
the old Problem - wifi tethering

HTC-HOTSPOT needed!

'cause its a kernel related problem, i first post it here.

i'm using the Marc kernel with the energy -rom.

With the wifi-tethering app ( Müller, lemons,buxton)

i get it only to work in ad-hoc mode.

now i really need infrastructure mode like the original HTC-hotspot.

does anyone know a app or settings to get infrastructure to work.

(the 3G logo is shown, but i cant connect, stuck in getting ip-adress.)

or ith there a chance that Future kernel Version will get HTC-hotspot to work

---------------------------------------

Hope getting original Hotspot back :-) .

in the meantime this wifi-tethering setting works so far:

for HD2 infrastructure mode.

google nexusone -> softap -> routing fix.

wifi tethering setting
[HD2 Android NAND Development] Daekin:
Breaking news from Desire S forums: WiFi hotspot not working on devices due to bug in superuser apps...it gets automatically blocked! I wonder if this is also the case of HD2.
[HD2 Android NAND Development] Deadknight:
am i the only one or does anybody of you have this. i use this kernel on gbleo rom.is the airplane mode very fast compared to non airplane mode? rom slows down 3 times when phone is on(airplane)?
[HD2 Android NAND Development] Autodelta:
My HD2 began frequantly rebooting with kernel 0.2.2

With 0.2.1 it's running fine again
[HD2 Android NAND Development] gecata:
Are You clear Cache and Dalvik-Cahce after kernel update? Also FixPermision in recovery!
[HD2 Android NAND Development] Autodelta:
Thanks I have not fixed the permissions in recovery, I will try it
[HD2 Android NAND Development] woozie91:
If You will get no contact pictures in messages after permissions fix write in console:

su

chmod 666 /data/data/com.android.providers.contacts/files/*

And reboot.

:)
[HD2 Android NAND Development] Plainy:
Switching WIFI/Mobile Data

Since i´ve installed Marc´s 0.2.2 Kernel I have probs with switching from WIFI to mobile Data.I´m using TBD V.3.7

Now i clear all the Caches and fixed Permissions.At the Moment it will work.Was this the Problem??
[HD2 Android NAND Development] mike2nl:
Very late i know, but right now i have installed version 0.2.2 without any issue while running.

A big, big thnak you for this very fine and stable running (rom), hehe kernel ;-). This types of typo happens.
[HD2 Android NAND Development] NRGZ28:
It's not a ROM... it's a kernel :)
[HD2 Android NAND Development] Dark_Avenger:
Hi marc1706,

thank you for the great kernel. I'm using Energy SensationXL/Runnymede ROM (MAGLDR 1.13) with your latest kernel 0.2.2. From time to time (once or twice in a week) my phone freezes when using WiFi. Sometimes when switching the WiFi on/off, most of the time when sync the greader news... Do you have an idea where could be the problem - kernel, rom, bootloader?

Thanks
[HD2 Android NAND Development] nqkoidrug:
camcoder

A chance to fix the camcoder works fine with 800x480 ??? Thanks for great kernel.
[HD2 Android NAND Development] Dark_Avenger:
Marc already answered this question many times:
[HD2 Android NAND Development] Dark_Avenger:
Already available in the latest Energy ROM :)
[HD2 Android NAND Development] Radem:
marc1706_desire_0_1_5_magldr.zip pliz reupload tis kernel,uploaded send pocesing 15 sec end next error.
[HD2 Android NAND Development] marc1706:
All download links should work again.
[HD2 Android NAND Development] djsolidsnake86:
have you added latest hwa from securecrt?
[HD2 Android NAND Development] NRGZ28:
What would be the point of that ?
[HD2 Android NAND Development] NRGZ28:
If you want to try a new Sense 3.5 based ROM with this latest kernel in it.. > http://xdaforums.com/showthread.php?t=733649&goto=newpost

:laugh:
[HD2 Android NAND Development] pirlano:
XxXPachaXxX fixed Wifi Tethering and BT Sixaxis support and maybe some stuff with camcorder on GBLeo Kernel, i remember it was based on your kernel, can you check if patches can be included? :D gbleo kernel source: http://www.kleinrealms.com/xxxpachaxxx/downloads/dev/gbleokernel.rar
[HD2 Android NAND Development] ricky886:
really thanks for big update:cowboy:
[HD2 Android NAND Development] vanity:
Thanks for your new updated kernel.

Great work.:thumbup: Nice 2 c that u too are helping to keep hd2 alive.:D
[HD2 Android NAND Development] essi_baba:
thanks man!

i tomorrow release fix about camcorder 800*480 ,but it is beta, and need some tweak ,in you can improve it ,so help me for this work.:good:

sorry for my bad english ;)
[HD2 Android NAND Development] zboq:
I don't know if You have noticed, but camera got way better in latest Energy Rom using stock camera app and 800*480 res. You should check it out.

Btw, thanks marc1706 for new kernel.
[HD2 Android NAND Development] Dark_Avenger:
Hi Marc,

is it possible to include tun.ko module in your kernel? As I already posted here (http://xdaforums.com/showpost.php?p=28454278&postcount=945) from time to time I have complete android freeze when turning on/off or using WiFi. Could you check this issue? According to this topic (http://xdaforums.com/showthread.php?t=1083099) "latest" Broadcom WiFi driver is 4.218.248.23 or even maybe newer. In 0.2.0 you updated the driver to 4.218.248.20. Could be a chance that latest one have fixes for my freezes??? Or maybe I should try the revert to bcm4329.ko from your 0.1.9 version?? Is replacing the bcm4329.ko from 0.1.9 in your latest 0.2.3 enough or some addition changes are needed?

Thanks in advance
[HD2 Android NAND Development] theslam08:
In doing a logcat for another problem, I have noticed a TON of these:

E/IPCThreadState( 283): Failed to find cpu subsys

Like every 5 lines, this pops up about 5 times, then moves on with several lines later pulling that same failed to find cpu subsys.

Just wondering, if this is something that if fixed, could make it even faster? The idea playing in my mind is tripping over your shoe laces. If its constantly trying to 'locate' something and cannot find it, but keeps on checking then its wasting time. Not only that, if maybe it did find it (this subsys), it would be more optimized? Hopefully this can help (not like its slow now, but any optimization is always good, usually)

PS. Running Jul24th Energy ROM.

PS2. Ok, the reproduction: Just move the sense lock ring around on the lockscreen, not letting go. And WOW does this one issue go craazy (just loads the error, no other lines).
[HD2 Android NAND Development] marc1706:
You actually might find an answer to this by searching through this thread. The slight overhead this causes is nothing compared to the sluggisness you'll get using CFS instead of BFS.
[HD2 Android NAND Development] gade12:
i saw in modules scripts of init.d bcm4329.ko isnt load with insmod...so it necessary to load it?
[HD2 Android NAND Development] :
Tun is already is built into the kernel.... It is not built as a module, that is why it won't show up in /proc/modules.

Look at his config (the highlighted line): https://github.com/marc1706/desire_kernel_35/blob/master/arch/arm/configs/htcleo_defconfig#L1134

Also, if you use bcm4329 from older kernel, why would you ever want to do that?

libhardware_legacy.so loads bcm4329.ko automatically whenever you turn on wifi. If you try to load it manually, it will only cause error in wifi ;)
[HD2 Android NAND Development] msavic123:
Hardware Acceleration

Can yu implement hardware acceleration support, like in tytung kernel?

i know this is mainly in egl libs, but maybe it must be activated by kernel somehow...

Either way, HWA is not working...

If someone knows which libs should be used fro enabling hwa in ginger sense roms, please speak up :)
[HD2 Android NAND Development] :
It already has h/w acceleration? If it did not have HWA, the performance would be terrible (you can see what "no HWA" really means if you edit egl.cfg with 0 0 adreno200)

You mean updating kgsl?
[HD2 Android NAND Development] msavic123:
HWA

I mean that it sometimes stutters here and there, try loading weather widget in sense 2.1, and change city to start animation. You will see what i mean. Also, scroling is not so smooth on htccontacts, and maybe otherstuff that san scroll a list, ie. htcmusic.

All these problems are much more obvious in sense 3.5 roms, as it relies more on hwa.

Also, there is mwakious rom which claims it has some hwa libs, but he doesn;t want to give info on it.
[HD2 Android NAND Development] marc1706:
Even HTC devices that obviously were made for Sense 3.5 have that stutter. :silly:
[HD2 Android NAND Development] msavic123:
Stutter

Really?!

I haven't used any other device, apart from hd2.

But it's a major flaw on HTC side, releaseing unpolished software. No wonder layman people like more iphones...

However, miui roms act much more fluid, when comes to scrolling and stuff.

Are miui libs compatible with htc ones? so we can copy over miui libs, see what happens.

I know a while ago that i read a post saying that ICS dalvikvm is compatible, and a little faster than ginger one, i tried it, and it works great...

So does anyone have a clue what is than different in mwakious libs? and what he meant by hwa libs? seems only thing they fix is grey wallpaper picker images, but all i can see, is that some egl files are taken from desire s roms, thus different in size.

I must admit with them, rom looks a little smoother, though they are not stable (sometimes rosie restarts, etc)
[HD2 Android NAND Development] :
If you want true hardware acceleration, remove copybit.qsd8k.so from /system/lib/hw. (See this link and this link for more info)

Also, don't copy miui libs to htc sense.. the libs are basically the same as cm7/cm9 and htc libs have extra VFP instructions that AOSP/CM don't have.
[HD2 Android NAND Development] msavic123:
True HWA

So it's now legacy feature, or works only if gl doesn't and less apps nowdays use it? I haven't run into problems yet, and phone DOES feel noticeably smoother.

And is it then OK to remove it in a rom release????

How about using libs from sense roms with newer sense then? Should that gain improvements, speed?
[HD2 Android NAND Development] :
Most apps use OpenGL ES to render so copybit isn't needed.. It should also be fine to remove it in a rom release without any ill effects as far as i know.
[HD2 Android NAND Development] jskenderi:
Hmm, is that true: no copybit=HWA? I'm a bit confused. Maybe marc can give us an enlightening answer. Thanx in advance.
[HD2 Android NAND Development] marc1706:
I think this quote should clarify this:

Source: https://groups.google.com/forum/?fromgroups#!topic/android-porting/xGTJeEnSuY4[1-25]

As we definitely have a GPU that supports Open GL we should be fine with removing copybit.
[HD2 Android NAND Development] Shaeen:
I can't say that phone feel more smoother without copybit.qsd8k.so..:rolleyes:

but all camera apps shows white screen
[HD2 Android NAND Development] Daekin:
That means you have wrong libs in the ROM...
[HD2 Android NAND Development] msavic123:
If you use some 3.5 sense rom, there isn't much difference. I use sense 2.1, and it does work smoother...

As for white camera, i encountered that too, looking into it, i don't think it is related to copybit...

...but it is. No copybit - white camera. Copybit - camera working again.

If anyone finds camera that works without it, it'd be nice. Till then, copybit seems like necessary evil :)
[HD2 Android NAND Development] jskenderi:
I just want to report that my RCMix3D Sense 3.5 ROM is much smoother without copybit, but also, the camera is not working.