Enhance CPU sleep/wakeup detection