IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    [原]ubuntu 系统在播放视频时,一段时间后黑屏

    jsh13417发表于 2014-09-02 11:14:44
    love 0
    在网上查阅了相关的资料,有下面几种方法: 1、setterm -blank 0 这种方法在这篇博客中偶详细的描述,但是在实际操作中并未生效。 Linux LCD 10分钟黑屏,十分钟黑屏,LCD自动关闭,LCD黑屏 问题 2、安装 2.6.2程序防止系统进入黑屏 这个方法没有尝试,这个必须在gnome环境下才使用,但是借助这种思路找到第三种方法 安装 Caffeine方法如下: 安装方法: sudo add-apt-repository ppa:caffeine-developers/ppa sudo apt-get update sudo apt-get install caffeine 卸载caffeine命令:   sudo apt-get remove caffeine   移除PPA:   sudo apt-get install ppa-purge sudo ppa-purge ppa:caffeine-developers/ppa 3、Disable screensaver in ubuntu Solution 1:Edit /etc/X11/xorg.conf file using the following commandsudo vi /etc/X11/xorg.conf Section "Monitor" Identifier "Generic Monitor" Option "DPMS" EndSectionand add the following linesSection “ServerFlags”#other options can go hereOption “BlankTime” “0″Option “StandbyTime” “0″Option “SuspendTime” “0″Option “OffTime” “0″EndSectionSave and exit the file Solution 2Edit /etc/X11/xorg.conf file using the following commandsudo vi /etc/X11/xorg.confThis effectively disables power management on your monitor SettingsSection “Monitor”#other options can go hereOption “DPMS” “false”EndSectionSave and exit the file and restart your machine Solution 3gconftool-2 --set /apps/gnome-screensaver/idle_activation_enabled --type=bool falsegconftool-2 --set /apps/gnome-power-manager/ac_sleep_display --type=int 0Solution 4gnome-screensaver-command –inhibit Solution 5gnome-screensaver-comand –pokeSolution 6xset s offxset -dpmsSolution 7xset dpms 0 0 60#60 is the secondsReferences:1、http://shallowsky.com/linux/x-screen-blanking.html2、http://www.doctort.org/adam/nerd-notes/disabling-screen-blanking-in-xorg.html3、http://www.linuxquestions.org/questions/linux-general-1/how-to-disable-screensaver-and-monitor-suspend-492027/4、http://tldp.org/HOWTO/Battery-Powered/displaytypes.html


沪ICP备19023445号-2号
友情链接