I'm trying to throttle my CPU. I got a centrino thinkpad t40 and i'm using kernel 2.4.26.
I patched it so I can load the cpufreq drivers w/ the governors
but when I tried running cpufreq it doesnt seem to be throttling my freq when i checked under /proc/cpuinfo
i tried running this at the prompt: cpufreqd -f /usr/local/etc/cpufreqd.conf
and I even tried calling this script in my rc.local
If anyone can help me out that would be great.
Code:
#!/bin/sh
# Start/stop/restart cpufreqd.
FREQD_PATH="/usr/local/sbin/"
CONFIG_FILE="/usr/local/etc/cpufreqd.conf"
# Start cpufreqd:
cpufreqd_start() {
if [ -x $FREQD_PATH/cpufreqd ]; then
echo "Starting cpufreqd daemon with config file: $CONFIG_FILE"
$FREQD_PATH/cpufreqd -f $CONFIG_FILE
fi
}
# Stop cpufreqd:
cpufreqd_stop() {
killall cpufreqd
}
# Restart cpufreqd:
cpufreqd_restart() {
cpufreqd_stop
sleep 1
cpufreqd_start
}
case "$1" in
'start')
cpufreqd_start
;;
'stop')
cpufreqd_stop
;;
'restart')
cpufreqd_restart
;;
*)
echo "usage $0 start|stop|restart"
esac