Finish sleep mode setting(has bug).