I just installed 4.1 GM and it fixed the proximity sensor. No issues here. Those who are still experiencing problems, are you sure you installed the Gold Master version of 4.1?
OK, so what is it then? Are there some quality control issues with the proximity sensor in the 4? Is it sensitive to installation? Some people don't have it at all, others have it sometimes or almost all the time and others, like myself, have had it occasionally.
The proximity sensor in ip4 is less sensitive to objects due to the design change. The variation in issues/no issues is due to the variation in people's ear shape, way they hold phone to ear, and yes.. length of hair. If you have hair that covers your ear, it's not likely that you'll have the problem because the hair is close enough to bounce the IR back into the detector which is how the sensor works.
The picture shown earlier in the thread after 4.1 update which show a visible red light means they are driving the IR emitter harder so that it can punch out more light to bounce off objects in proximity which would trigger the detector side a bit better.
I installed 4.1 GM, tested proximity and it seemed fixed. During a call today saw screen light up out of the corner of my eye. Tested again and no problem.
So...my vote is that proximity is much improved (93% fixed I'd say) but not all the way fixed. Certainly better than it was.
Had minor prox sensor problems with B2/B3, but overall only one occurance in the month the beta's were out.
On the GM, already had one issue yesterday where I hit "keypad" and then a digit. But it does seem much improved, its been the only prox issue with 4.1GM ive had. I've made a few long (45mins+) calls and no other issues.
Yesterday, I installed 4.1GM on my iPhone4. I made some tests and found new bug in Apple proximity algorithm. During a call, when the screen light off for the first time everything is ok. You can make natural hand or head movements with no problems at all. But if you let the screen to light on for a short time, the algorithm going back to its previous known stage ( iOS 4.x) and the sensor started to register every movements.