You are not logged in.

#1 2007-01-14 01:09:09

Goophy
Member
Registered: 2005-09-21
Posts: 34

Ondemand governor only loads for core0 via rc.local.

I'm trying to get speedstep to work 100% before login, and there's only one problem left.

When I try to enable the ondemand governor in rc.local(
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor),
it only loads for cpu1 (core1).
If i run the same command after logging in it works just fine.
Anyone know why this doesn't work via rc.local? I really don't get it.

It's an Intel T7200 (merom) CPU.

Offline

#2 2007-02-14 16:13:57

Goophy
Member
Registered: 2005-09-21
Posts: 34

Re: Ondemand governor only loads for core0 via rc.local.

Still a mystery?

Offline

#3 2007-02-14 16:50:38

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Ondemand governor only loads for core0 via rc.local.

Is your cpu driver module loaded? (i've got a core 2 duo, and i use acpi-cpufreq)
Install cpufrequtils and then run

cpufreq-set -g ondemand

instead of echoing it to the kernel.

btw, "cpufreq-info" to view the results.

Last edited by pelle.k (2007-02-14 16:51:55)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#4 2007-02-14 21:14:32

Goophy
Member
Registered: 2005-09-21
Posts: 34

Re: Ondemand governor only loads for core0 via rc.local.

It will still only work for one core.
Probably unsupported processor or something then..?

Tried adding:
cpufreq-set -g ondemand -c 0
cpufreq-set -g ondemand -c 1

to rc.local, same error as when I tried echoing the kernel. Core 0 uses the 'powersave' governor.
Strange thing is it works fine if i type the commands after logging in.

Last edited by Goophy (2007-02-14 21:45:14)

Offline

#5 2007-02-14 21:56:52

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Ondemand governor only loads for core0 via rc.local.

So it might be too early to do this in rc.local? strange...
Maybe you should try cpufreqd instead?


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#6 2007-02-14 22:19:47

Goophy
Member
Registered: 2005-09-21
Posts: 34

Re: Ondemand governor only loads for core0 via rc.local.

Same with cpufreqd too. rc.local runs last, after all the modules, daemons and others are loaded, right?

Last edited by Goophy (2007-02-14 22:20:31)

Offline

#7 2007-02-14 23:27:11

iggy
Member
From: Germany, L.E. - Leipzig
Registered: 2004-10-17
Posts: 367

Re: Ondemand governor only loads for core0 via rc.local.

try to load it a little bit later by using "sleep". but so you have to load it in the background.


sorry for my bad english smile

Offline

#8 2007-02-15 18:01:48

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: Ondemand governor only loads for core0 via rc.local.

(sleep 30s;cpufreq-set -g ondemand -c 0;cpufreq-set -g ondemand -c 1)&

Are you sure gnome-powersave or klaptopdaemon isn't messing with your "manual" setup?

Last edited by pelle.k (2007-02-15 18:04:16)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

#9 2007-02-15 22:02:34

Goophy
Member
Registered: 2005-09-21
Posts: 34

Re: Ondemand governor only loads for core0 via rc.local.

That worked!
Thank you both!

Offline

Board footer

Powered by FluxBB