linux控制台命令
How to manage Linux console screen by commands?
如何通过命令管理Linux控制台屏幕?
When the screen will be blanked?
屏幕何时会变黑?
Put the screen into powerdown mode or power off the screen?
将屏幕置于关机模式还是关闭屏幕电源?
2 tools are useful for managing the console screen on Linux:
有2种工具可用于在Linux上管理控制台屏幕:
setterm – set terminal attributes.
vbetool – run real-mode video BIOS code to alter hardware state.
setterm –设置终端属性。
vbetool –运行实模式视频 BIOS代码以更改硬件状态。
When the screen will be blanked?
屏幕何时会变黑?
setterm -blank
setterm -blank
-blank [0-60|force|poke] (virtual consoles only)
-空白[0-60 | force | poke](仅限虚拟控制台)
Sets the interval of inactivity, in minutes, after which the screen will be automatically blanked (using APM if available). Without an argument, gets the blank status (returns which vt was blanked or zero for unblanked vt). The force option keeps screen blank even if a key is pressed.
设置不活动的时间间隔(以分钟为单位),在此间隔之后,屏幕将自动变黑(如果可用,则使用APM)。 不带参数的情况下,获取空白状态(返回空白的vt或返回空白的vt零)。 即使按下一个键,强制选项也会使屏幕保持空白。
The poke option unblank the screen.
戳选项将使屏幕空白。
Put the screen into powerdown mode or power off the screen?
将屏幕置于关机模式还是关闭屏幕电源?
vbetool dpms off
vbetool dpms off
dpms
dpms
vbetool will use the VESA 0x4f10 extensions to alter the power management state of your screen. “On”, “off”, “standby”, “suspend” and “reduced” are acceptable further options and determine which state will be activated.
vbetool将使用VESA 0x4f10扩展名来更改屏幕的电源管理状态。 “打开”,“关闭”,“待机”,“挂起”和“减少”是可接受的其他选项,并确定将激活哪个状态。
翻译自: https://www.systutorials.com/manage-linux-console-screen-by-commands/
linux控制台命令