在目前的新版本的树莓派镜像中2019-04-08-raspbian-stretch.img,需要使用下面的方法禁止屏幕休眠:
sudo vi /etc/lightdm/lightdm.conf
取消其中的注释
#xserver-command=X
并修改为
xserver-command=X -s 0 -dpms
-s # –设置屏幕保护不启用
dpms 关闭电源节能管理
重启树莓派
sudo reboot
在目前的新版本的树莓派镜像中2019-04-08-raspbian-stretch.img,需要使用下面的方法禁止屏幕休眠:
sudo vi /etc/lightdm/lightdm.conf
取消其中的注释
#xserver-command=X
并修改为
xserver-command=X -s 0 -dpms
-s # –设置屏幕保护不启用
dpms 关闭电源节能管理
重启树莓派
sudo reboot