Arch 有时不会暂停

Arch 有时不会暂停

有时,当盖子关闭时,计算机不会自动挂起。发生这种情况时,重新关闭盖子不会使其暂停,直到下次重新启动。重新启动后,自动挂起再次起作用。一段时间后,它再次停止工作,我无法确定是什么将状态从可挂起更改为不可挂起。

在不可挂起状态下,“sudo pm-suspend”和“sudo systemctl suspend”不会使其保持挂起状态。

我运行的是带有 Arch 64 位的 Lenovo X220。

我应该做什么/尝试让它按预期工作?

编辑:添加了journalctl输出:

日志ctl-xn

-- Logs begin at Sun 2013-08-25 11:05:23 CEST, end at Tue 2014-03-04 20:32:31 CET. --
Mar 04 20:32:06 x220 systemd[1]: systemd-suspend.service: main process exited, code=exited, status=1/FAILURE
Mar 04 20:32:06 x220 systemd[1]: Failed to start Suspend.
-- Subject: Unit systemd-suspend.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit systemd-suspend.service has failed.
-- 
-- The result is failed.
Mar 04 20:32:06 x220 systemd[1]: Dependency failed for Suspend.
-- Subject: Unit suspend.target has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit suspend.target has failed.
-- 
-- The result is dependency.
Mar 04 20:32:06 x220 systemd[1]: Service sleep.target is not needed anymore. Stopping.
Mar 04 20:32:06 x220 systemd[1]: Unit systemd-suspend.service entered failed state.
Mar 04 20:32:06 x220 systemd[1]: Stopping Sleep.
-- Subject: Unit sleep.target has begun shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit sleep.target has begun shutting down.
Mar 04 20:32:06 x220 systemd[1]: Stopped target Sleep.
-- Subject: Unit sleep.target has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/9d1aaa27d60140bd96365438aad20286
-- 
-- Unit sleep.target has finished shutting down.
Mar 04 20:32:06 x220 sudo[21989]: pam_unix(sudo:session): session closed for user root
Mar 04 20:32:06 x220 kernel: video LNXVIDEO:00: Restoring backlight state

答案1

我的会暂停但立即恢复。对我来说,解决方法是禁用 ( d) LAN 唤醒:

$ sudo ethtool -s eno1 wol d
$ sudo ethtool eno1 | grep Wake-on
    Supports Wake-on: pumbg
    Wake-on: d

相关内容