DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I wanted to be able to change the cpu frequency and found out, that I have no idea how. :-) Under Suse I just had to enter "powersave" with some options, and it did all I wanted (at least under suse 9.2). Now I wanted to set the same thing up under debian, but don't get it to work correctly. I already installed acpid and cpudynd, but whenever I try to start acpid, it tells me:
Code:
acpid: can't open /proc/acpi/event: Device or resource busy
Entering "cpudynd", it says
Code:
cpudynd version 1.0 Copyright: Ricardo Galli <gallir@uib.es>
cpudynd: CPU frequency control disabled
Error: Nothing to do, exiting
When trying powernowd, it tells me
Code:
powernowd: PowerNow Daemon v0.90, (c) 2003-2004 John Clemens
powernowd: Found 1 cpu:
Couldn't open file: No such file or directory
Couldn't open file: No such file or directory
Couldn't open file: No such file or directory
couldn't open govn's file for writing: No such file or directory
Couldn't get per-cpu data: Illegal seek
PowerNowd encountered and error and could not start.
Please make sure that:
- You are running a v2.5/v2.6 kernel or later
- That you have sysfs mounted /sys
- That you have the core cpufreq and cpufreq-userspace
modules loaded into your kernel
- That you have the cpufreq driver for your cpu loaded,
and that it works. (check dmesg for errors)
If all of the above are true, and you still have problems,
please email the author: clemej@alum.rpi.edu
But since I am pretty new with setting up a system (As I mentioned above, I used Suse before, and there is not much "setting up a system" with it), that does not help me a lot. Maybe someone can help me with that issue and also tell me what daemon would be best to use (cpufreqd, cpudynd, powernowd).
My system is as follows:
Notebook: FSC Amilo M 7400
Debian sarge
Kernel 2.6.8-2
I hope that is all information that is needed to solve that problem, if not, just ask. Thanks,
- That you have the core cpufreq and cpufreq-userspace
modules loaded into your kernel
- That you have the cpufreq driver for your cpu loaded,
and that it works. (check dmesg for errors)
So do you have these modules loaded? Check with lsmod. Do you have /sys mounted?
Moreover you said I should check dmesg for any errors. What exactly am I looking for in the messages that dmesg shows me. Should I post everything with "ACPI: ..." and "CPU: ..." here or is something else needed?
I am using a pentium M 1.7GHz processor (centrino). Hope you can help me!
Ok, well you have the cpufreq governor loaded there, it looks like you just need the modules for your cpu. I have done a little reading in /usr/src/linux/Documentation/cpu-freq and your processor is supported.
I don't have a centrino, so this is only best guess but it would seem you need to run:
"modprobe speedstep-centrino"
If this works then cd to /sys/devices/system/cpu/cpu0/cpufreq/
You should see files like:
cpuinfo_min_freq
cpuinfo_max_freq
etc...
Well, I tried what you said, but I get the following error message:
Code:
# modprobespeedstep-centrino
FATAL: Error inserting speedstep_centrino (/lib/modules/2.6.8-2-686/kernel/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.ko): No such device
What does this mean? By the way: Thanks a lot for your help!
I use cpu frequency scaling on my laptop (K6-3 processor).
You can lower cpu clock rate with both "CPU frequency scaling" and from ACPI with "CPU Throttling". I use CPU Frequency scaling. I suggest trying to use APM instead of ACPI... disable/remove the "acpid" and install "apmd". You might have to change BIOS settings also.
Anyways, to use "CPU frequency scaling" you need to have "cpufreq-userspace"-module loaded, and also a module specific for your processor:
You can check "cat /proc/cpuinfo" to see which processor you have, and if it supports scaling. You can also see from it if the scaling works (it shows _current_ frequency). You can add appropriate modules to /etc/modules so that the load automatically.
You also need the "powernowd"-daemon (which you already had installed). It should work without problems.
I Google is correct, you should have a Pentium M processor - same as me (I have an IBM R40). What I did to get the frequency scaling to work in Debian was to:
In /etc/fstab add "sysfs /sys sysfs /defaults 0 0", if it's not there already. (The sysfs must be mounted.)
I recompiled the kernel with the following options (under Power management options, CPU Frequency scaling):
Default CPU Freq governor set to performance
'powersave' governor as a module
'userspace' governor for userspace frequency scaling into the kernel
CPU frequency table helpers into the kernel
Intel Enhanced SpeedStep into the kernel
Make sure the cpufreqd package is installed. Adjust /etc/cpufreqd.conf as needed.
With APM it wouldn't work unless the options above were compiled into the kernel. With APCI it seemed to work even when they were modules.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.