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
順利的話應該可以看到“休眠”按鈕了。