注意:部分文章发布时间较长,可能存在未知因素,购买时建议在本站搜索商家名称,先充分了解商家动态。
交流:唯一投稿邮箱:hostvps@88.com。
网友 好鸭 说:
*帖最后由 好鸭 于 2022-8-1 09:45 编辑
有些桌面的电源**可能会触发&*uot;休眠&*uot;,需要关掉,否则会导致失联
参考的这个https://blog.**dn.net/weixin_45980458/article/details/122952607
1、查看休眠状态
******ctl status sleep.target
2、设置禁止休眠
******ctl mask sleep.target suspend.target hibernate.target hyb**d-sleep.target
3、再查看
******ctl status sleep.target
不会再出现自动休眠状态
用debian装xfce+xrdp还挺舒服的,有点小卡(windows小鸡应该更卡一点点)
用来运行一些gui应用
网友 职业菜鸟 说:
装了好多了 没遇到这个情况
网友 好鸭 说:
*帖最后由 好鸭 于 2022-8-1 09:13 编辑
职业菜鸟 发表于 2022-8-1 09:08
装了好多了 没遇到这个情况
网友 ColoThor 说:
https://wiki.debian.org/Suspend
sudo ******ctl mask sleep.target suspend.target hibernate.target hyb**d-sleep.target
****** /etc/******d/sleep.conf.d/nosuspend.conf as
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHyb**dSleep=no
网友 zxxx 说:
这样就可以了吧?
**ot@debian:~# ******ctl status sleep.target
● sleep.target – Sleep
Loaded: loaded (/lib/******d/******/sleep.target; static)
Active: inactive (dead)
Do**: man:******d.special(7)
**ot@debian:~# ******ctl mask sleep.target suspend.target hibernate.target hyb**d-sleep.target
Created symlink /etc/******d/******/sleep.target → /dev/null.
Created symlink /etc/******d/******/suspend.target → /dev/null.
Created symlink /etc/******d/******/hibernate.target → /dev/null.
Created symlink /etc/******d/******/hyb**d-sleep.target → /dev/null.
**ot@debian:~# ******ctl status sleep.target
● sleep.target
Loaded: masked (Reason: Unit sleep.target is masked.)
Active: inactive (dead)
**ot@debian:~#