如何在 Ubuntu 11.04 中停用螢幕保護程式和鎖定螢幕?

如何在 Ubuntu 11.04 中停用螢幕保護程式和鎖定螢幕?

在製作 Kiosk 應用程式時,每次出現鎖定畫面和螢幕保護程式時,都會出現許多彈出視窗+電池或更新,這非常令人不安。

在哪裡以及如何透過設定檔或終端完全停用鎖定螢幕、螢幕保護程式和警報?

我嘗試過以下但沒有任何效果:

  1. 失敗的

    vim /etc/default/acpi-support
    ;LOCK_SCREEN=true
    
  2. 失敗的

    $ gconftool-2 --type boolean -s /apps/gnome-power-manager/lock/suspend false
    $ gconftool-2 --type boolean -s /apps/gnome-power-manager/lock/blank_screen false
    $ gconftool-2 --type boolean -s /apps/gnome-power-manager/lock/hibernate false
    $ sudo init 6
    
  3. 失敗(但可以停用鎖定提示)

    gconftool --set --type=bool /apps/gnome-screensaver/idle_activation_enabled False
    gconftool --unset /apps/gnome-screensaver/themes
    
  4. 失敗:使其永久化:

sudo service gdm stop sudo X -configure vim /home/[使用者名稱]/xorg.conf.new

部分「螢幕」識別碼「Screen0」裝置「Card0」監視器「Monitor0」DPMS「false」<<<<<<<< 新增此行SubSection「顯示」視窗0 0 深度1 EndSubSection SubSection「顯示」視窗0 0 深度4 EndSubSection SubSection「顯示」視窗 0 0 深度 8 EndSubSection SubSection「顯示」視窗 0 0 深度 15 EndSubSection SubSection「顯示」視窗 0 0 深度 16 EndSubSection SubSection「顯示」顯示器「

我嘗試了以下建議的命令Ubuntu論壇但整個系統凍結了:

sudo pm-suspend

跟進: https://askubuntu.com/questions/37761/xorg-conf-in-ubuntu-natty-11-04

http://www.x.org/releases/current/doc/man/man5/xorg.conf.5.xhtml

答案1

關閉螢幕保護程式後,我發現是電源管理器不斷使螢幕進入睡眠狀態。對我xset -dpms來說,我發現以下工作http://v2kblog.blogspot.com/2008/08/disabling-monitor-power-saver.html它包括永久設置它的步驟。

答案2

在 Ubuntu 14.04 上停用鎖定似乎對我有用

DISPLAY=:0 sudo gsettings set org.gnome.desktop.screensaver lock-enabled false

相關內容