Setting cpu frequency

7 respostas [Última entrada]
lansburyslido
Desconectado
Joined: 08/29/2011

My laptop regularly overheats and shuts down when it's working hard like watching flash videos. I can get round this by setting the max cpu freq to 1.8MHz, down from the 2.2MHz max.

I can do this on the Gnome desktop as there's an applet to do this. How can I do this on the LXDE desktop with Trisquel Mini? Any command line methods or guis welcome.

CPU is an Athlon +340064-bit.

Ta.

lansburyslido
Desconectado
Joined: 08/29/2011

On other distros I often use:

# cpufreq-set -f 1800000

Ta.

lembas
Desconectado
Joined: 05/13/2010

If you bothered to read the manual page for cpufreq-set (i.e. man cpufreq-set) you notice it says:

"-f --freq
specific frequency to be set. Requires userspace governor to be available and loaded.
"

and

"-g --governor
new cpufreq governor.
"

Thus, we first need to (as superuser)
cpufreq-set -g userspace
followed by your
cpufreq-set -f 1800000

You might also want to consider opening the lapper and blowing out any and all dust. This could be a rather formidable undertaking depending on the model.

lansburyslido
Desconectado
Joined: 08/29/2011

But the problem I have is that there is no command cpufreq-set in the distro or repositories. cpufreq-set has worked onother distros I've used which is why I mentined it.

I did find cpufreqd which I've installed but I get this below:

root@trisquel:/home/trisquel# cpufreqd-set -g userspace
usage: cpufreqd-set [manual | dynamic | ]

And:

root@trisquel:/home/trisquel# cpufreqd-set -g manual
usage: cpufreqd-set [manual | dynamic | ]

Not sure where to go on this one.

lembas
Desconectado
Joined: 05/13/2010

The command is in package cpufrequtils, is that installed?

Also, if you often find yourself wondering from which uninstalled package a certain command comes from, you might want to install package command-not-found, it tells you. And if you'd like to know which installed package a command comes from you can find it out with dpkg -S packagename or faster by installing package dlocate which uses database to speed up the lookup.

lansburyslido
Desconectado
Joined: 08/29/2011

Ta!

cpufrequtils now installed and my initial single line command works!

Always had trouble with this laptop overheating. Onlybecame an issue when the kernel went from 2.4 to 2.6. Of course that could have been a co-incidence, maybeprocessing becoming more complex. :)

lembas
Desconectado
Joined: 05/13/2010

Another tool you could try using is powertop. If it uses power, some (if not most) of it is converted into heat.

The tool even has a website http://linuxpowertop.org/ (works just fine on AMD as well despite the Intel spam...)

lansburyslido
Desconectado
Joined: 08/29/2011

Looks interesting, ta.