Photonicat 下调CPU频率

来自光影猫知识库
跳到导航 跳到搜索

默认CPU有自动管理电压以及频率功能。但在极端需要的时候,可以开机省电模式通过减少CPU性能来换取降低功耗,可以通过:

Powersave 模式

命令行输入:

#! /bin/bash
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "powersave" > $file; done

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

CPU 关闭部分核心

命令行输入:

echo 0 > /sys/devices/system/cpu/cpu1/online
echo 0 > /sys/devices/system/cpu/cpu2/online
echo 0 > /sys/devices/system/cpu/cpu3/online