LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-25-2009, 12:10 PM   #1
GeorgeOfTheBush
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Rep: Reputation: 0
Question 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!
 
Old 06-26-2009, 11:47 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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.
 
Old 06-27-2009, 05:03 AM   #3
GeorgeOfTheBush
LQ Newbie
 
Registered: Jun 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Question

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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
perl install error: Can't locate object method "new" via package "Module::Build::Vers powah Linux - Software 0 10-24-2006 01:57 PM
Ntfs-Fuse copy error Debian "Sid" / Ubuntu "6.06" animefriik Linux - General 0 10-06-2006 09:28 AM
X won't load i810 module for 915GM video card "module requirement mismatch" yougene Slackware 10 03-18-2006 10:02 AM
add "Artist" and "Album Title" to mp3 files powah Linux - Software 2 04-05-2005 03:04 AM
"Failed to load module "i915"" Kane635 Linux - Software 0 11-22-2004 08:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration