1、查看休眠状态
systemctl status sleep.target
2、设置禁止休眠
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
3、再查看
systemctl status sleep.target
不会再出现自动休眠状态
1、查看休眠状态
systemctl status sleep.target
2、设置禁止休眠
systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
3、再查看
systemctl status sleep.target
不会再出现自动休眠状态