-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* 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>
- Loading branch information
Showing
5 changed files
with
183 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,41 @@ | ||
# configuration file for auto-cpufreq | ||
# located in /etc/auto-cpufreq.conf | ||
|
||
# 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 | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.