Gnome
/etc/profile.d
a | b |
---|---|
xset -q | 查询 |
xset s off | 禁用屏幕保护 |
xset s 3600 3600 | 设置空闲时间为1小时 |
xset -dpms | 关闭 DPMS[电源之星] |
xset +dpms | 开启 DPMS[电源之星] |
xset s off -dpms | 禁用 DPMS 并阻止屏幕进入空闲 |
xset dpms force off | 立即关闭屏幕 |
xset dpms force standby | 强制屏幕进入待命状态 |
xset dpms force suspend | 强制屏幕进入暂停状态 |
xset dpms 600 900 1200 | 三个数值分别为 Standby Suspend Off[s] |
Command line
Raspbian & Archlinux -> /etc/bash.bashrc
CentOS -> /etc/bashrc
1 | setterm -blank [0-60|force|poke] |
setterm -blank 0 -powerdown 0
No protect mode , no powerdown close display