1.屏保(好像这个就可以了)
参考自:
http://blog.chinaunix.net/uid-12326395-id-80682.html
apt install xscreensaver
2.禁止xfce4黑屏(不知道有没有用)
参考自:
https://www.cnblogs.com/jameszh/p/4455405.html
vi /etc/X11/xorg.conf
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
注:你也可以将后面的0设置为你所希望的分钟数。
如果还是不起作用,还可以另外增加Section “Monitor”,反正我没做这一步已经起作用了。内容如下:
Section "Monitor"
Option "DPMS" "false"
EndSection
3.解决WSL Ubuntu20.4+xfce4 图形界面一段时间后黑屏(不知道有没有用)
参考自:
https://blog.csdn.net/zhang19990111/article/details/112615798
进入图形界面,点击右上角Applications--->Settings--->Light Locker Settings。
设置Automatically lock the session为Never。