Supose my Qt应用程序在后台运行,我希望在屏幕保护程序处于活动状态时显示操作系统,或者显示器为空白以节省能源。
在Linux下有没有办法做到这一点?具体来说,我想在Raspbian下使用Raspberry Pi,但使用Qt的跨平台方法会更好。
答案 0 :(得分:2)
我不确定你是否确定它一开始就没有进入睡眠状态,但这就是我用的:
sudo leafpad /etc/kbd/config
change BLANK_TIME=0
change POWERDOWN_TIME=0
sudo leafpad /etc/xdg/lxsession/LXDE-pi/autostart
Add line: @xset s noblank
Add line: @xset s off
Add line: @xset -dpms
编辑刚刚意识到这个问题有多久了。我希望我结束了你20个月的等待和页面更新。