How to throttle CPU frequency?

The following method requires the user to connect to the device via Android Debug Bridge (ADB).


1. Identify Connected Devices

C:\Users\mtk>adb devices
List of devices attached
1e868981f4391973        device

The command lists all devices that are currently reachable by ADB.


2. Open an ADB Shell

C:\Users\mtk>adb shell
sh-5.2#

Once the shell prompt (sh-5.2#) appears, the user can query the central processing unit (CPU) frequency tables.

2.1. View Available CPU Frequencies

sh-5.2# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
2000000 1900000 1850000 1800000 1750000 1700000 1650000 1600000 1550000 1500000 \
1450000 1400000 1350000 1300000 1250000 1200000 1150000 1100000 1050000 \
1000000 950000 900000 850000 800000 750000 700000 650000 600000 550000 500000

These values are expressed in hertz (Hz) and represent the frequencies that the CPU can operate at.

2.2. Check the Current CPU Frequency

sh-5.2# cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
2000000

The displayed number (e.g., 2000000) indicates the current operating frequency.


3. Change the CPU Frequency

The CPU governor must be set to userspace before a specific frequency can be applied.

3.1. Example: Set Frequency to 1 600 000 Hz

sh-5.2# echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
sh-5.2# echo 1600000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
sh-5.2# cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
1600000

3.2. Example: Set Frequency to 1 800 000 Hz

sh-5.2# echo userspace > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
sh-5.2# echo 1800000 > /sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
sh-5.2# cat /sys/devices/system/cpu/cpufreq/policy0/cpuinfo_cur_freq
1800000

4. Persistence of the Setting

The frequency change remains in effect until the next boot cycle, after which the default frequency will be restored by the system code.
If a permanent modification is required, the user should incorporate the above commands into the device’s boot scripts.

1 Like