阻止笔记本休眠
ubuntu 20
- 关闭休眠管理:
systemctl stop sleep.target - 禁止盒盖休眠:
- 编辑
/etc/systemd/logind.conf - 找到
HandleLidSwitch行,设置为ignore
- 编辑
win
- 关闭盒盖休眠:控制面板 - 电源选项 - 选择关闭盖子的功能,设置为“不采取任何操作”
- 安装 Power toys,使用Awake 功能阻止休眠
systemctl stop sleep.target/etc/systemd/logind.confHandleLidSwitch 行,设置为 ignore