PHC on Ubuntu 9.04

Inform yourself about whats going on with PHC. [READONLY]
n3Cre0
Posts: 13
Joined: Sun 9. Nov 2008, 20:54

Re: PHC on Ubuntu 9.04

Post by n3Cre0 » Wed 29. Apr 2009, 09:22

It should have, but it didn't.
I changed nothing specific after the upgrade so I don't know what was wrong.

On a (very) happier note I got phc to work at last :) using (the patched - extracted the patch from the *-off phc package) acpi-cpufreq built-in.
So yay!

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: PHC on Ubuntu 9.04

Post by the-fallen » Wed 29. Apr 2009, 16:42

Cool, and welcome on board :)


(PS: After a while I will remove the unneccessary postings to keep this thread clean - please do not wonder about it)

groms
Posts: 4
Joined: Sun 3. May 2009, 14:41

Re: PHC on Ubuntu 9.04

Post by groms » Sun 3. May 2009, 14:57

Hi,

I just applied the new 3.2.5 off-tree version on my ubuntu 9.04 (2.6.28-11).

First I tried to do what's in Ubuntu-fr forums : http://doc.ubuntu-fr.org/cpu-frequtils and http://doc.ubuntu-fr.org/undervolting.
I was able to choose between "powersave" or "performance" governors (with p4-clockmod module even if I've got a Centrino Dothan 2.1 GHz) but even in "powersave", my CPU fan didn't stop working.

That's why I decided to apply the 3.2.5 PHC patch.
I did what it was written in the README file, added "phc-intel" in "/etc/modules" then rebooted my computer (?)

Now the patch and the modules are applied but the gnome applet doesn't work with 'phc-intel' (I got an error while starting gnome interface).
Is there a way to see if PHC is working? do I have to use cpufreqd or others utils? How to choose CPU states (performance, powersave...)?

thx for your answers
groms

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: PHC on Ubuntu 9.04

Post by the-fallen » Sun 3. May 2009, 22:07

Hello groms,

you can check if phc is "working" by checking if there are files starting with
"phc_"in "/sys/devices/system/cpu/cpu0/cpufreq/"
and if they display something (use the consile command "cat", example: cat /sys/devices/system/cpu/cpu0/cpufreq/phc_vids").

If those files do not be there the patched PHC module is not loaded.
If they exist but are empty something else is wrong.



Ubuntu 9.04 now has a compiled-in acpi-cpufreq so users NEED to replace the stock kernel with a self-compiled one (or another non-stock kernel where acpi-cpufreq is not compiled in).


Do you use the stock kernel?
If not, do those files exist? If so, whats their content??

groms
Posts: 4
Joined: Sun 3. May 2009, 14:41

Re: PHC on Ubuntu 9.04

Post by groms » Sun 3. May 2009, 23:30

the-fallen wrote:Hello groms,

you can check if phc is "working" by checking if there are files starting with
"phc_"in "/sys/devices/system/cpu/cpu0/cpufreq/"
and if they display something (use the consile command "cat", example: cat /sys/devices/system/cpu/cpu0/cpufreq/phc_vids").

If those files do not be there the patched PHC module is not loaded.
If they exist but are empty something else is wrong.

no, I have no "cpufreq" dir.
the-fallen wrote:Ubuntu 9.04 now has a compiled-in acpi-cpufreq so users NEED to replace the stock kernel with a self-compiled one (or another non-stock kernel where acpi-cpufreq is not compiled in).

Do you use the stock kernel?

I don't think so. What's the way to use stock kernel? (I simply installed the desktop version of Ubuntu 9.04)
the-fallen wrote:If not, do those files exist? If so, whats their content??

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: PHC on Ubuntu 9.04

Post by the-fallen » Mon 4. May 2009, 07:23

If you just installed ubuntu then you use the stock (default) kernel.

Then, there should be the cpufreq directory as well. Humm.....

For the default kernel the offtree-package does not work because the module we do like to replace is not replaceable on ubuntu. Thats why you normally need to complile your own kernel on ubuntu 9.04.

But that is no reason why there is no cpufreq directory. I have no clue at the moment. I will think about that this afternoon.

groms
Posts: 4
Joined: Sun 3. May 2009, 14:41

Re: PHC on Ubuntu 9.04

Post by groms » Sat 9. May 2009, 14:33

the-fallen wrote:If you just installed ubuntu then you use the stock (default) kernel.

Then, there should be the cpufreq directory as well. Humm.....

For the default kernel the offtree-package does not work because the module we do like to replace is not replaceable on ubuntu. Thats why you normally need to complile your own kernel on ubuntu 9.04.

But that is no reason why there is no cpufreq directory. I have no clue at the moment. I will think about that this afternoon.


Hi,
the cpufreq directory is created as soon as a good module is loaded (for instance, when the module p4-clockmod is loaded, the directory exists).
the pb is I cannot load phc-intel as a module, cause 9.04 kernel doesn't allow that (except p4-clockmod, all the others modules are hard-compiled in the 9.04-linux-kernel)
In that case, how to see that "acpi-cpufreq" is managing speedstep after boot start?
do I have to load phc-intel in the kernel? as a module?

regards,
groms

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: PHC on Ubuntu 9.04

Post by the-fallen » Tue 12. May 2009, 18:05

I am sorry for answearing so late.

"do I have to load phc-intel in the kernel? as a module?"

If you use Ubuntu's default kernel you are not able to load linux-phc.
The intel-phc module is just the patched acpi-cpufreq module.

Ubuntu decided to compile-in the acpi-cpufreq module (among others) to speed up the boot process.
But you can not load intel-phc if there is already acpi-cpufreq running.

Thats why you -need- to use another Kernel (self-made or from another source).

starfly
Posts: 7
Joined: Tue 12. May 2009, 23:42

Re: PHC on Ubuntu 9.04

Post by starfly » Tue 12. May 2009, 23:49

Hello

Ive got an Dualcore 3200... Only 3 Stages etc.

ive Build the Kernel, with the edited Konfiguration !

And WOW, now i can scale from 250 to 2Ghz ! Its imoressing !

But One thing is anoing, iam loosin much power, because the fan is working all the time at low speed,
the cpu consumtion doensnt matter... it runs all the tim...
Any suggestions what to do against it ?!

Because so i loose sooooooo much watts because ot the running fan.

Hope Someone has an Solution.

My Work : Exactly done what was given at page one... all worked well...When theres a solution for my fan, its very good !

Ahhh : Ive got to say i cant insert cpufreq or the phc module : Recource or device busy... but scaling in ubuntu itselfs works!

the-fallen
Administrator
Posts: 346
Joined: Wed 9. Jul 2008, 19:57

Re: PHC on Ubuntu 9.04

Post by the-fallen » Wed 13. May 2009, 07:08

Hello and welcome starfly,

what CPU exactly do you have?

Intel? T3200? P3200? or another? AMD maybe?

You said you are unable to load either acpi-cpufreq nor intel-phc but you can scale frequencies.
Then there already IS a scaling module loaded and needs to be unloaded first. Sure you edited the Kernel config and set the acpi-cpufreq as module?

Have you downloaded the correct package? (AMD or Intel)?

Post Reply