Linux display power management

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
2
3
setterm -blank [0-60|force|poke]
setterm -powersave [on|vsync|hsync|powerdown|off]
setterm -powerdown [0-60]

setterm -blank 0 -powerdown 0
No protect mode , no powerdown close display