Hello everyone,
just wanted to add my own experience which may be useful to someone.
I'm on a late 2009 27" iMac which worked perfectly until a couple of month a go when suddenly every once in a while the screen started going black randomly. Tried EVERYTHING. multiple SMC \ PRAM resets with no avail. switched different keyboards, running fans at full speed. Nothing really solved the issue.
The only (partially) working solution has been to lower down screen darkness to 1/3 which worked pretty fine but that's not a solution as i'm a designer and that's definitively not an ideal solution.
Then a couple of days ago i switched some of my USB inputs and guess what? no more black screen (it's been more than 24hrs now, fingers crossed).
So, to add a new option to all those listed in this topic i would suggest this:
Switch your USB inputs, in my case seems like there's one USB port failing hence sending the screen in protection mode (off). Switch your USB inputs leaving one empty, try all and see if this helps.
Sorry for my poor english, hope this helps someone as this issue totally drove me mad.