Mathew, thank you for looking into this. My machine supports ondemand
and the problem is not in powerd at all.  The problem is in
use_ondemand() function

In start function you have

       if use_ondemand
       then
           log_end_msg 0
           return 0
       fi

So once use_ondemand is called

use_ondemand() {
        for x in /sys/devices/system/cpu/*; do
            echo -n ondemand >$x/cpufreq/scaling_governor;
            status=$?
            if [ $status != 0 ]; then
                return $status
            fi
        done
        return 0
}

use_ondemand() returns zero since it can write into scaling_governor BUT
"if use_ondemand" will stop executing the script since it has return
statement. You just need to change it to "if ! use_ondemand" or just
remove that statement at all.

Hope this helps

On Mon, 2006-12-18 at 21:20 +0000, Matthew Garrett wrote:

> The ondemand governor can react to load changes more quickly than
> powernowd can, so powernowd exits on machines which support ondemand.
> 
> ** Changed in: powernowd (Ubuntu)
>        Status: Unconfirmed => Rejected
>

-- 
The issues powernowd init script.
https://launchpad.net/bugs/74980

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to