关于禁止lightdm后如何禁用电源管理的问题
Tofloor
poster avatar
wydon
deepin
2012-12-06 01:01
Author
我有一图形界面程序,通过禁用lightdm后,由xinit带动运行,替换了原来的桌面,运行正常,但运行一段时间后监视器关闭了,这应该是电源管理上的设置,请问各位大虾,如何才能让显示器常亮或禁用电源管理呢,谢谢各位!
Reply Favorite View the author
All Replies
zhaixiang
deepin
2012-12-06 21:40
#1
*让显示器常亮
**增大sleep-display-ac、sleep-display-battery的时间
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac 2147483647
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 2147483647
**改变inactive的处理方式,不休眠、不挂起
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type nothing
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type nothing
**可以理解成亮度为100%
gsettings set org.gnome.settings-daemon.plugins.power idle-brightness 100

*禁用电源管理
gsettings set org.gnome.settings-daemon.plugins.power active false
Reply View the author
wydon
deepin
2012-12-11 07:33
#2
谢谢,帮我大忙了!
Reply View the author
zhaixiang
deepin
2012-12-12 23:03
#3
别客气
Reply View the author
wydon
deepin
2012-12-19 01:32
#4
终于解决困惑了!需要在 /etc/X11下增加xorg.conf文件
在xorg.config文件的ServerLayout段中增加以下内容:
        Option        "BlankTime"        "0"        #Blank the screen
        Option        "StandbyTime"        "0"        #Turn off       
        Option        "SuspendTime"        "0"        #Full suspend
        Option        "OffTime"                "0"        #Turn off
重起就OK了
关于如何自动生成xorg.conf文件,请参照man Xorg
Reply View the author
zhaixiang
deepin
2012-12-19 17:40
#5
现在都不流行在生成xorg.conf了吧? http://www.gentoo.org/doc/en/xorg-config.xml

有xdm、gdm http://www.gentoo.org/doc/en/gnome-config.xml
Reply View the author