LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-15-2006, 01:35 PM   #1
nickptar
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
cpufreq not working


I have an IBM Thinkpad R40 with a 2GHz P4 and Intel chipset. I'm using Mandriva 2006 with a custom-compiled kernel 2.6.16.20. The freq_table, speedstep_lib, and p4_clockmod modules are loaded, and didn't display any error messages on loading. The contents of all files in /sys/devices/system/cpu/cpu0/cpufreq are:
Code:
affected_cpus: 0
cpuinfo_cur_freq: 2000000
cpuinfo_max_freq: 2000000
cpuinfo_min_freq: 2000000
scaling_available_frequencies: 2000000
scaling_available_governors: userspace performance
scaling_cur_freq: 2000000
scaling_driver: p4-clockmod
scaling_governor: userspace
scaling_max_freq: 2000000
scaling_min_freq: 2000000
scaling_setspeed: 2000000
As you might guess, I can't set the frequency to anything other than 2 GHz. I used to be able to set it down as far as 250 MHz, but that stopped working more or less randomly (I don't recall it coinciding with a kernel upgrade or any other major change). What's keeping it from working?
 
Old 06-15-2006, 06:13 PM   #2
LazyP
Member
 
Registered: Jun 2005
Location: Athens GR
Distribution: Slackware 10.2
Posts: 43

Rep: Reputation: 15
Well it seems that you have two governors available: userspace and performance.
Performance sets the frequency statically to the highest possible value so you have only one choice: userspace.
You need some kind of deamon that will decrease your CPU's frequency. On my AMD64 i've used "powernowd" for months with no problem at all and AFAIK it works fine with Intels too. Consider using it. Alternatively you can recompile the kernel and choose the "ondemand" governor (this is what I have right now).
 
Old 06-15-2006, 09:13 PM   #3
nickptar
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
As I said, the current governor is 'userspace'. I should be able to set the frequency manually by echoing to scaling_cur_freq, but I can't. powernowd does nothing, and neither does the ondemand governor.
 
Old 06-16-2006, 03:29 AM   #4
LazyP
Member
 
Registered: Jun 2005
Location: Athens GR
Distribution: Slackware 10.2
Posts: 43

Rep: Reputation: 15
Then it may be a BIOS issue. In Athlons for example you have to enable Cool 'n' Quiet. The same feature is called sth like CPU throttling for P4.
Also try to echo values lower than 2000000 to scaling_min_freq and/or cpuinfo_min_freq and a list of frequencies to scaling_available_frequencies.
The same files for me look like that:
affected_cpus: 0
cpuinfo_cur_freq: 1000000
cpuinfo_max_freq: 2000000
cpuinfo_min_freq: 1000000
scaling_available_frequencies: 2000000 1800000 1000000
scaling_available_governors: ondemand performance
scaling_cur_freq: 1000000
scaling_driver: powernow-k8
scaling_governor: ondemand
scaling_max_freq: 2000000
scaling_min_freq: 1000000

There are also two directories called "stats" and "ondemand". The latter holds files that configure the ondemand governor
 
  


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
cpufreq configuration problems FliesLikeABrick Linux - Laptop and Netbook 13 09-25-2005 07:25 AM
Is CPUFreq build into kernel 2.6.x? Vandaahl Linux - Software 34 02-10-2005 08:03 PM
powernowd and cpufreq kalvadar Linux - Newbie 0 02-07-2005 07:57 PM
/proc/cpufreq and throttling spyderusa11 Linux - Laptop and Netbook 8 04-01-2004 06:36 PM
cdrom and cpufreq on kernel 2.6.0 navarre9 Linux - Laptop and Netbook 1 01-14-2004 01:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:03 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