by vitorinux » Sat Nov 25, 2017 7:34 pm
$this->bbcode_second_pass_quote('butch', 'H')i
How can I change the default govonor on XU4? At boot performance is loaded, but I would like to change it to ondemand to reduce idle power consumption.
Do I need to write an init script which sets it on boot or is there a better way?
The way I found to change it is to change the words in the scaling_govonor file. Don't have the full path here at the moment.
Thanks, butch
Hi !
All you need is install "cpufrequtils"
FIND PACKAGE
$this->bbcode_second_pass_code('', ' $ pacman -Ss cpufrequtils
alarm/cpufrequtils 008-3 [installed]
Userspace tools for the kernel cpufreq subsystem
')
INSTALL PACKAGE
$this->bbcode_second_pass_code('', ' $ pacman -S cpufrequtils')
Then try with this command from any user..
$this->bbcode_second_pass_code('', '$ cpufreq-info | grep -E "The governors*"')
You will see something like that (I have 8 CPU cores because XU4 is used)
$this->bbcode_second_pass_code('', '
The governor "performance" may decide which speed to use
The governor "performance" may decide which speed to use
The governor "performance" may decide which speed to use
The governor "performance" may decide which speed to use
The governor "performance" may decide which speed to use
The governor "performance" may decide which speed to use
The governor "performance" may decide which speed to use
The governor "performance" may decide which speed to use
')
Now, you can change the default scaling governor.
Note that your system boot initially with some preferences but only ant boot, you can change this file to modify just when OS is started. (WITH ROOT)
$this->bbcode_second_pass_code('', '# vim /etc/conf.d/cpufreq
#configuration for cpufreq control
# valid governors:
# ondemand, performance, powersave,
# conservative, userspace
#governor="ondemand" >>>>>>>>>>>>>>>>>>>>>>> UNCOMMENT THIS LINE
# limit frequency range (optional)
# valid suffixes: Hz, kHz (default), MHz, GHz, THz
#min_freq="2.25GHz"
#max_freq="3GHz"
# use freq to set up the exact cpu frequency using it with userspace governor
#freq=
')
And thats all, reebot your system and enjoy