You are not logged in.

#1 2009-11-09 21:35:18

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

[SOLVED,kind of]cpufreq only works correctly when running from battery

Hello,

I started to have a problem in cpufreq:

- When I boot my laptop while it's plugged to the charger, the cpufreq only goes to 1.33GHz (it supports 1.83GHz), cpufreq -f 1830000 does nothing.

- If I shut it down (not reboot), unplug the charger, wait a few seconds, and start it, then plug the charger in back, cpufreq is working correctly and goes on until the next reboot.

I don't remember when this started, mainly because I spent a long time without turning my laptop off (when I was on vacation) and lately I've often been using it on batteries.

Any ideas? I have an Acer Aspire 7720 laptop (Core 2 Duo T5550 processor, Intel i965 chipset). The BIOS is updated to the latest version.

Thanks!

SOLVED, kind of: I will just stick to the ondemand governor + manual fine-tuning with trayfreq when I need more than 1GHz (not very often, mostly when I'm running VMs or compiling stuff).

Last edited by Renan Birck (2009-11-23 04:04:23)

Offline

#2 2009-11-11 14:58:18

acmps
Member
Registered: 2009-09-01
Posts: 44

Re: [SOLVED,kind of]cpufreq only works correctly when running from battery

Please post your /etc/conf.d/cpufreq.

Mine is like this:

#configuration for cpufreq control

# valid governors:
#  ondemand, performance, powersave,
#  conservative, userspace
governor="ondemand"

# valid suffixes: Hz, kHz (default), MHz, GHz, THz
min_freq="550MHz"
max_freq="2.2GHz"

Offline

#3 2009-11-12 18:04:17

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: [SOLVED,kind of]cpufreq only works correctly when running from battery

Here is it:

#configuration for cpufreq control

# valid governors:
#  ondemand, performance, powersave,
#  conservative, userspace
governor="ondemand"

# valid suffixes: Hz, kHz (default), MHz, GHz, THz
min_freq="1GHz"
max_freq="1.83GHz"

Offline

#4 2009-11-13 10:32:03

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED,kind of]cpufreq only works correctly when running from battery

Just a few of things to try:

1) Comment out the min_freq and max_freq lines and let ondemand work it out itself.

2) ondemand ups the rate based on usage (95% by deafult). Is your usage not high enough? You could try changing the threshold.
eg (from the wiki): echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

3) Check /etc/acpi/handler.sh to see if there's some odd settings in there. You could also load the performance governor and set that to be used when AC is plugged in (see http://wiki.archlinux.org/index.php/Cpufreq about halfway down). I don't know whether those events get triggered at boot time, but it's worth a try.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#5 2009-11-13 22:27:35

Renan Birck
Member
From: Brazil
Registered: 2007-11-11
Posts: 401
Website

Re: [SOLVED,kind of]cpufreq only works correctly when running from battery

skanky wrote:

2) ondemand ups the rate based on usage (95% by deafult). Is your usage not high enough? You could try changing the threshold.
eg (from the wiki): echo 50 > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold

Even under heavy usage it only goes to 1.33GHz.

3) Check /etc/acpi/handler.sh to see if there's some odd settings in there. You could also load the performance governor and set that to be used when AC is plugged in (see http://wiki.archlinux.org/index.php/Cpufreq about halfway down). I don't know whether those events get triggered at boot time, but it's worth a try.

I don't have this file. But it seems, no matter which the governor is, I only get 1.33GHz.

Offline

#6 2009-11-13 22:47:14

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: [SOLVED,kind of]cpufreq only works correctly when running from battery

Sorry, that's pretty much taken me to the limits of my experience. sad


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#7 2009-12-03 13:51:20

mira
Member
Registered: 2009-12-03
Posts: 4

Re: [SOLVED,kind of]cpufreq only works correctly when running from battery

Hi,

I had similar problem too. I have HP nx7400 notebook with Intel Core Duo T2400 at 1.83 GHz, but when I set the max_freq="1.83GHz" (tried also max_freq="1833MHz") in the /etc/conf.d/cpufreq file, the cpu was only at 1.33GHz max (even on performance setting). The "cpufreq-info" command said "hardware limits: 1000 MHz - 1.83 GHz" which is correct, but "current policy: frequency should be within 1000MHz and 1.33GHz" which is not, so I think this might be some kind of bug.

I commented the min_freq and max_freq and after reboot the maximum frequency was set automatically to the right value of 1.83GHz.

Offline

Board footer

Powered by FluxBB