2013年2月25日 星期一

[RPi] Disable Screen Blanking in X Window

如果想要把Raspberry Pi當作展示機, 那Raspbian預設10分鐘沒動作畫面就會暗掉就蠻令人困擾的, 通常修改xinitrc就會有作用
$ sudo vi -p ~/.xinitrc /etc/X11/xinit/xinitrc
xset s off         # don't activate screensaver
xset -dpms         # disable DPMS (Energy Star) features.
xset s noblank     # don't blank the video device
exec /etc/alternatives/x-session-manager      # start lxde
如果再不行的話就要再lightdm.conf新增一個屬性了
$ sudo vi /etc/lightdm/lightdm.conf
[SeatDefaults]
xserver-command=X -s 0 -dpms

reference:
* Disable screen blanking in X-Windows on Raspbian
* How do I prevent the screen from going blank?