I introduced a feature on some HTC phones called pocket detection. It is meant to stop the screen wake functions from coming on while the phone is in your pocket. The way it works is if a wake event is detected, it checks the proximity sensor. If the sensor is covered, it cancels the wake up. This is a useful feature which I will include if possible (so far I don't see where the proximity sensor is controlled from the kernel, if it's userspace, then we won't have this feature).
The idea that I think you have in mind, disabling s2w/dt2w when the proximity is registering "near," won't help with battery drain. That would require leaving the proximity sensor on all the time, which would drain even more unfortunately.
|Thread Tools||Search this Thread|