After the centos system is idle for a period of time (the default value is 5 minutes), it starts the screen saver (the default screen saver is black) and requires a new password to return to the original desktop.
Set Screen Protection: System-> preferences-> screensaver.
If you need to cancel the screen protection lock function, remove the check box before the lock screen when screensaver is active.
-------)[Linux[Email protected]LinuxZGF ~] $ Setterm-blank 0: disable screen saver. After this command is executed, it will not affect viewing. [[Email protected] ~] $ Setterm-blank 1 sets screen saver to 1 minute. If you want to modify this setting more, there are several useful [email protected] ~] $ Setterm-cursor on | off close, open the cursor if the system does not have setterm, command, first copy it in a more comprehensive system, and the dependent Library (3) if LDD setterm does not work, the system will report the 'linux 'error, copy/usr/share/terminfo/L/linu * of the entire system to use setterm. Generally, this problem does not exist, this is from csdn. I have excerpted the example ---------------------------------------------------------------------------------------