[HD2 Android NAND Development] ayyu3m:
Test#1

Stand directly underneath a light bulb, preferably 100w or whichever is high for you. Just after the call is ended, move the front of your hd2 towards the light bulb but just 1 feet away from it, and hold it there for 1-3 seconds. IF your hd2 turns on by itself just after the call is ended, see my explanation in THE PROBLEM. (Note: Dont move the hd2 unit too close or keep it near the light bulb for too long. The screen is made of plastic and can easily melt if exposed to heat for a long time)

Test #2:

Change the Android ROM. Please try this after the first test. We want to make sure the problem is with THIS rom if the phone turns on after the call in any other Android ROM you try. Please dont try a windows ROM as we want to duplicate the problem on same plat form. Besides i would never understand why ANYone would ever go to that piece of junk. Hehe. As usual IF the problem exist see my explanation. Or else you can send a kick message to Arkatis which would be highly unusual as i dont have THIS problem using his rom.

THE PROBLEM:

I have had this problem. And the bad news is, the light sensor on the top, near to the left side of your ear piece is not detecting the light once you move it away from your ear. This is because the the light sensor area is filled with dust which does not allow light to fall on the sensor properly.

why does it work to turn off? well essentially since dust is already there and apart from being completely blocked, it just needs a little amount of blockage of light to fill that empty spot of dust...to turn off the screen. In this case, as soon as you move it near your ear or cover it with your finger. Then the problem starts as i have explained above.

Fix #1: This is a Do-It-Yourself and can fix the problem easily at home

Now the only way you can allow enough light through the dust and onto to the sensor is if you sit near a 100w light bulb and that aint pretty. So what you can basically do is get a tiny blower, with a needle type tip. Place it near to the left of the ear piece between the screen cover and the black [dotted] mesh, so that you know you can blow some air UNDER the plastic screen covering. Blow some air 5-10 times or when you are comfortable. Make a crank call and check your progress after that. Should be working.

Fix #2: Careful [If under warranty, run to the nearest htc service center] + Disclaimer Below

and explain as i have explained. hopefully they will understand cos most of the times they are dumber than the normal people we get around here. let them remove the back cover. then they can remove the small circuit on the right side (when the back side of you hd2 is facing you) which houses the sensors also and clean it neatly. There is a small transparent plastic underneath each senor on the frame. So blow some air in between the hole which guides the light. If your hd2 is out of warranty and you really want to do it, google for HD2 disassembly guide and pay attention to each tiny detail before jumping in.

Disclaimer: Sorry, to put this. But disassembling your own unit which is with you, even though i said so, involves your doing. And thereof i will not and cannot be held responsible for any damages whatsoever. I have done disassembly on many htc unit and have had absolutely 0% damages. So if you are uncomfortable PLEASE seek an experienced personnel. Thank You