我做了 15.04 的全新安装,尝试根据http://ubuntuhandbook.org/index.php/2014/10/enable-hibernate-option-in-ubuntu-14-10-unity/ 的指令启用休眠
但它只有在我使用 upstart 而不是 systemd 启动时才有效。
我怎样才能让它与 systemd 一起工作?
编辑>安装休眠包后,我可以从终端运行它,但它在关机菜单中仍然不可用。
小智 18
创建以下文件:/etc/polkit-1/localauthority/10-vendor.d/com.ubuntu.desktop.pkla
将以下内容复制/粘贴到其中:
[Enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
Run Code Online (Sandbox Code Playgroud)注销并检查您是否可以在登录屏幕上看到休眠菜单项,登录后执行相同操作。
需要执行上述手动步骤的原因是它们似乎在 Ubuntu 15.04 中默认禁用了休眠。
| 归档时间: |
|
| 查看次数: |
26399 次 |
| 最近记录: |