master
Alessandro Mauri 1 year ago
parent 54b0f16f20
commit 6e8946e3ba
  1. 8
      powersave.sh
  2. 2
      undervolt.sh

@ -35,7 +35,13 @@ while getopts 'hopPg:' opt; do
done done
shift $((OPTIND-1)) shift $((OPTIND-1))
echo "$GOVERNOR" > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor # set governor
CPUS="$(nproc)"
for c in $(seq 0 $((CPUS-1)))
do
echo $GOVERNOR > /sys/devices/system/cpu/"cpu$c"/cpufreq/scaling_governor
done
if $apply_lm; then if $apply_lm; then
# "5 is a sensible time" https://www.kernel.org/doc/Documentation/laptops/laptop-mode.txt # "5 is a sensible time" https://www.kernel.org/doc/Documentation/laptops/laptop-mode.txt

@ -3,7 +3,6 @@
# TODO: check for root privileges # TODO: check for root privileges
# TODO: check if all the required tools are available # TODO: check if all the required tools are available
CPUS="$(nproc)"
# Out your wanted values here # Out your wanted values here
CORE_SPEED_HZ_P0=2300000 # 2.30GHz slightly over the base (2.10GHz) CORE_SPEED_HZ_P0=2300000 # 2.30GHz slightly over the base (2.10GHz)
CORE_SPEED_HZ_P1=1450000 # 1.45GHz CORE_SPEED_HZ_P1=1450000 # 1.45GHz
@ -25,6 +24,7 @@ MAX_TEMP_C=85
# enable cpu frequency boost if available # enable cpu frequency boost if available
echo 1 > /sys/devices/system/cpu/cpufreq/boost echo 1 > /sys/devices/system/cpu/cpufreq/boost
# #
# set voltage # set voltage
# =========== # ===========

Loading…
Cancel
Save