ubuntu 系統在播放視頻時,一段時間後黑屏

來源:互聯網
上載者:User

標籤:ubuntu 休眠黑屏問題

  在網上查閱了相關的資料,有下面幾種方法: 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-purgesudo 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



References:

1、http://shallowsky.com/linux/x-screen-blanking.html

2、http://www.doctort.org/adam/nerd-notes/disabling-screen-blanking-in-xorg.html

3、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


   

ubuntu 系統在播放視頻時,一段時間後黑屏

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.