Photonicat 下调CPU频率

From Photonicat Wiki
Jump to navigation Jump to search

默认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