I have a Displayport<-->DVI adapter and that thing never works as intended.
Sometimes it won't detect the screen, so I have to unplug and plug it back again. If the screen is off the Macbook thinks there's still a second screen...
They really botched that thing.