Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cpufreqd Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Sun Jan 02, 2005 6:29 pm    Post subject: Cpufreqd Problem Reply with quote

Hello

My Cpufreqd doesn't seem to work. My /etc/cpufreqd:
Code:
[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
pm_type=acpi
# Uncomment the following line to enable ACPI workaround (see cpufreqd.conf(5))
cpi_workaround=1
verbosity=4 #(if you want a minimal logging set to 5)


###### PROFILES ######
#
# Full Performance
[Profile]
name=max_performance
minfreq=1875000
maxfreq=2500000
policy=performance

# Max Powersave
[Profile]
name=max_powersave
minfreq=312500
maxfreq=625000
policy=powersave

# constant Speed
[Profile]
name=constant
minfreq=937500
maxfreq=1250000
policy=powersave


###### RULES ######
#
# Full Power wenn AC Adapter online
[Rule]
name=ac_on
ac=on
profile=max_performance

# Compile fast even when AC Adapter offline
[Rule]
name=compiling
ac=off
battery_interval=40-100
programs=emerge,make,gcc,cppprofile=max_performance

# constant speed during dvd watching
[Rule]
name=dvd_watching
ac=off
battery_interval=15-100
programs=mplayer,avidemux
cpu_interval=0-100
profile=constant

# default: powersave
[Rule]
name=battery_on
ac=off
battery_interval=0-100
cpu_interval=0-100
profile=max_powersave
cpu_interval=0-100

I did cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor etc. several times, but nothing seems to happen...

Only when I set scaling_governor to "userspace" by hand and then start cpufreqd it changes the governor to performance.

Greetings
Fabian
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2527
Location: Denmark

PostPosted: Sun Jan 02, 2005 7:47 pm    Post subject: Reply with quote

change it by hand to ondemand
_________________
linux: #232767
Back to top
View user's profile Send private message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Sun Jan 02, 2005 8:15 pm    Post subject: Reply with quote

What? The Governor? This isn't possible, the only values /sys/device/system/cpu/cpu0/cpufreq/scaling_governor accepts is performance, powersave and userspace...
Back to top
View user's profile Send private message
Jerem
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 177

PostPosted: Wed Jan 05, 2005 8:58 am    Post subject: Reply with quote

Did you emerge acpid ?

If you did not that's why it does not work.

Well did you plug and unplug your AC adapter ? Did you see any difference in the governor set by cpufreq ?

Anyway, is the cpufreqd running as a deamon ?

You need to reboot before attempting to see if it works.

To see the real frequence of you processor, you can do a

Code:
emerge x86info
x86info -mhz


And if you enable /proc/cpu/msr and /proc/cpu/cpuid in the kernel options, you can see it with
Code:
cat /proc/cpuinfo | grep Mhz



Personally I use speedfreq with ondemand policy. It changes the frequence very quickly and I never had any problem. I use a centrino laptop.
Back to top
View user's profile Send private message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Wed Jan 05, 2005 1:16 pm    Post subject: Reply with quote

I solved the problem meanwhile. The problem was the order of the rules in cpufreqd.conf, so it always took the first rule...


Greetings
Fabian
Back to top
View user's profile Send private message
Hauser
l33t
l33t


Joined: 27 Dec 2003
Posts: 650
Location: 4-dimensional hyperplane

PostPosted: Fri Jan 07, 2005 7:32 pm    Post subject: Reply with quote

wizardofos wrote:
What? The Governor? This isn't possible, the only values /sys/device/system/cpu/cpu0/cpufreq/scaling_governor accepts is performance, powersave and userspace...

You need to enable "'ondemand' cpufreq policy governor" in the kernel.
_________________
AMD Athlon XP 2600+; 512M RAM;
nVidia FX5700LE; Hitachi 120Gb
2.6.9-nitro4, reiser4, linux26-headers+nptl

Do I like to compile everything?
Positive definite!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum