How to keep the screen always on

From LCD wiki
Revision as of 15:08, 4 June 2020 by Liang (talk | contribs) (Created page with "== <font color="blue">Question :</font>== Some customers want to display it without screen saver. == <font color="blue">Solution :</font>== 可以通过如下设置。...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Question :

Some customers want to display it without screen saver.


Solution :

可以通过如下设置。将屏幕保护功能关闭。 打开 lightdm.conf

sudo nano /etc/lightdm/lightdm.conf 

找到下面的代码

#xserver-command=X

修改为

xserver-command=X -s 0 -dpms 

(-s 0 设置屏幕保护不启用, -dpms 关闭电源节能管理)

重新启动之后生效

sudo reboot 




PS:用户还可以通过以下命令设置HDMI接口屏幕的关闭和开启

关闭:

vcgencmd display_power 0  

开启:

vcgencmd display_power 1