9

After playing with GRUB profiling and installing preload, default scaling governor suddenly becomes 'performance' not 'ondemand'. I tried to enable /etc/init.d/ondemand service, but nothing changes - after reboot or resume, governor is always 'performance'. Do anybody knows what happened and how to revert old behaviour.

I'm using HP 6710s laptop.

Jorge Castro
  • 73,717
user65404
  • 93
  • 1
  • 1
  • 3

3 Answers3

13

You can Manually set the governor by running the cpufreq-set command (as root).

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.

sudo cpufreq-set -c 0 -g ondemand

To install cpufreq-set:

sudo aptitude install cpufrequtils

cpufrequtils includes a daemon which allows users to set the desired scaling, governor and min/max clock speeds for all processor cores at boot-time. Before starting the daemon, edit /etc/default/cpufrequtils as root, selecting the desired governor and setting the min/max speed for your CPU(s), for example:

/etc/conf.d/cpufreq
#configuration for cpufreq control
# valid governors:
#  ondemand, performance, powersave,
#  conservative, userspace
governor="ondemand"
# valid suffixes: Hz, kHz (default), MHz, GHz
min_freq="1GHz"
max_freq="2GHz"

Source: archlinux.org

Mitch
  • 109,787
1

You can use following command to change governor:

cpufreq-selector -g ondemand

With this command, you don't need root privileges to change governor. Just add this command to Startup Applications... to change governor on login.

jokerdino
  • 41,732
Leonid
  • 11
0

Under Xubuntu, you also need to disable ondemand task by command:

sudo update-rc.d ondemand disable

the system boot cpu as GOVERNOR="performance" mentioned above

David Foerster
  • 36,890
  • 56
  • 97
  • 151
Bill Zhao
  • 121