设置电脑休眠
2022-09-03 本文已影响0人
xieyan0811
不允许休眠
$ systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
查看状态
$ systemctl status sleep.target suspend.target hibernate.target hybrid-sleep.target
允许休眠
$ systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
参考:
https://zhuanlan.zhihu.com/p/468870436
https://blog.csdn.net/weixin_44120025/article/details/123184263