为了说明情况,我在一台旧笔记本电脑上安装了 ubuntu-server,只是为了保存一些文件和备份。
我尝试进入省电模式以减少电量消耗。
我的 scaling_governator 输出是:
echo $(cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor): schedutil
我试过了:
for x in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo powersave > $x; done
结果:
-bash:/sys/devices/system/cpu/cpu(0,1,2,3,4,5,6,7)/cpufreq/scaling_governor:权限被拒绝
尝试过:
sudo sh -c "for x in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo powersave > $x; done
然后它“工作了”,但是当我检查时它又显示 schedutil。什么都没改变。
有什么建议吗?