bruh
This commit is contained in:
parent
54b0f16f20
commit
6e8946e3ba
@ -35,7 +35,13 @@ while getopts 'hopPg:' opt; do
|
||||
done
|
||||
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
|
||||
# "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 if all the required tools are available
|
||||
|
||||
CPUS="$(nproc)"
|
||||
# Out your wanted values here
|
||||
CORE_SPEED_HZ_P0=2300000 # 2.30GHz slightly over the base (2.10GHz)
|
||||
CORE_SPEED_HZ_P1=1450000 # 1.45GHz
|
||||
@ -25,6 +24,7 @@ MAX_TEMP_C=85
|
||||
# enable cpu frequency boost if available
|
||||
echo 1 > /sys/devices/system/cpu/cpufreq/boost
|
||||
|
||||
|
||||
#
|
||||
# set voltage
|
||||
# ===========
|
||||
|
Loading…
Reference in New Issue
Block a user