init for suspend.