加入收藏 | 设为首页 | 会员中心 | 我要投稿 佛山站长网 (https://www.0757zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

ubuntu系统播放视频时黑屏的问题

发布时间:2016-10-11 15:10:39 所属栏目:Linux 来源:网络整理
导读:在网上查阅了相关的资料,有下面几种方法: 1、setterm -blank 0 这种方法在这篇博客中偶详细的描述,但是在实际操作中并未生效。 Linux LCD 10分钟黑屏,十分

在网上查阅了相关的资料,有下面几种方法: 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 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

本栏目更多精彩内容:http://www.bianceng.cn/OS/Linux/

(编辑:佛山站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读