Manage Linux console screen by commands?

How to manage Linux console screen by commands?

  • When the screen will be blanked?

  • Put the screen into powerdown mode or power off the screen?

asked Sep 2, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

2 tools are useful for managing the console screen on Linux:

setterm - set terminal attributes.
vbetool - run real-mode video BIOS code to alter hardware state.

When the screen will be blanked?

setterm -blank

-blank [0-60|force|poke] (virtual consoles only)

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.

The poke option unblank the screen.

Put the screen into powerdown mode or power off the screen?

vbetool dpms off

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.

answered Sep 2, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...