![更改默认调控器 ubuntu-server](https://linux22.com/image/1200202/%E6%9B%B4%E6%94%B9%E9%BB%98%E8%AE%A4%E8%B0%83%E6%8E%A7%E5%99%A8%20ubuntu-server.png)
为了说明情况,我在一台旧笔记本电脑上安装了 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。什么都没改变。
有什么建议吗?