mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-04-08 17:05:56 +02:00
* Add min/max allowed frequencies option (#309) Setting the minimum/maximum allowed CPU frequencies is now possible via 'scaling_min_freq' and 'scaling_max_freq' options in config for both modes (charger and battery). Values should be given in kHZ. Example: scaling_min_freq = 1800000 scaling_max_freq = 2000000 I also did autoformatting via 'black', using --line-length 100. Code is now a bit tidier than before. * Fixes for min/max allowed frequencies option * Further modify min/max frequency option * Fix temporary modification in min/max allowed frequency option Co-authored-by: Akos Varady <akos.varady@ericsson.com>
42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
# settings for when connected to a power source
|
|
[charger]
|
|
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
|
|
# preferred governor.
|
|
governor = performance
|
|
|
|
# minimum cpu frequency (in kHz)
|
|
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000
|
|
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
|
|
# to use this feature, uncomment the following line and set the value accordingly
|
|
# scaling_min_freq = 800000
|
|
|
|
# maximum cpu frequency (in kHz)
|
|
# example: for 1GHz = 1000 MHz = 1000000 kHz -> scaling_max_freq = 1000000
|
|
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
|
|
# to use this feature, uncomment the following line and set the value accordingly
|
|
# scaling_max_freq = 1000000
|
|
|
|
# turbo boost setting. possible values: always, auto, never
|
|
turbo = auto
|
|
|
|
# settings for when using battery power
|
|
[battery]
|
|
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
|
|
# preferred governor
|
|
governor = powersave
|
|
|
|
# minimum cpu frequency (in kHz)
|
|
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000
|
|
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
|
|
# to use this feature, uncomment the following line and set the value accordingly
|
|
# scaling_min_freq = 800000
|
|
|
|
# maximum cpu frequency (in kHz)
|
|
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
|
|
# example: for 1GHz = 1000 MHz = 1000000 kHz -> scaling_max_freq = 1000000
|
|
# to use this feature, uncomment the following line and set the value accordingly
|
|
# scaling_max_freq = 1000000
|
|
|
|
# turbo boost setting. possible values: always, auto, never
|
|
turbo = auto
|