View previous topic :: View next topic |
Author |
Message |
Russel-Athletic n00b
Joined: 07 Jan 2005 Posts: 47
|
Posted: Fri Jan 07, 2005 8:48 pm Post subject: cpufreqd Problem |
|
|
I want to throttle my Desktop P4 and i can set the Frequenz by setting /sys/..../cpufreq/scaling_setspeed
So i installed cpufreqd, but it did not work, at boot time it gives me this error:
Code: |
cpufreqd: libsys_init() - scandir: No such file or directory
cpufreqd: libsys_init() - scandir: No such file or directory
cpufreqd: main_loop(): Can't get system info. Exiting.
|
Here is my config
Code: |
[General]
pidfile=/var/run/cpufreqd.pid
poll_interval=2
pm_type=acpi #(acpi, apm or pmu)
# Uncomment the following line to enable ACPI workaround (see cpufreqd.conf(5))
#acpi_workaround=1
verbosity=4 #(if you want a minimal logging set to 5)
[Profile]
name=hi_boost
minfreq=2399940
maxfreq=2399940
policy=userspace
[Profile]
name=medium_boost
minfreq=599985
maxfreq=899977
policy=userspace
[Profile]
name=lo_power
minfreq=299992
maxfreq=599985
policy=userspace
# rules
[Rule]
name=conservative
cpu_interval=0-20
profile=lo_power
# need some power
[Rule]
name=lo_cpu_boost
cpu_interval=30-80
profile=medium_boost
# need big power (not if battery very low)
[Rule]
name=hi_cpu_boost
cpu_interval=81-100
profile=hi_boost
|
|
|
Back to top |
|
|
Petyr Guru
Joined: 08 Jan 2003 Posts: 471 Location: San Diego, CA, USA
|
Posted: Fri Jan 07, 2005 10:12 pm Post subject: |
|
|
quick set of things to check
1. You're running a 2.6 kernel?
2. You've compiled in support for cpu freq scaling?
3. /sys is mounted at boot?
your config looks right, it's complaining that it can't read the /sys dir, so that makes me suspect that it just can't open it 'cause it's either not there or not mounted ^_~
hth,
Petyr |
|
Back to top |
|
|
Russel-Athletic n00b
Joined: 07 Jan 2005 Posts: 47
|
Posted: Fri Jan 07, 2005 10:29 pm Post subject: |
|
|
/sys is mountet with: drwxr-xr-x 9 root root 0 Jan 7 18:01 sys
Kernel: 2.6.9-gentoo-r13
Code: |
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_PROC_INTF=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_GOV_PERFORMANCE is not set
# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set
CONFIG_CPU_FREQ_GOV_USERSPACE=y
# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_24_API is not set
CONFIG_CPU_FREQ_TABLE=y
|
I've tried to run cpufreqd not in systemstart but i get the same error message. |
|
Back to top |
|
|
Petyr Guru
Joined: 08 Jan 2003 Posts: 471 Location: San Diego, CA, USA
|
Posted: Fri Jan 07, 2005 11:02 pm Post subject: |
|
|
Part of the problem (or rather a future problem that you'd run into) is that you need to build in the powersave and performance governer. Userspace is for when it's writing exactly what frequency it should be running at into a file, which cpufreqd doesn't do. It just says "Full speed ahead" or "Take it nice and slow"
Take a look in the /sys dir. Do you have a file called cpuinfo_cur_freq
in a directory like
/sys/devices/system/cpu/cpu0/cpufreq
hth,
Petyr |
|
Back to top |
|
|
Cintra Advocate
Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
|
Back to top |
|
|
Russel-Athletic n00b
Joined: 07 Jan 2005 Posts: 47
|
Posted: Sat Jan 08, 2005 6:44 pm Post subject: |
|
|
K that helps a bit, i get now another Error.
Code: |
cpufreqd: scan_system_info(): : No such file or directory
cpufreqd: main_loop(): Can't get system info. Exiting.
|
|
|
Back to top |
|
|
Cintra Advocate
Joined: 03 Apr 2004 Posts: 2111 Location: Norway
|
Posted: Sat Jan 08, 2005 7:32 pm Post subject: |
|
|
Did you try
Code: | echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
all on one line? _________________ "I am not bound to please thee with my answers" W.S. |
|
Back to top |
|
|
Russel-Athletic n00b
Joined: 07 Jan 2005 Posts: 47
|
Posted: Sun Jan 09, 2005 2:14 pm Post subject: |
|
|
Yeah tried ist but he complains as above about system info.
Perthaps i've forgot a Kernel Modul? Or must acpid run ?
Code: |
# ACPI (Advanced Configuration and Power Interface) Support
#
CONFIG_ACPI=y
CONFIG_ACPI_BOOT=y
CONFIG_ACPI_INTERPRETER=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
CONFIG_ACPI_BLACKLIST_YEAR=0
CONFIG_ACPI_BUS=y
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_PCI=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
|
and cpufreq
Code: |
# CPUFreq processor drivers
CONFIG_X86_ACPI_CPUFREQ=y
CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y
CONFIG_X86_SPEEDSTEP_CENTRINO=y
CONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=y
CONFIG_X86_SPEEDSTEP_CENTRINO_ACPI=y
CONFIG_X86_SPEEDSTEP_ICH=y
CONFIG_X86_SPEEDSTEP_SMI=y
CONFIG_X86_P4_CLOCKMOD=y
CONFIG_X86_SPEEDSTEP_LIB=y
CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y
|
P.S.: I kicked every comment to save some lines. |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Sun Jan 09, 2005 2:28 pm Post subject: |
|
|
As you haven't compiled in any governor except userspace, echoing ondemand in scaling_governor can't work.
You have compiled in every cpufreq driver available, that's not a good idea in general. I heard people with Pentium-M complaining that activating the P4-clockmod driver results in weird frequencies.
Either remove the ones not appropriate for your system, or verify with a debugging tool like cpufrequtils that the right driver is working (or use it to get some debugging info). Upgrading to 2.6.10 might help as well, see https://forums.gentoo.org/viewtopic.php?p=1891175#1891175 on how to enable debugging) |
|
Back to top |
|
|
Russel-Athletic n00b
Joined: 07 Jan 2005 Posts: 47
|
Posted: Sun Jan 09, 2005 2:57 pm Post subject: |
|
|
Earthwings wrote: | As you haven't compiled in any governor except userspace, echoing ondemand in scaling_governor can't work.
|
Mhh don't know why they are not in the config but i have enabled then and the sysdevice think that they are in the kernel too.
Quote: |
You have compiled in every cpufreq driver available, that's not a good idea in general. I heard people with Pentium-M complaining that activating the P4-clockmod driver results in weird frequencies.
Either remove the ones not appropriate for your system, or verify with a debugging tool like cpufrequtils that the right driver is working (or use it to get some debugging info). Upgrading to 2.6.10 might help as well, see https://forums.gentoo.org/viewtopic.php?p=1891175#1891175 on how to enable debugging) |
K next Kernelupdate they are out. Mhh i can't find cpufrequtils and the 2.6.10 Kernel in my portage.
But i think, that i forgot something which is readed by cpufreqd.
Edit: Mhhh ok i have the ondemand governor and the frequenzy is changing, but cpufreqd isn't running. |
|
Back to top |
|
|
Russel-Athletic n00b
Joined: 07 Jan 2005 Posts: 47
|
Posted: Wed Jan 12, 2005 7:53 pm Post subject: |
|
|
Mhh the 2.6.10-rc4 didn't solve the problem. Anybody a solution? |
|
Back to top |
|
|
|