I installed the program from this thread:
http://forum.xda-developers.com/showthread.php?t=624206
and when my phone is in my pocket and I get a text, the screen immediately turns off when a text wakes it up.
Not the most ideal solution, but it works, at least on my TP2.