View previous topic :: View next topic |
Author |
Message |
wizardofos Apprentice
Joined: 20 Jul 2004 Posts: 201
|
Posted: Sun Jan 02, 2005 6:29 pm Post subject: Cpufreqd Problem |
|
|
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 |
|
|
ikaro Advocate
Joined: 14 Jul 2003 Posts: 2527 Location: Denmark
|
Posted: Sun Jan 02, 2005 7:47 pm Post subject: |
|
|
change it by hand to ondemand _________________ linux: #232767 |
|
Back to top |
|
|
wizardofos Apprentice
Joined: 20 Jul 2004 Posts: 201
|
Posted: Sun Jan 02, 2005 8:15 pm Post subject: |
|
|
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 |
|
|
Jerem Apprentice
Joined: 11 Jun 2004 Posts: 177
|
Posted: Wed Jan 05, 2005 8:58 am Post subject: |
|
|
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 |
|
|
wizardofos Apprentice
Joined: 20 Jul 2004 Posts: 201
|
Posted: Wed Jan 05, 2005 1:16 pm Post subject: |
|
|
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 |
|
|
Hauser l33t
Joined: 27 Dec 2003 Posts: 650 Location: 4-dimensional hyperplane
|
Posted: Fri Jan 07, 2005 7:32 pm Post subject: |
|
|
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 |
|
|
|