使用 pm-hibernate 而不是 systemctl hibernate

使用 pm-hibernate 而不是 systemctl hibernate

我按照 archwiki 的 wiki 页面在我的笔记本电脑上设置了休眠模式,如果我调用 ,它就可以正常工作,pm-hibernate但是如果我调用 ,它只会锁定屏幕,重新连接到 wifi,并清除我的剪贴板systemctl hibernate

我尝试编辑休眠服务(sudo systemctl edit systemd-hibernate.service)以

[Unit]
Description=Hibernate
Documentation=man:systemd-suspend.service(8)
DefaultDependencies=no

[Service]
Type=oneshot
ExecStart=/usr/sbin/pm-hibernate

并重新加载守护进程(我甚至尝试过重新启动),但这也不起作用。此外,中没有任何内容journalctl -b -u systemd-hibernate.service

我已经研究了三天了。任何帮助我都会很感激。即使是像监控日志文件(通过脚本)并在pm-hibernate记录某些内容时调用这样的愚蠢想法。

相关内容