PM: Fixs to pm2.c (sleep/wakeup)

Fixs sleep/wakeup issue