To manually set the CPU frequency in Armbian, follow these steps:
- Open a terminal and check the available frequencies:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
- Check the available governors:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
To set the CPU governor to performance
, powersave
, or another mode:
echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
To manually set a specific frequency:
echo <desired_frequency> | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
echo <desired_frequency> | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
For example, to set the CPU to 1.8GHz:
echo 1800000 | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq
echo 1800000 | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
To apply these settings at boot:
- Edit
/etc/rc.local
:sudo nano /etc/rc.local
- Add the following before
exit 0
:echo 1800000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq echo 1800000 > /sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq echo performance > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
- Save and exit, then reboot:
sudo reboot