rendered paste body--- apccontrol.orig 2007-05-22 23:36:29.000000000 -0500
+++ apccontrol 2007-05-22 23:38:26.000000000 -0500
@@ -79,11 +79,15 @@
;;
onbattery)
echo "Power failure on UPS ${2}. Running on batteries." | ${WALL}
+echo userspace >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+echo 225000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
;;
offbattery)
;;
mainsback)
echo "Power has returned on UPS ${2}..." | ${WALL}
+echo userspace >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+echo 1800000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
if [ -f /etc/apcupsd/powerfail ] ; then
printf "Continuing with shutdown." | ${WALL}
fi