Ubuntu默认关闭的系统自带的休眠模式,要开启的话只要三步
- 在
/etc/polkit-1/localauthority/50-local.d/
目录下面创建com.ubuntu.enable-hibernate.pkla
文件 在
com.ubuntu.enable-hibernate.pkla
文件中写入
[Enable Hibernate in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
重启系统或重启 indicator 会话
killall indicator-session-service
顺利的话应该可以看到“休眠”按钮了。