cpu frequency scaling:ignore_nice_load

Zach uid000 at gmail.com
Mon Feb 4 22:41:58 UTC 2008


I have a Core 2 Duo laptop (2nd gen macbook) and I am trying to turn
off "ignore nice loads" when the laptop is on AC power, to enable the
cpu to scale for any load.

I can manually accomplish this by setting
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load to 0,
and the effect is immediate.  However, I cannot get it to work
automatically either at boot or when the laptop changes from battery
back to AC.

What I have tried so far:
I put the following script in /etc/acpi/ac.d:

for cpu in $SYS_CPU/*/$IGNORE_FLAG;
        echo $DONT_IGNORE_NICE_PIDS > $cpu;

if [ -n $DEBUG ];
        echo "Just set cpu freq to not ignore nice.";
        echo "It is $(cat

I know the script is getting run because it's output is logged. And it
shows the value of ignore_nice_load has been set properly.  However
something comes along and changes it back

Also, I have set the following variables in /etc/laptop-mode/laptop-mode.conf:




(I know the BATT_CPU one isn't necessary, but i wanted to see if it
made a noticeable difference)

I also set the same variables directly in /usr/sbin/laptop_mode

I also set ENABLE_LAPTOP_MODE=true in /etc/default/acpi-support.

Any suggestions?


If you reply to a message I posted in a mailing list thread,
There's a chance I may not see your response.  Feel free to
address me directly in the 'To:', in addition to posting to the list.

More information about the ubuntu-users mailing list