I'm quoting Richard Linklater on this one:
"It's not that hard, just uh.. you know... wake up!!!"

That happened to me only once, eventually I got irritaded and I decided I didn't want to keep dreaming, so I just woke up...