handle just wake and sleep events
handle just wake and sleep events