How to keep the screen always on

From LCD wiki
Jump to: navigation, search


语言选择

Languages

➤中文
➤EN


Question :

How to keep the screen always on?


Solution :

The screen saver can be turned off with the following Settings. Open lightdm.conf

sudo nano /etc/lightdm/lightdm.conf 

Find the following code

#xserver-command=X

Be revised as

xserver-command=X -s 0 -dpms 


Take effect after reboot

sudo reboot 




PS:The user can also set the HDMI interface screen to close and open with the following command

Close:

vcgencmd display_power 0  

Open:

vcgencmd display_power 1