Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

How to keep the screen always on: Difference between revisions

From LCD wiki
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>== 可以通过如下设置。..."
 
Liang (talk | contribs)
No edit summary
Line 1: Line 1:
== <font color="blue">Question :</font>==
== <font color="blue">Question :</font>==
Some customers want to display it without screen saver.
How to keep the screen always on?




== <font color="blue">Solution :</font>==
== <font color="blue">Solution :</font>==
可以通过如下设置。将屏幕保护功能关闭。
The screen saver can be turned off with the following Settings.
打开 lightdm.conf
Open lightdm.conf
<pre>
<pre>
sudo nano /etc/lightdm/lightdm.conf  
sudo nano /etc/lightdm/lightdm.conf  
</pre>
</pre>
找到下面的代码
Find the following code
<pre>
<pre>
#xserver-command=X
#xserver-command=X
</pre>
</pre>
修改为
Be revised as
<pre>
<pre>
xserver-command=X -s 0 -dpms  
xserver-command=X -s 0 -dpms  
</pre>
</pre>
(-s 0  设置屏幕保护不启用, -dpms 关闭电源节能管理)


重新启动之后生效
 
Take effect after reboot


<pre>
<pre>
Line 28: Line 28:
<br>
<br>
<br>
<br>
PS:用户还可以通过以下命令设置HDMI接口屏幕的关闭和开启
PS:The user can also set the HDMI interface screen to close and open with the following command


关闭:
Close:


<pre>
<pre>
vcgencmd display_power 0   
vcgencmd display_power 0   
</pre>
</pre>
开启:
Open:


<pre>
<pre>
vcgencmd display_power 1  
vcgencmd display_power 1  
</pre>
</pre>

Revision as of 15:11, 4 June 2020

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