Thats the backlight settings, i havent tweaked anything to do with that, if it was the sensor it would come back on when removed from face, the backlight turns the phone off after about a minute on a call.
http://forum.ppcgeeks.com/showthread...t=light+sensor