首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >挂起选项在联想Z570的Ubuntu14.04中不起作用

挂起选项在联想Z570的Ubuntu14.04中不起作用
EN

Ask Ubuntu用户
提问于 2015-08-20 11:27:30
回答 2查看 530关注 0票数 3

我是Linux世界的新手,使用Ubuntu14.04LTS版本。

我的问题是如何使“暂停”选项发挥作用?

每当我从笔记本上点击这个选项时,屏幕开始变黑,然后我的登录屏幕在2-3秒后出现。

在那之后什么都不会发生。

EN

回答 2

Ask Ubuntu用户

发布于 2015-08-20 13:16:01

打开命令行(终端)并输入以下命令来编辑配置文件:

代码语言:javascript
复制
sudo -H gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

复制并粘贴下面的行到文件中并保存它。

代码语言:javascript
复制
[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也是如此)

票数 1
EN

Ask Ubuntu用户

发布于 2015-08-20 15:14:43

我不知道到底发生了什么。我按照这个Ubuntu论坛线程做了一些修改。

然后我检查了挂起日志,它显示:

代码语言:javascript
复制
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。现在它工作得很好。

请有人解释一下这种行为的原因。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/663733

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档