2

I am using cpufreq to scale my CPU frequency. But I do that by clicking cpufreq icon on the panel of Ubuntu 12.04.

If without a mouse, how can I show and scale CPU frequency by running commands in terminal?

2
  • cpufreq-info - Utility to retrieve cpufreq kernel information. It will list available frequency steps, available governors, current policy etc.

  • cpufreq-set - A tool which allows to modify cpufreq settings (try e.g. cpufreq-set -g performance or cpufreq-set -f 2 GHz once you know what frequencies your CPU can be set to)

You can also retrieve information about you cpufreq state directly from /sys/devices/system/cpu/cpu*/cpufreq directory. For example available frequencies are stored in /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies.

  • thanks. (1) I found that I have not installed cpufrequtils. but I have indicator-cpufreq running on the panel of the desktop for me to change by mouse. (2) Can I modify /sys/devices/system/cpu/cpu*/cpufreq/scaling_setspeed for changing the frequecy? – Tim Oct 18 '14 at 18:28
  • Yes, you can do that instead of setfreq-set, at least works for me. – jimmij Oct 18 '14 at 18:35
  • Is it weird that I have installed indicator-cpufreq without installing cpufrequtils? Does the former not depend on the latter? What do the two depend on, libcpufreq0? – Tim Oct 18 '14 at 19:22
  • @Tim - look at the package mgmt for this info. – slm Oct 18 '14 at 19:41
  • jimmij, is it a good idea to put the change of cpu freq into some file the OS executs when it starts? unix.stackexchange.com/questions/163005/… – Tim Oct 19 '14 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.