Ubuntu啓用休眠

Ubuntu系統默認是隱藏休眠功能的(通過polkit策略),打開休眠方法如下:

#以管理員用戶編輯 
vim /var/lib/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla

#修改以下條目中的 no 爲 yes

 [Disable hibernate by default in upower]
 Identity=unix-user:*
 Action=org.freedesktop.upower.hibernate
 ResultActive=no

 [Disable hibernate by default in logind]
 Identity=unix-user:*
 Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibern    ate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-ses    sions;org.freedesktop.login1.hibernate-ignore-inhibit
 ResultActive=no
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章