fix get next alarm bug;
wake up and unlock device.