2025-03-14 21:59:59 -06:00
|
|
|
# cpufreq-set
|
|
|
|
|
|
|
|
|
|
> A tool to modify CPU frequency settings.
|
|
|
|
|
> The frequency value should range between the output of command `cpufreq-info -l`.
|
|
|
|
|
> More information: <https://manned.org/cpufreq-set>.
|
|
|
|
|
|
|
|
|
|
- Set the CPU frequency policy of CPU 1 to "userspace":
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-g|--governor]}} {{userspace}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set the current minimum CPU frequency of CPU 1:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-d|--min]}} {{min_frequency}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set the current maximum CPU frequency of CPU 1:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-u|--max]}} {{max_frequency}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set the current work frequency of CPU 1:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`sudo cpufreq-set {{[-c|--cpu]}} {{1}} {{[-f|--freq]}} {{work_frequency}}`
|