Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
Hi everyone. I'm having a little trouble setting up cpu frequency scaling on my Latitude D610. It's running Gentoo.
Essentially I want the laptop to work at full speed when plugged into an AC outlet. When running on battery, I'd like the laptop to switch to the lowest frequency (800MHz) but allow me to change the frequency whenever I wish (NOT dynamically, I'll decide when I need more speed). When it's on battery but the battery is low, it should switch to the lowest frequency and stay there.
Output of cpufreq-info when running on AC (works fine):
Code:
darkstar etc # cpufreq-info
cpufrequtils 0.3: cpufreq-info (C) Dominik Brodowski 2004
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
driver: centrino
CPUs which need to switch frequency at the same time: 0
hardware limits: 800 MHz - 2.00 GHz
available frequency steps: 2.00 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
available cpufreq governors: conservative, ondemand, powersave, userspace, performance
current policy: frequency should be within 800 MHz and 2.00 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 2.00 GHz (asserted by call to hardware).
Output of cpufreq-inf when running on battery (NOT fine):
Code:
darkstar etc # cpufreq-info
cpufrequtils 0.3: cpufreq-info (C) Dominik Brodowski 2004
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
driver: centrino
CPUs which need to switch frequency at the same time: 0
hardware limits: 800 MHz - 2.00 GHz
available frequency steps: 2.00 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
available cpufreq governors: conservative, ondemand, powersave, userspace, performance
current policy: frequency should be within 800 MHz and 800 MHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 800 MHz (asserted by call to hardware).
I'm limited between 800MHz and 800MHz when on batteries. I'd like that to be between 800MHz and 2GHz so that I can change it when I wish.
Any ideas?
Also, cpufreqd seems to be taking up a lot of cpu-cycles. According to htop cpufreqd keeps jumping between 0% and ~30% cpu usage (with middle values). Is this normal?
one solution would be setting the power profiles in the KDE utility ( klaptop). set it to powersave for runing on batery and performance for AC Adapter.
THAT'S IF YOU RUN K
I don't run KDE (nor GNOME). Though I don't know much about how KDE does things, I doubt that it has its own cpu frequency scaling. It probably tries to use cpufreqd or whatever is installed.
lithium@darkstar ~ $ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 2.00GHz
stepping : 8
cpu MHz : 1995.576
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx est tm2
bogomips : 3940.35
However, I don't think this is a hardware or BIOS issue. When I run cpufreq-set -u 2GHz to set the upper limit of the policy to 2GHz, I get exactly what I want. The only problem is that I'd like cpufreqd to do this automatically.
Code:
darkstar lithium # cpufreq-set -u 2GHz
darkstar lithium # cpufreq-info
cpufrequtils 0.3: cpufreq-info (C) Dominik Brodowski 2004
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
driver: centrino
CPUs which need to switch frequency at the same time: 0
hardware limits: 800 MHz - 2.00 GHz
available frequency steps: 2.00 GHz, 1.60 GHz, 1.33 GHz, 1.07 GHz, 800 MHz
available cpufreq governors: conservative, ondemand, powersave, userspace, performance
current policy: frequency should be within 800 MHz and 2.00 GHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 800 MHz (asserted by call to hardware).
Originally posted by shellcode
[B]Yes, it is a Pentium M
In that case download a latest kernel or do you have a kernel newer than 2.6.13. Just recompile it with:
Ondemand ----> governor
This will automatically control the CPU frequency. (i.e) the kernel controls everything. Just __uninstall__ your cpufreq daemon. The in-kernel cpufreq governors have made big steps forward in terms of features and usability (according to experts).
Originally posted by biophysics In that case download a latest kernel or do you have a kernel newer than 2.6.13. Just recompile it with:
Ondemand ----> governor
This will automatically control the CPU frequency. (i.e) the kernel controls everything. Just __uninstall__ your cpufreq daemon. The in-kernel cpufreq governors have made big steps forward in terms of features and usability (according to experts).
Like I said in my original post, I do not want dynamic frequency scaling. I understand that this works nicely but I'd really rather decide when the frequency should change myself. What I want is to have the userspace governor allow me to change frequency between 800MHz and 2GHz when I feel the time is right. However, I can't do that if cpufreqd sets an arbitrary maximum frequency of 800 MHz (the same as the minumum frequency) contrary to what the configuration file says the maximum frequency should be.
Yes, but if I unistall cpufreqd then there will be nothing to automatically take me down to 800MHz when I switch to battery power.
This is what I want cpufreqd to do:
On AC: 2GHz
On Battery: 800Mhz with userspace governor so that I can switch betwen 800Mhz and 2GHz (and intermediate values)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.