树莓派默认10分钟 进入黑屏状态,就是我们常说的suspend状态
使用xset工具设置 :
xset s off
xset dpms 0 0 0
在使用此命令的时候,可能会出现 xset : unable to open display "" 的问题 .
解决方案 :
sudo vi /etc/profile
设置环境变量
export DISPLAY=:0.0
sudo reboot
重启后,通过xset命令执行 .
设置完成 .
本文共 288 字,大约阅读时间需要 1 分钟。
树莓派默认10分钟 进入黑屏状态,就是我们常说的suspend状态
使用xset工具设置 :
xset s off
xset dpms 0 0 0
在使用此命令的时候,可能会出现 xset : unable to open display "" 的问题 .
解决方案 :
sudo vi /etc/profile
设置环境变量
export DISPLAY=:0.0
sudo reboot
重启后,通过xset命令执行 .
设置完成 .
转载于:https://my.oschina.net/menghaoqi/blog/757657