2011年11月12日 星期六

監控 CPU 溫度與調整頻率

監控溫度
# apt-get install lm-sensors
# sensors-detect
都選YES
# reboot
# sensors



調整 CPU 頻率
# lsmod | grep "acpi_cpufreq"

* Intel i3, i5, i7 CPU need disable intel_pstate from boot
intel_pstate=disable

// 取得可用頻率
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
or
# cpufreq-info | grep 'available frequency'

==========================================
#!/bin/sh

for i in `cat /proc/cpuinfo | grep processor | awk '{print $3}'`;
do
    cpufreq-set -c $i -f `cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
done
==========================================





References :
HowTo/CpuFrequencyScaling - Debian Wiki

沒有留言:

張貼留言