LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1060|回复: 10

桌面每十分钟就自动黑屏,设置了还是不行,求解决方法

[复制链接]
发表于 2011-1-22 11:57:58 | 显示全部楼层 |阅读模式
我的xfce4桌面现在只要不动鼠标,过10分钟就会自动黑屏,点击任何键还能恢复过来,可是我在屏保设置里设为270分钟后再黑屏,可是还是过10分钟自动黑屏,升级xfce4以前还没有这种情况,使用gnome桌面也出现了这种情况,不知道是什么原因,求高手们指点~
发表于 2011-1-22 12:51:12 | 显示全部楼层
I think you should try to delete some config files in you HOME.

Sometimes same config files may produce different effects in different versions because they are interpreted by different version interpreters.

So, the interpreted results may not be same exactly as you and developers expected.

I mean you may encounter a potential bug.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-22 13:00:47 | 显示全部楼层
Post by fender010;2126377
I think you should try to delete some config files in you HOME.

Sometimes same config files may produce different effects in different versions because they are interpreted by different version interpreters.

So, the interpreted results may not be same exactly as you and developers expected.

I mean you may encounter a potential bug.


你说的也有可能,我试着删除一些文件吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-22 16:33:50 | 显示全部楼层
不知道经常黑屏会不会对显示器有损伤?
回复 支持 反对

使用道具 举报

发表于 2011-1-22 18:11:35 | 显示全部楼层

  • Xorg有一些默认设置,可以看看man xorg.conf
    1. SERVERFLAGS SECTION
    2. ...
    3. # 默认10分钟黑屏
    4.        Option "BlankTime"  "time"
    5.               sets the inactivity timeout for the blank phase of the screensaver.  time is in minutes.  This
    6.               is equivalent to the Xorg server's -s flag, and the value can  be  changed  at  run-time  with
    7.               xset(1).  Default: 10 minutes.
    8. # 默认10分钟Standby
    9.        Option "StandbyTime"  "time"
    10.               sets  the  inactivity timeout for the standby phase of DPMS mode.  time is in minutes, and the
    11.               value can be changed at run-time with xset(1).  Default: 10 minutes.  This  is  only  suitable
    12.               for  VESA DPMS compatible monitors, and may not be supported by all video drivers.  It is only
    13.               enabled for screens that have the "DPMS" option set (see the MONITOR section below).
    14. # 默认10分钟Suspend
    15.        Option "SuspendTime"  "time"
    16.               sets the inactivity timeout for the suspend phase of DPMS mode.  time is in minutes,  and  the
    17.               value  can  be  changed at run-time with xset(1).  Default: 10 minutes.  This is only suitable
    18.               for VESA DPMS compatible monitors, and may not be supported by all video drivers.  It is  only
    19.               enabled for screens that have the "DPMS" option set (see the MONITOR section below).
    20. # 默认10分钟关闭显示器
    21.        Option "OffTime"  "time"
    22.               sets the inactivity timeout for the off phase of DPMS mode.  time is in minutes, and the value
    23.               can be changed at run-time with xset(1).  Default: 10 minutes.  This is only suitable for VESA
    24.               DPMS  compatible  monitors, and may not be supported by all video drivers.  It is only enabled
    25.               for screens that have the "DPMS" option set (see the MONITOR section below).
    复制代码
    (默认DPMS是开启的。)
    所以默认Xorg在空闲10分钟后会关闭显示器。如果要修改这个间隔,可以修改xorg.conf以覆盖这些默认值。
    也可以参见Gentoo Power Management Guide的LCD Power Management一节:http://www.gentoo.org/doc/en/power-management-guide.xml#doc_chap4
  • 没听说过自动关闭显示屏会损坏显示器的...
回复 支持 反对

使用道具 举报

发表于 2011-1-22 19:05:56 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-23 14:39:08 | 显示全部楼层
试试楼上两位的方法,都试了,仍然不行,不管是在.xinitrc还是直接在命令下使用xset命令~
回复 支持 反对

使用道具 举报

发表于 2011-1-23 18:54:40 | 显示全部楼层
Post by hongri2010;2126463
试试楼上两位的方法,都试了,仍然不行,不管是在.xinitrc还是直接在命令下使用xset命令~


嗯,试过修改/etc/X11/xorg.conf了吗?试试加入以下内容:

  1. Section "ServerFlags"
  2.   Option  "BlankTime"  "30"
  3.   Option  "StandbyTime"  "30"
  4.   Option  "SuspendTime"  "30"
  5.   Option  "OffTime"  "30"
  6. EndSection
复制代码

(我这里的xorg-server是1.9.3.901-r1,较旧的版本选项可能不同。)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-1-23 22:20:21 | 显示全部楼层
Post by RichardGv;2126485
嗯,试过修改/etc/X11/xorg.conf了吗?试试加入以下内容:

  1. Section "ServerFlags"
  2.   Option  "BlankTime"  "30"
  3.   Option  "StandbyTime"  "30"
  4.   Option  "SuspendTime"  "30"
  5.   Option  "OffTime"  "30"
  6. EndSection
复制代码

(我这里的xorg-server是1.9.3.901-r1,较旧的版本选项可能不同。)


我的X-windows不使用xorg.conf文件,/etc/X11下面也没有xorg.conf文件
回复 支持 反对

使用道具 举报

发表于 2011-1-24 01:22:42 | 显示全部楼层
Post by hongri2010;2126507
我的X-windows不使用xorg.conf文件,/etc/X11下面也没有xorg.conf文件

可以自己加啊。自动黑屏,就是因为xorg默认的能源管理设置。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表