装了个ubuntu touch ,发现息屏状态下程序跑起来很慢,点亮就快,怀疑是节省能源的逻辑在降低CPU 的频率,所以希望点亮屏幕再执行脚本,执行完再关闭
powerd-cli display
帮助文档:
Usage: powerd-cli <command>
Available commands:
display [on]: keep display on until program is terminated
active: inhibit device suspend until program is terminated
settings inactivity <power_action> <power_supply> <timeout>
settings lid <power_action> <power-supply>
settings critical-power <power_action>
<power_action>: none, display-off, suspend, power-off
<power_supply>: battery, line-power