MacBook Pro detects external monitor but shows black screen
I had the same problem, and I think I found what causes the problem. My macbook air was detecting the display, but only thing I saw was black screen.

Either your monitor is using VGA signal even if you are using DVI cable or you are using DVI to VGA adapter in between. MiniDP to DVI only produces digital signal.

For more information check a blog post of mine.