From 0a4aaf1f74a877d01017b89be2fb6f3ce2d2baf2 Mon Sep 17 00:00:00 2001 From: Anton Tamakhin Date: Wed, 11 Sep 2024 10:19:55 +0400 Subject: [PATCH 1/2] added additional clarification for the default `energy_perf_bias` settings --- README.md | 4 ++++ auto-cpufreq.conf-example | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 1d98c98e..d13a4f5e 100644 --- a/README.md +++ b/README.md @@ -332,6 +332,8 @@ energy_performance_preference = performance # (where 0 = maximum performance and 15 = maximum power saving), # or one of the following strings: # performance (0), balance_performance (4), default (6), balance_power (8), or power (15) +# if the parameter is missing in the config and the hardware supports this setting, the default value will be used +# the default value is `balance_performance` (for charger) # energy_perf_bias = balance_performance # Platform Profiles @@ -370,6 +372,8 @@ energy_performance_preference = power # (where 0 = maximum performance and 15 = maximum power saving), # or one of the following strings: # performance (0), balance_performance (4), default (6), balance_power (8), or power (15) +# if the parameter is missing in the config and the hardware supports this setting, the default value will be used +# the default value is `balance_power` (for battery) # energy_perf_bias = balance_power # Platform Profiles diff --git a/auto-cpufreq.conf-example b/auto-cpufreq.conf-example index b5ba8580..74c9c3ef 100644 --- a/auto-cpufreq.conf-example +++ b/auto-cpufreq.conf-example @@ -13,6 +13,8 @@ energy_performance_preference = performance # (where 0 = maximum performance and 15 = maximum power saving), # or one of the following strings: # performance (0), balance_performance (4), default (6), balance_power (8), or power (15) +# if the parameter is missing in the config and the hardware supports this setting, the default value will be used +# the default value is `balance_performance` (for charger) # energy_perf_bias = balance_performance # Platform Profiles @@ -62,6 +64,8 @@ energy_performance_preference = power # (where 0 = maximum performance and 15 = maximum power saving), # or one of the following strings: # performance (0), balance_performance (4), default (6), balance_power (8), or power (15) +# if the parameter is missing in the config and the hardware supports this setting, the default value will be used +# the default value is `balance_power` (for battery) # energy_perf_bias = balance_power # Platform Profiles From 3476424a5ed1e1444e4ca6d09da51c0db7ac2777 Mon Sep 17 00:00:00 2001 From: Anton Tamakhin Date: Wed, 11 Sep 2024 10:21:47 +0400 Subject: [PATCH 2/2] fixed typo in the `epb` verbose message for cpufreqctl --- scripts/cpufreqctl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/cpufreqctl.sh b/scripts/cpufreqctl.sh index 2b0fb13a..dad4b981 100755 --- a/scripts/cpufreqctl.sh +++ b/scripts/cpufreqctl.sh @@ -319,10 +319,10 @@ case $OPTION in --epb) if [ ! -z $AVAILABLE ]; then cat $FLROOT/cpu0/power/energy_perf_bias elif [ -z $VALUE ]; then - verbose "Getting CPU"$CORE" EBPs" + verbose "Getting CPU"$CORE" EPBs" get_energy_performance_bias else - verbose "Setting CPU"$CORE" EBPs to "$VALUE + verbose "Setting CPU"$CORE" EPBs to "$VALUE set_energy_performance_bias fi ;;