Add option for setting PL2=PL1

This commit is contained in:
Quad 2021-05-21 10:28:20 +02:00
parent 9c243ba827
commit 6fbed98586
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,7 @@ Example:
Arguments: Arguments:
--detail, -d Prints PL2 as well as PL1 --detail, -d Prints PL2 as well as PL1
--match-pl2, -m PL2 will be set to the same as PL1 rather than 2W higher
--help Prints this help text" --help Prints this help text"
print_help () { print_help () {
@ -158,6 +159,9 @@ set_tdp () {
#PL2 #PL2
local watts2=$(expr $watts + 2) local watts2=$(expr $watts + 2)
if [[ "$@" == *"--match-pl2"* ]] || [[ "$@" == *"-m"* ]]; then
watts2=$watts
fi
set_pl 2 $watts2 set_pl 2 $watts2