LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I add Module "cpufreq_stats" to ubuntu 9.04? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-add-module-cpufreq_stats-to-ubuntu-9-04-a-735601/)

GeorgeOfTheBush 06-25-2009 12:10 PM

How do I add Module "cpufreq_stats" to ubuntu 9.04?
 
I am trying to use PowerTop 1.11 on Ubuntu 9.04. On launching PowerTop, it says "FATAL: Module cpufreq_stats not found.". I googled a lot about adding this module, but could not find any useful info.

If you could give me any pointers in this direction, that would be great.

Thanks a lot!

tredegar 06-26-2009 11:47 AM

It's a kernel module
Maybe you have it installed, but not loaded:
Code:

tred@vaio:~$ locate cpufreq_stats
/lib/modules/2.6.24-24-generic/kernel/drivers/cpufreq/cpufreq_stats.ko <- It's available
/usr/src/linux-source-2.6.24/linux-source-2.6.24/drivers/cpufreq/cpufreq_stats.c <- And here is the sourcecode (You don't need this)
tred@vaio:~$ lsmod | grep cpufreq
cpufreq_ondemand        9740  1
cpufreq_userspace      5284  0
cpufreq_powersave      2688  0
cpufreq_stats          7104  0  <- And it is loaded
freq_table              5536  3 speedstep_centrino,cpufreq_ondemand,cpufreq_stats
cpufreq_conservative    8712  0

If yours isn't loaded, then load it like this:
Code:

tred@vaio:~$ sudo  modprobe  cpufreq_stats
Then try again.

GeorgeOfTheBush 06-27-2009 05:03 AM

Thanks a lot tredegar for your response.

Which linux flavor are you working on?

My Ubuntu 9.04 is from a live-cd downloaded and installed through WUBI from winxp.

My /usr/src does not have a "linux-source-" directory like that of yours.

Code:

GeorgeOfTheBush@ubuntu:~$ ls /usr/src
linux-headers-2.6.28-11          linux-headers-2.6.28-13
linux-headers-2.6.28-11-generic  linux-headers-2.6.28-13-generic

There is no "cpufreq" directory in /lib/modules.

Code:

GeorgeOfTheBush@ubuntu:~$ ls -l /lib/modules/2.6.28-13-generic/kernel/drivers/c
char/        clocksource/ crypto/

There is no "cpufreq_stats.c".
Code:

GeorgeOfTheBush@ubuntu:~$ ls /usr/src/linux-headers-2.6.28-13-generic/drivers/cpufreq/
Kconfig  Makefile

Also found this info from http://aldeby.org/blog/index.php/lin...ervolting.html - "It appears that with Ubuntu Jaunty 9.04 the ACPI stuff is now in the kernel rather than in a module which requires you to patch and build the kernel sources."

I am not sure about how I could fix the problem?


All times are GMT -5. The time now is 02:39 PM.