Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2094861
  • 博文数量: 229
  • 博客积分: 7217
  • 博客等级: 上校
  • 技术积分: 3224
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-19 17:23
个人简介

个人主页https://xugaoxiang.com,微信公众号: Dev_Club 或者搜索 程序员Club

文章分类

全部博文(229)

文章存档

2017年(1)

2016年(20)

2015年(23)

2013年(1)

2012年(23)

2011年(68)

2010年(62)

2009年(31)

分类: LINUX

2010-02-21 10:55:15

Solution 1:

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf


      Section "Monitor"

                    Identifier    "Generic Monitor"

                    Option        "DPMS"

      EndSection


and add the following lines


Section “ServerFlags”

#other options can go here

Option “BlankTime” “0″

Option “StandbyTime” “0″

Option “SuspendTime” “0″

Option “OffTime” “0″

EndSection

Save and exit the file

 

Solution 2

Edit /etc/X11/xorg.conf file using the following command

sudo vi /etc/X11/xorg.conf

This effectively disables power management on your monitor Settings

Section “Monitor”

#other options can go here

Option “DPMS” “false”

EndSection

Save and exit the file and restart your machine

 

Solution 3

gconftool-2 --set  /apps/gnome-screensaver/idle_activation_enabled --type=bool  false

gconftool-2 --set /apps/gnome-power-manager/ac_sleep_display --type=int 0


Solution 4

gnome-screensaver-command –inhibit

 

Solution 5

gnome-screensaver-comand –poke


Solution 6

xset s off

xset -dpms


Solution 7

xset dpms 0 0 60

#60 is the seconds



References:

1、

2、

3、

4、


djstava

阅读(4059) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~