You are not logged in.

#1 2011-04-14 01:27:48

tladuke
Member
Registered: 2009-07-23
Posts: 176

What is wrong with my cpufreq now?

cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0 1
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.0 us.
  hardware limits: 800 MHz - 2.40 GHz
  available frequency steps: 2.40 GHz, 2.40 GHz, 1.60 GHz, 800 MHz
  available cpufreq governors: ondemand, performance
  current policy: frequency should be within 800 MHz and 960 MHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.


I use laptop-mode-utils. It used to work right. Not sure what happened.

let me post the answers to the inevitable questions:

cpufreq.conf
lsmod | grep cpu
cpufreq_ondemand        8443  2 
acpi_cpufreq            5697  1 
freq_table              2379  2 cpufreq_ondemand,acpi_cpufreq
processor              23608  3 acpi_cpufreq
mperf                   1267  1 acpi_cpufreq
laptop mode conf

BATT_CPU_MAXFREQ=fastest
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=0
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=ondemand
NOLM_AC_CPU_IGNORE_NICE_LOAD=0

Last edited by tladuke (2011-04-16 00:56:29)

Offline

#2 2011-04-14 01:44:46

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

Are you wanting to use laptop mode tools to manage it?  The settings for your cpu are in "/etc/laptop-mode/config.d/cpufreq.conf.  You also need laptop-mode in your daemon array (/etc/rc.conf).


I laugh, yet the joke is on me

Offline

#3 2011-04-14 01:49:52

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: What is wrong with my cpufreq now?

Since you're asking what it means:
That's the frequency range your processor is allowed to run at.  I'm not sure about laptop-mode-utils but you (since I see "ondemand" as a the current governor) you can manually set it, depending on what you considered to be "working right" before (e.g. higher frequency, lower, etc).  If laptop-mode-utils is controlling this, it might be using the "ondemand" governor to conserve power by setting it to a lower frequency if you're on battery instead of A/C, or something.

Anyway, to change it manually (you may want to review your laptop-mode-utils configuration files first, check the Arch Wiki or any manpage associated with it), you can issue:

cpufreq-set -c0 --min 800Mhz --max 2.40GHz

That will put the processor back in it's full range, but if it's being controlled by your daemon it should be fixed there first.  I think you have 2 processors so you can issue the same command again but with  -c1   to change the second processor to the same frequency (if it supports the same range, which it usually does).

Again, if laptop-mode-utils is controlling this, you may want to consult the config files and/or manpages/wiki first.  I don't have it installed, but the above command will change the frequency manually if you want.

Offline

#4 2011-04-14 01:51:59

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

dddd.

Last edited by tladuke (2011-04-14 01:52:54)

Offline

#5 2011-04-14 01:52:04

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

milomouse has your answer.  You can read more about it in the man page:
http://linux.die.net/man/1/cpufreq-set

Also, read this section for the configuration file:
https://wiki.archlinux.org/index.php/Cp … ils#Daemon

Last edited by the sad clown (2011-04-14 01:54:44)


I laugh, yet the joke is on me

Offline

#6 2011-04-14 01:57:49

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

Tried to set that range manually. It still says the max is 960. Something is broke. I tried it with laptop-mode stopped too.

Offline

#7 2011-04-14 02:45:45

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: What is wrong with my cpufreq now?

Since it's using the "ondemand" governor you could also type

cpufreq-set -c0 -f 2.40GHz

to set the current frequency, which I believe uses "userspace".  If that doesn't work, I'm not sure.. we'll see from there.  ondemand only raises current frequency when you need it, so if your system is idle it will be low, but you should be allowed to change max.

Edit:  you could also try setting it to use "performance"

cpufreq-set -c0 -g performance

Last edited by milomouse (2011-04-14 02:49:34)

Offline

#8 2011-04-14 02:59:36

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

Did you try manually editing "/etc/conf.d/cpufreq" with the correct values?


I laugh, yet the joke is on me

Offline

#9 2011-04-14 19:04:22

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

Every thing in there is commented out. This all has been  working for months. I don't think it's something in my configs. Today I booted up and it was correct for a while (range 800 - 2400MHz), but now a while after booting and going about my business, it's back to saying my max freq is 960.

pacman -Syu did build a new kernel image the day this started happening... let's downgrade...

Offline

#10 2011-04-15 00:33:00

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

You could try uncommenting the pertinent lines and seeing if this doesn't force cpufreq to retain the correct settings.


I laugh, yet the joke is on me

Offline

#11 2011-04-15 00:42:53

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

I think that is working.
wtf

Offline

#12 2011-04-15 01:28:11

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

It is supposed to do that automatically, but in your case the automatic wasn't working correctly.  It doesn't fix your problem (which was the automated process), as it simply replaces it with a different solution (manual settings).


I laugh, yet the joke is on me

Offline

#13 2011-04-15 14:41:34

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

Yeah, And manually setting it with cpufreq-set wouldn't stick...

Offline

#14 2011-04-16 00:58:10

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

Actually it is Not Fixed. Just now I noticed my machine get all sluggish and checked cpufreq-info:

  current policy: frequency should be within 800 MHz and 960 MHz

Last edited by tladuke (2011-04-16 00:58:41)

Offline

#15 2011-04-16 01:20:23

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

what is in your rc.conf daemons array?


I laugh, yet the joke is on me

Offline

#16 2011-04-18 18:01:20

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

DAEMONS=(syslog-ng @net-auto-wired  @acpid @crond @gpm @laptop-mode @alsa  !snd-pcm-oss )

I think it has something to do with heat. As the laptop heats up, the max allowed freq goes down. For some reason my fans aren't spinning as fast as they should. I put a little desk fan on my laptop for now, and the max freq slowly goes back up.



% sensors

acpitz-virtual-0
Adapter: Virtual device
temp1:        +46.0°C  (crit = +115.0°C)
temp2:        +70.0°C  (crit = +105.0°C)
temp3:        +36.7°C  (crit = +112.0°C)
temp4:        +74.0°C  (crit = +112.0°C)
temp5:        +49.0°C  (crit = +90.0°C)
temp6:        +16.0°C  (crit = +112.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Core 0:       +65.0°C  (high = +105.0°C, crit = +105.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1:       +63.0°C  (high = +105.0°C, crit = +105.0°C)

https://wiki.archlinux.org/index.php/Fan_Speed_Control says:

"Now edit /etc/sensors.d/sensors.conf and look up your exact chipset."

But I don't see anything in that file that matches the output of "sensors"

Last edited by tladuke (2011-04-18 19:54:26)

Offline

#17 2011-04-18 20:52:36

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

From the look of your daemons array, cpufreq isn't controlling your freqency, laptop-mode tools is.  If you want the file you edited to dictate frequency then you will need to switch it over to cpufreq.  But this strictly shouldn't be necessary, since my experience is that laptop-mode tools works well with cpufreq.  Do you mind also posting what modules you have in rc.conf and what your processor is?


I laugh, yet the joke is on me

Offline

#18 2011-04-18 22:07:00

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

% uname -p
Intel(R) Core(TM)2 Duo CPU P8600 @ 2.40GHz


MODULES=( acpi-cpufreq vboxdrv )

Offline

#19 2011-04-18 22:50:01

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: What is wrong with my cpufreq now?

That looks correct.  I'm not as familiar with intel.  Perhaps there is some sort of throttling mechanism when the processor overheats.  this is what I suspect based on your comment about frequency changes correlating with changes in temperature.


I laugh, yet the joke is on me

Offline

#20 2011-04-19 18:34:03

tladuke
Member
Registered: 2009-07-23
Posts: 176

Re: What is wrong with my cpufreq now?

I dustered my fan port and it seems to be running much cooler now. Next time I compile something we'll know for sure

Offline

Board footer

Powered by FluxBB