what if you don't have a powersave governor? my system just has ondemand and performance.
You need to enable support in the kernel.
]]>...
...
ac_adapter)
case "$2" in
AC0)
case "$4" in
00000000)
echo -n "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
;;
00000001)
echo -n "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
;;
esac
;;
*) logger "ACPI action undefined: $2" ;;
esac
...
...
in /etc/acpid/handler.sh
]]>if on_ac; then
modprobe cpufreq_performance
cpufreq-set -g performance
else
modprobe cpufreq_ondemand
cpufreq-set -g ondemand
fi
You don't need cpufreqd for this, as that is a userspace governor (it does not use ondemand/performance, it uses cpufreq_userspace)
]]>