我是Linux世界的新手,使用Ubuntu14.04LTS版本。
我的问题是如何使“暂停”选项发挥作用?
每当我从笔记本上点击这个选项时,屏幕开始变黑,然后我的登录屏幕在2-3秒后出现。
在那之后什么都不会发生。
发布于 2015-08-20 13:16:01
打开命令行(终端)并输入以下命令来编辑配置文件:
sudo -H gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla复制并粘贴下面的行到文件中并保存它。
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:
Action=org.freedesktop.login1.hibernate
ResultActive=yes重新启动后,它将工作。(我也有相同的bug,但在我的例子中,hibernate也是如此)
发布于 2015-08-20 15:14:43
我不知道到底发生了什么。我按照这个Ubuntu论坛线程做了一些修改。
然后我检查了挂起日志,它显示:
Running hook /etc/pm/sleep.d/20_custom-ehci_hcd suspend suspend:
/etc/pm/sleep.d/20_custom-ehci_hcd: 21: /etc/pm/sleep.d/20_custom-ehci_hcd: cannot create /sys/bus/pci/drivers/ehci_hcd/unbind: Directory nonexistent
/etc/pm/sleep.d/20_custom-ehci_hcd: 21: /etc/pm/sleep.d/20_custom-ehci_hcd: cannot create /sys/bus/pci/drivers/ehci_hcd/unbind: Directory nonexistent
/etc/pm/sleep.d/20_custom-ehci_hcd suspend suspend: Returned exit code 2.
Thu Aug 20 19:59:44 IST 2015: Inhibit found, will not perform suspend
Thu Aug 20 19:59:44 IST 2015: Running hooks for resume
Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.然后我删除了/etc/pm/sleep.d/20_custom-ehci_hcd。现在它工作得很好。
请有人解释一下这种行为的原因。
https://askubuntu.com/questions/663733
复制相似问题