Not a hack as you requested. I use Touch In Call Screen Tweak.
http://forum.xda-developers.com/showthread.php?t=488991
Uses the light sensor to turn off the backlight when the phone is against your ear, on when you pull it away. Also turns on external speaker if you turn the phone upside down.