版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zz531987464/article/details/83218000
在 /etc/profile.d 路径下新建一个文件,如Screen.sh,并将下面两条命令写入该文件,即可以实现永久禁用
xsetdpms 0 0 0
xsets off
其他的一些xsets设置如下表所示:
指令 | 说明 |
---|---|
xsets off | 禁用屏幕保护 |
xsets 3600 3600 | 设置空闲时间为1小时 |
xset -dpms | 关闭 DPMS |
xset s off -dpms | 禁用 DPMS 并阻止屏幕进入空闲 |
xset dpms force off | 立即关闭屏幕 |
xset dpms force standby | 强制屏幕进入待命状态 |
xset dpms force suspend | 强制屏幕进入暂停状态 |