yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] Robbie P:
I could not find high battery drain after making a call. I did find that the battery indicator (and battery stats widgit) was displaying incorrect information. I had an almost discharged battery in phone so that it wouldn't even boot into magldr menu. i put the phone on wall charger and booted the NSD rom and it showed i had about 60 odd % of battery:confused:

As for output of top, i have attached it after call, and it seems ok.
[HD2 Android NAND Development] macs18max:
Thanks Robbie for pointing out. I have already ported the .35 code for charger. Seems like it is giving correct battery level now, but need more testing.

I was looking at this post.

http://xdaforums.com/showpost.php?p=54582788&postcount=17

I want to know which kernel other boots into haret?

3.0.16? (marc1706)

2.6.35? (marc1706)

2.6.32? (tytung)
[HD2 Android NAND Development] Robbie P:
only the 2.6.32 boots from haret.
[HD2 Android NAND Development] gilbert32:
Robbie, i just saw the post about haretlog (again)

i see you compared 2.x with 3.x, i believe it was 2.6.32 that you used.

can you repeat the same test, twice, with

1 - 2.6.32 kernel (tytung)

2 - 2.6.35 kernel (marc1706)

3 - 3.0.16 kernel (marc1706)

please?
[HD2 Android NAND Development] Robbie P:
it was actually [MENTION=4056517]HypoTurtle[/MENTION] that posted those, but i will try this evening:fingers-crossed:
[HD2 Android NAND Development] Robbie P:
I tried twice each with tytung 2.6.32, -pixelfreak-'s 2.6.35 and macs18max 3.0.101 kernels. Thought we had better try kernels we are currently using, and i had the nativeSD roms on sdcard anyway;)

I tried the 3.0.101 twice each, with and without the 6mb of zeros.

only the 2.6.32 kernel boots.

Edit; oops, mis-spelt macs18max's name in titles, sorry:o
[HD2 Android NAND Development] macs18max:
Thanks [MENTION=3629322]Robbie P[/MENTION] for the logs.

Another request. Need you to test 2.6.32 kernel to find out why 3.0.xx kernel wont boot on Haret

I have uploaded 3 zips files 1.zip , 2.zip and 3.zip

1.zip --> 2.6.32 kernel with modules from tytung source no modification but compiled using gcc 4.4.3 (just to make sure 2.6.32 boots in wm65 when compile using gcc 4.4.3, tytung uses toolchain arm q1 which i dont have at the moment).

If the kernel boots using haret then try 2.zip

2.zip --> Same as above with 16MB offset

3.zip --> Same as above with 16MB offset and securecrt magldr hack. (you must use ramdisk with 6MB offset )

Thanks for all the testing
[HD2 Android NAND Development] macs18max:
I feel like crying... :crying:

Let see who can find out why the picture below is making me cry?
[HD2 Android NAND Development] -leo-:
i guess this kernel will do good to 'SENSE 5 on HD2' ? haha
[HD2 Android NAND Development] gilbert32:
LOL how did you get bluetooth to work? :P

and the people are demanding for the sources lol :p

Good job!

Edit: did fixing bluetooth fix any pm issue/ black screen/shutdown?
[HD2 Android NAND Development] Mike_1996:
You _do_ notice that this is under CM10.1, don't you?

Edit: Sorry my mistake, this is an Evervolv 4.2.2.

---------- Post added at 03:12 PM ---------- Previous post was at 03:01 PM ----------

BTW ART not working for me. Tried many times, including editing build.prop manually in recovery before first boot. Every time it boots up with success and has all the apps correctly converted (when applicable) but the machine soft reboots immediately after before showing the lock screen. Since then it sticks there forever.
[HD2 Android NAND Development] Robbie P:
All 3 boot ok

Have attached haretlog for all three, and dmesg for 2&3

I reckon bluetooth too, but why cry?

Edit; unless bt is on but not connecting? (should it be white not grey?)
[HD2 Android NAND Development] HypoTurtle:
Either due to summer hols or prep for the new Star Wars movies, you've been watching one too many Disney movies...

Is there any merit in Robbie's suggestion of using kexec for the haret boot? Not sure how that would be implemented though and/or have you seen the haret kernel patches that I'm sure I didn't imagine. And the other thing to check is the kernel compression method - haret doesn't handle gzip I believe.
[HD2 Android NAND Development] gilbert32:
do you have an idea where you heard about kernel compression + haret? i've been trying to mess around with it, but couldn't get kernels to boot without compression/with gzip like tytung's i think (IIRC).
[HD2 Android NAND Development] macs18max:
Oh man. My laptop just died. And I'm on vacation in a place where I don't understand the language, don't have any tools to open the laptop. No access to Google YouTube as it blocked here, so no hope of watching how to disassemble laptop.

Hope it is the charger or pin soldering issue. I'm bored already.

Thanks Robbie for the effort for testing. Now it is clear that in haret it doesnt matter offset is 10mb or 16mb. It will still boot. So issue could be somewhere else

Yes hypoturtle, that could be the issue. I see that Marc .35 is using lzma and tytung .32 is using gzip compression.

Gilbert, the reason why .35 may not boot when using gzip I think due to 10mb offset.

I remembered daekin mentioning that he solved freezing after call on .35 by disabling CONFIG_CC_OPTIMIZE_FOR_SIZE but some users couldn't boot. i disable it in config and compiled and it would not boot. Changed offset to 16MB and it booted. I would ask gilbert or any one can compile a kernel .35 to change initrd_phy from 12200000 (10MB) to 12800000(16MB) in arch/arm/mach-msm/Makefile.boot

Also

enable gzip

Disable lzma and cc optimze for size

And then try to boot .35 in haret
[HD2 Android NAND Development] macs18max:
Hey thanks for notifying. I will be concentrating more on the kernel than ROM which is has 3 issues currently. USB detection, camcorder and media 720p playback and USB tether.

So any non essential feature will be focused after I fix the kernel.

Also my laptop has died so don't expect any update soon.
[HD2 Android NAND Development] Mike_1996:
Actually the current build is enough for me apart from battery consumption. Works as a daily driver in my NAND. And just to confirm that normal playback works perfectly (unlike in some Sense-based ROMs). Also Google Camera works.
[HD2 Android NAND Development] HypoTurtle:
It's old (just like haret), but it's mentioned here. Although they state gzipped doesn't work (which isn't the case with .32), perhaps the compression problem was fixed.
[HD2 Android NAND Development] gilbert32:
[MENTION=2473151]macs18max[/MENTION] sorry i didn't reply earlier; i am very busy IRL, all my free time for working on phone has been taken by my job :/

AND my phone's usb's broken again, it cannot be recognized by pc, can barely get it to charge, tried flashing windows mobile via sdcard (tried 1 gb card, didnt try 16gb), and it got stuck at around 75%, same for clk + recovery via sdcard, only got to flash magldr :crying: i miss windows mobile :crying:

if i could go early tonight, i will compile these kernels and upload for someone to test them with windows
[HD2 Android NAND Development] gilbert32:
i think it's hwcomposer and/or gralloc. i have to replace those as i'm too lazy to fix source in my rom
[HD2 Android NAND Development] macs18max:
Trying to get hardware encoder/decoder working on kernel so that we can use 720p and camcoder.

I am using tytungs cm11 rom which has a working 720p playback and working camcorder

and

Using marcs 3.0.16 kernel as I found that tytungs rom slow boots with newer KGSL.

marcs kernel is compile without any modification except enable some debugging.

I have atttached 2 dmesg.. performing similar task that is playing a 720p file after boot.

First dmesg is using marcs 2.6.35 kernel

Second dmesg is using marcs 3.0.16 kernel

If anyone can shed some light?
[HD2 Android NAND Development] gilbert32:
[MENTION=2473151]macs18max[/MENTION]

dal call 10 5 ERROR
al: call timed out. dsp is probably dead.

qdsp6_1550 maybe?
[HD2 Android NAND Development] macs18max:
Hi all. Kernel uploaded for testing. version: mac-x12

Changes.

Compile using GCC 4.7 which may fix app force close. (previously was compiled using linaro 4.9 too chain)

Bluetooth may have been fixed. (I'm sure kernel side is fixed but rom side may or may not need some changes)

Ported battery/charger codes from 2.6.32 kernel.

I have no time to test so I'm posting it here so that volunteers can test and report back

[MENTION=3629322]Robbie P[/MENTION] can you try this kernel one with extended batteries and see if it boots?

I'm try to get camcorder working and ending up no where

:crying:

But still not giving hope

NOT A FLASHABLE ZIP. SORRY!!
[HD2 Android NAND Development] Robbie P:
Sorry, busy too. Will try this evening.
[HD2 Android NAND Development] macs18max:
18 downloads so far. No feedback

I have i only user PM me confirming Bluetooth's working..

Can someone comment on the battery indication?
[HD2 Android NAND Development] fOxunO:
If only replaces with your 'new kernel' , installation aborted in start.

About battery indication , on old ROM , i think problem in indicator.
[HD2 Android NAND Development] Clamor:
New kernel works on my T-Mobile HD2 in all configs (NAND, DataOnExt and NativeSD) and boots fine with extended battery (which I use).
[HD2 Android NAND Development] macs18max:
Thanks Clamor for testing. I have updated it in the first post
[HD2 Android NAND Development] philipped346:
hello , i back from italy for 8 days and now i have installed new kernel and tested . the battery is good and bluetooth work fine , camera also and camcorder 75% ( we seen but can' t registered) . my installation is on magldr and nativesd on hd2 europe. many thanks for your work mac18max :laugh:
[HD2 Android NAND Development] macs18max:
[MENTION=6040892]Hunter Mossberg[/MENTION]

In reply to your PM request to make a flashable zip, you can make it urself, use tytungs kernel updater for nand/nativesd

Download his zip

https://code.google.com/p/nexus-hd2..._r2-updater.zip&can=2&q=label:JB+label:Kernel

In "boot folder" replace zImage,

In "system/lib/modules" folder add bcmdhd.ko and delete the rest

delete folder "system/etc"

I think this should work

thanks to tyungs
[HD2 Android NAND Development] fOxunO:
After make new .zip , with new kernel work again in t-mobile NativeSD.

GPS can switch on but detected not working in Waze.
[HD2 Android NAND Development] macs18max:
I haven't compiled GPS module in the ROM and it is mention in the first post

You can try this http://xdaforums.com/showpost.php?p=54445518&postcount=11
[HD2 Android NAND Development] Robbie P:
NativeSD, magldr, Xylo's edited 4ext sd recovery, sandisk 8gb C4(i think, label worn out;)) fat 3gb;ext4 3gb;2nd ext4 1.5gb, tried with normal and extended battery and X12 boots with both:good:.

ADB still not working, will try fix from here in a bit. Didn't see mention of it in OP.

Wifi isn't switching on for me with X12, it worked with X11. I tried installing X11 again and still can't get wifi to switch on, perms for both modules (X11 and X12) are 0644 so i don't think that is the problem:confused:

Small thing, the numbers in the dialler appear offscreen, not when dialling a number, but during a call when you want to "press 5 to hear these options again"

Have attached logs for X12, the second one is when trying to switch on wifi, also attached dmesg for the second logcat boot, also attached top for second logcat boot after making a call (seems normal).

Thanks

Edit; i can't seem to edit iserial as in quoted post above, it just wont save with filemanager and root browser does not see android0 as a folder.

Also, i used extfs for windows to put module directly to ext4 partition from pc. Never had a problem with this before, but it might be cause of wifi not working. Will put module in using a different method to see.

Edit2; i put the extracted X12 module on sdcard and saw that perms were 0770, so put that in /system/lib/modules using root browser but it still won't switch on wifi with X12 after reboot. Not sure what is happening.
[HD2 Android NAND Development] Robbie P:
just got a PM from Hendziuu, has less than ten posts so can't post here.

Thought i would post it, but i haven't tried it myself
[HD2 Android NAND Development] walter79:
Did someone tried tytungs gps libs with this rom? /system/lib/libgps.so and /system/lib/hw/gps.htcleo.so
[HD2 Android NAND Development] Robbie P:
"GPS test" app does not switch gps on with X11 kernel on this rom with tytung's libs, it switches on automatically with tytung's rom.

Edit; it doesn't work on X12 on this rom either.

Note that after re-installing the rom and upgrading the kernel to X12, i do now have wifi working on X11 and X12. Not sure what happened in my previous post, my bad for sure:o
[HD2 Android NAND Development] Clamor:
Some battery things

I have tested X12 with extended battery. Here are some results:

1 screenshot is just after boot up. Then I used HD2 a little and made second screenshot. Third screenshot was after night and the last was made after a day of non-frequent usage. Sorry that not in txt, I've broken my data cable :(

P.S. Alarm is not working properly. It do not work until you manually wake up smartphone. :confused:
[HD2 Android NAND Development] Hendziuu:
At the begining I would like to thank you very much for the public message what I was written to you :)

I've have another opinion about subsequent observation of the behavior that rom on my EU HD2. Today the battery rate were shows about 55% and my phone was turn off in the one moment (it was look like battery what take out of phone), I'll test it much more because I didn't wiped battery stats earlier and I'll try to help with fix that in the next week. Bluetooth works 100% ok because I did some tests with send/recive files from other devices and also I tested Audio streaming to other devices and music quality was awesome. Data and wifi works ok, but Internet Browser is lagging, Camera working too, but camcoder stops recording after 1 second recording. USB and sd mount working, adb not working, I've seen recently article how to check logcat or kmsg (I don't remember exactly what) in the file without working adb but I forgot where that article was.

EDIT: I found Hov to kmsg without working adb and atthaching that log and fsck log too
[HD2 Android NAND Development] fOxunO:
Try gps evervolv from walter79 also not detected working.

About wifi working , after reboot , usually working , maybe about this so macs18max said must rest for 2 minute.
[HD2 Android NAND Development] walter79:
Seems thats gps is a kernel problem.

I compiled working rom with "ion" kernel and gps works with tytungs libs.

If i use maniacx 3.0 kernel it is not working.

Maybe a simple smd problem.

https://github.com/walter79/android_kernel_htc_leo

Try this fix for adb:

https://github.com/walter79/android_kernel_htc_leo/commit/591e2368b5364430266bc93309d9f495546adb62

needs iserial too.

https://github.com/walter79/android_device_htc_leo/blob/omnirom-kitkat-ion/ramdisk/init.htcleo.rc
[HD2 Android NAND Development] macs18max:
.

Thanks. hey can you try this wrapper libs and compile it with your ROM and see if data works.

Done this few months back. (was working on 4.2.2)

make corrections if needed Also you need to find text "smd1" and rename it to "smd7" in etc/ppp folder
[HD2 Android NAND Development] macs18max:
Can you do me a favor and try to test gps in the attached kernel (ION) in your ROM please?
[HD2 Android NAND Development] Robbie P:
I don't have walter79's rom, but i tried that kernel in your rom, with tytung's libs, and gps does not switch on. Have attached a log, but the dmesg from magldr (and last-kmesg from a reboot) show some odd stuff with this kernel, have attached dmesg anyway, perhaps kernel logging is set to super-verbose.
[HD2 Android NAND Development] macs18max:
Those are dal debugging message that enable trying to find the fix for camcorder/720p.

If I have time I will do a ROM update with tytungs libs for gps.

Hopefully he wont mind
[HD2 Android NAND Development] Robbie P:
tytung's roms and libs are copyrighted and we are not allowed to post links to other phone sites due to xda rules. A flashable zip might be a solution but permission from tytung would still need to be sought I think.
[HD2 Android NAND Development] Hendziuu:
I think the reason why GPS not working is in the libs of gps. For example walter79 was written own 3.x ion kernel and in his kernel gps is working but cam not working, in your kernel situation is reversed so you and walter can connect sources of libs and build kernel and then test it. In my opinion that way is the fastest to get it working.
[HD2 Android NAND Development] macs18max:
Just found out that I had a ancient gps.conf residing in my ROM.

Any volunteers willing to test with gps tytungs files

You need the following

system/lib/hw/gps.htcleo.so

system/lib/libgps.so

system/lib/librpc.so

system/etc/gps.conf

and the

New kernel here
[HD2 Android NAND Development] -pixelfreak-:
only this :

system/lib/hw/gps.htcleo.so

system/lib/libgps.so

and gps.conf:

NTP_SERVER=de.pool.ntp.org

NTP_SERVER=0.de.pool.ntp.org

NTP_SERVER=1.de.pool.ntp.org

NTP_SERVER=2.de.pool.ntp.org

NTP_SERVER=3.de.pool.ntp.org

NTP_SERVER=europe.pool.ntp.org

NTP_SERVER=0.europe.pool.ntp.org

NTP_SERVER=1.europe.pool.ntp.org

NTP_SERVER=2.europe.pool.ntp.org

NTP_SERVER=3.europe.pool.ntp.org

XTRA_SERVER_1=http:xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http:xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http:xtra3.gpsonextra.net/xtra.bin

DEFAULT_USER_PLANE=TRUE

DISABLE_AGPS_WHEN_ROAMING=TRUE

REPORT_POSITION_USE_SUPL_REFLOC=1

AssistMethodType=1

AgpsUse=1

AgpsMtConf=0

AgpsMtResponseType=1

AgpsServerType=1

AgpsServerIP=3232235555

DEFAULT_SSL_ENABLE=FALSE

INTERMEDIATE_POS=1

QOS_ACCURACY=60

QOS_TIME_OUT_AGPS=120

SUPL_HOST=suppl.google.com

QosHorizontalThreshold=1000

QosVerticalThreshold=500

SUPL_TLS_CERT=/etc/SuplRootCert

DEBUG_LEVEL=1

ACCURACY_THRESH=5000

PHONE_TYPE=UMTS_SUPL_PORT=7276

SUPL_SECURE_PORT=7275

SUPL_NO_SECURE_PORT=3425

SUPL_TLS_HOST=FDQN

CURRENT_CARRIER=common

ENABLE_WIPER=1

for "de" you can set your country...and you have the best connect!!

Pixelfreak
[HD2 Android NAND Development] Robbie P:
i tried all of tytung's libs and new kernel mentioned in macs18max's post , and gps switches on:good:

Edit; with tytung's rom 20 mins ago in the garden i only got 2 satellites, i just got 10 with this. do they come around that quick? most should be geostationary i would have thought.

:)

Edit 2; Tried this rom again and got 10 fixes 15 mins later, then tried tytung's rom again and got 10 fixes, so not sure what happened first time with tytung's rom, i did leave it long enough to acquire the satellites, most come up as soon as i walk in the garden.

Edit3; [MENTION=2800390]-pixelfreak-[/MENTION] are the lines below correct?

Should it be "NTP_SERVER_0=de.pool.ntp.org" etc.? seems to be the same variable being re-defined. Or am i dumb again?
[HD2 Android NAND Development] fOxunO:
Thanks , working :good:
[HD2 Android NAND Development] macs18max:
Did anyone play around or tested with IO schedulers?

There is a new one ROW (read over write it think)

[MENTION=3629322]Robbie P[/MENTION] [MENTION=3427700]fOxunO[/MENTION] could you guys try it with the x-11 and x12 kernel so that I can revert the commits I have added in the new kernel. Dont think they are needed but still I want to confirm that it works with the older version thanks
[HD2 Android NAND Development] -pixelfreak-:
Robbie for your country is this:

NTP_SERVER=uk.pool.ntp.org

NTP_SERVER=0.uk.pool.ntp.org

NTP_SERVER=1.uk.pool.ntp.org

NTP_SERVER=2.uk.pool.ntp.org

NTP_SERVER=3.uk.pool.ntp.org

NTP_SERVER=europe.pool.ntp.org

NTP_SERVER=0.europe.pool.ntp.org

NTP_SERVER=1.europe.pool.ntp.org

NTP_SERVER=2.europe.pool.ntp.org

NTP_SERVER=3.europe.pool.ntp.org

XTRA_SERVER_1=http:xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http:xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http:xtra3.gpsonextra.net/xtra.bin

DEFAULT_USER_PLANE=TRUE

DISABLE_AGPS_WHEN_ROAMING=TRUE

REPORT_POSITION_USE_SUPL_REFLOC=1

AssistMethodType=1

AgpsUse=1

AgpsMtConf=0

AgpsMtResponseType=1

AgpsServerType=1

AgpsServerIP=3232235555

DEFAULT_SSL_ENABLE=FALSE

INTERMEDIATE_POS=1

QOS_ACCURACY=60

QOS_TIME_OUT_AGPS=120

SUPL_HOST=suppl.google.com

QosHorizontalThreshold=1000

QosVerticalThreshold=500

SUPL_TLS_CERT=/etc/SuplRootCert

DEBUG_LEVEL=1

ACCURACY_THRESH=5000

PHONE_TYPE=UMTS_SUPL_PORT=7276

SUPL_SECURE_PORT=7275

SUPL_NO_SECURE_PORT=3425

SUPL_TLS_HOST=FDQN

CURRENT_CARRIER=common

ENABLE_WIPER=1

you can test to set europe to uk...i have not test this... i have connect in 30-40 seconds and in 1 minutes i have all satellites and agps full working...

i hope this help

Pixelfreak
[HD2 Android NAND Development] fOxunO:
I'm not yet tested x-11 and x-12 , I clean install with 1'st rom added with gps file and last zImage.

Beside gps , panorama also working :good: but streaming videos via browser can't played.

Install on NativeSD in t-mobile
[HD2 Android NAND Development] Robbie P:
did a little test on X11, NativeSD fresh install, no data wipe (so no tytung libs)

used androbench with ROW and the default BFQ, two runs each. see screenies.

Seems bfq is better for random writes, but this is not very scientific. Not sure i have time for full tests:o

will try -pixelfreak-'s conf a bit later

Edit; tried PF's gps.conf on X12 with tytung's 2 libs, and gps won't switch on. wifi doesn't switch on either. Something seems to break wifi for me sometimes on upgrading kernel.

did a quick androbench on X12 with ROW, added screenie, seems comparable write speeds to X11 on bfq

Edit2; tried last test kernel and gps still not switching on with PF's conf. But WiFi now works
[HD2 Android NAND Development] Hendziuu:
I didn't test I/O because That rom works fine on my EU HD2 Nand + Data2ext with:

(my FStab in cLK 1.5.2.1)

mtdblock1 recovery 9mb

mtdblock2 boot 5mb

mtdblock3 misc 1mb

mtdblock4 ststem 370mb (free 44mb)

mtdblock5 userdata 13mb (all fre because I have this rom Data2ext)

mtdblock6 tboot 10mb (that partition is no needed but on that I have 4EXT Recovery NativeSD)

mtdblock7 sboot 8mb (that partition is also no needed, on that partition I have TWRP 2.7.0.0 with f2fsck support)

mtdblock8 cache 5mb

MicroSD Toshiba 16gb Class 4:

mmcblkp1 11778Mb Fat32

mmcblkp2 1536Mb ext4 sd-ext

mmcblkp3 1536Mb ext4 sd-ext2 (fully free, also not needed)

mmcblkp4 129Mb swap (I don't know it is needed, but earlier I has been made that partition so it was for today also like sd-ext2 partition)

and rom work's fine but Im doing observations about some days and on my device it have always problem with battery drain and battery charging, I can charge it fully but sometimes it turns off when it have random number of percent on the counter and full charging when it have 99% takes too much time to get it 100%. I was compiled yesterday night kernel (no code modifications, but config modified) from source link what author added in his first post in that theard but I had no time to test it, I'll do it today and then I'll share resaults by editing this post If it will have some resaults as earlier builds It could be need to edit battery or board source file then compile it again and test.
[HD2 Android NAND Development] macs18max:
Yup. I have confirmed that the kernel shows wrong indication of battery.
[HD2 Android NAND Development] macs18max:
Thanks [MENTION=2906641]robbiep[/MENTION] and [MENTION=5694186]Hendziuu[/MENTION] for all the testing.

[MENTION=382340]walter79[/MENTION] Gps was working all along since x11, I have tested it on my this ROM itself, by add the follwing 4 files as mentioned in earlier post from tytungs nexushd2 cm11.

I get a lock in google map, also tested in gpstest apk, could see 9 sats and locked, so confirmed working

system/lib/hw/gps.htcleo.so

system/lib/libgps.so

system/lib/librpc.so

sytem/etc/gps.conf

So not a kernel issue, it a ROM issue. Unfortuantely I cannot use his libs as I dont have the source code. (as Robbie mentioned above)

Anyways I may be releasing new ROM tonight. Nothing is fixed in kernel. ROM has been optimised. Much smoother now.

Just testing if there are new additional issues.