All pastes #504583 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-05-23 04:38 UTC
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