一、首先以root用戶登陸當前用戶java
$ su rootcode
二、查看當前內核支持哪些休眠模式class
$ cat /sys/power/state登錄
freeze mem disk
三、鍵入以下命令進入休眠模式di
$ echo "mem" >/sys/power/stateco