How to prevent the monitor from sleeping in Linux

王林
Release: 2019-12-25 16:16:59
Original
6458 people have browsed it

How to prevent the monitor from sleeping in Linux

Method 1: Command line method

Linux method to prevent the monitor from sleeping:

# setterm -blank 0 # setterm -blank n (n为等待时间)
Copy after login

Free video tutorial recommendation:linux video tutorial

Method 2: Edit the configuration file

Editxorg.conf, add the following options to closexscreen saverdirectly:

Section “ServerFlags” Option “BlankTime” “0″ #关闭黑屏 Option “StandbyTime” “0″ #关闭待机功能 Option “SuspendTime” “0″ #关闭睡眠功能 Option “OffTime” “0″ EndSection
Copy after login

Restart after modification and it will take effect.

Editing the xorg.conf file has the same effect as using the xset command. You can use xset -q to view the settings and current configuration.

# xset -q //查看设置和当前配置 # xset -dpms //Energy Star features off # xset +dpms //Energy Star features on
Copy after login

Recommended related articles and tutorials:linux tutorial

The above is the detailed content of How to prevent the monitor from sleeping in Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!