Thursday, August 30, 2012

Reducing CPU frequency in UBUNTU

Seems that when installing UBUNTU in some machines. The setting for the CPU will be set for maximum performance. This tends to overheat the machine. One fix for this:

$ sudo [gvim or any text editor] /etc/rc.local

This will open the file and accept modifications to it:

#############################################
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will “exit 0″ on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
for cpu in /sys/devices/system/cpu/cpu?/cpufreq/scaling_governor; do
echo -n powersave > $ cpu
done

exit 0

#############################################

Add the 3 shaded lines and then reboot.

No comments: