目录
1 动机
我要将 饿啊人制作成 noah-mp 的区域运行强迫,但是跑的慢,一晚上两天。后来发现是因为电脑自动 supend 了。Ubuntu 在电源那里最多只能设置 2 小时的防止休眠,2小时候又自动休眠,严重影响进度。因此从网上找了教程,做成笔记。
2 禁用休眠
# 禁用休眠
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
# 查看 休眠、挂起状态
sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
返回结果:
3 解除休眠
# 解除休眠
sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
# 查看 休眠、挂起状态
sudo systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target