一、首先以root用户登陆当前用户java
$ su rootcode
二、查看当前内核支持哪些休眠模式class
$ cat /sys/power/state登录
freeze mem disk
三、键入以下命令进入休眠模式di
$ echo "mem" >/sys/power/stateco