OoO En cette nuit striée d'éclairs du mardi 24 septembre 2002, vers
02:09, Bastien Nocera <[EMAIL PROTECTED]> disait:

> Simple patch to /etc/power/pwrctl to change the CPU speed based on the
> amount of battery left (not many laptops supported for now, afaik).

Where do you use the amount of battery left ?

> +                     SPEEDMIN=`cat /proc/sys/cpu/0/speed-min`
> +                     SPEEDMAX=`cat /proc/sys/cpu/0/speed-max`
> +                     SPEED=`expr $SPEEDMIN + $SPEEDMAX / 2`
> +                     echo $SPEED /proc/sys/cpu/0/speed

The iBook2 supports only 400 and 700 MHz speed.
-- 
Don't comment bad code - rewrite it.
            - The Elements of Programming Style (Kernighan & Plaugher)

Reply via email to