玩客云armbian动态调频降温
- 安装
apt install cpufrequtils - 查看是否支持ondemand
cpufreq-infocat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors- powersave 是无论如何都只会保持最低频率的所谓“省电”模式;
- userspace 是自定义频率时的模式,这个是当你设定特定频率时自动转变的;
- ondemand 默认模式。一有cpu计算量的任务,就会立即达到最大频率运行,等执行完毕就立即回到最低频率;
- conservative 保守模式,会自动在频率上下限调整,和ondemand的区别在于它会按需分配频率,而不是一味追求最高频率;
- performance 只注重效率,无论如何一直保持以最大频率运行。
- schedutil 基于调度程序调整 CPU 频率。
- 如果不是调整为ondemand
cpufreq-set -g ondemand - 新建cpu-control.sh
vi /usr/sbin/cpu-control.sh
1 | |
设置权限cd /usr/sbin/sudo chmod -R 755 cpu-control.sh
- 设置服务开机自启
vi /lib/systemd/system/cpu-control.service
1 | |
systemctl daemon-reloadsystemctl enable cpu-control.servicesystemctl start cpu-control.servicesystemctl status cpu-control.service
参考https://www.right.com.cn/forum/thread-6728637-1-1.html
推荐armbian版本https://www.right.com.cn/forum/forum.php?mod=viewthread&tid=4103842
玩客云armbian动态调频降温
https://hexo.psorai.eu.org/2023/10/17/玩客云armbian动态调频降温/