Skip to content

Commit

Permalink
Update systemd script.
Browse files Browse the repository at this point in the history
* Add profile for performance on battery. 615fbbf
  • Loading branch information
MrDuartePT committed Jun 28, 2023
1 parent 615fbbf commit 10fcf3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extra/service/.env
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CPU_CC_BAT_B=$(echo test)
CPU_CC_AC_B=$(echo test)

CPU_CC_AC_P=$(echo test)
CPU_CC_BAT_P=$(echo test)

#NVIDIA (nvidia-smi)
#TEAM_GREEN=1
Expand All @@ -36,3 +37,4 @@ GPU_TDP_BAT_B=65 #set to GPU 55W
GPU_TDP_AC_B=125 #set to GPU 125W

GPU_TDP_AC_P=140 #set to GPU 140W
GPU_TDP_BAT_P=89 #set to GPU 80W
6 changes: 6 additions & 0 deletions extra/service/fancurve-set
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ else
GPU_TDP=$GPU_TDP_BAT_B
FANCURVE_FILE=$FOLDER/balanced-battery #set the fancurve file
CPU_CONTROL_COMMAD=$CPU_CC_BAT_B

elif [ $POWER_PROFILE == performance ]; then
echo "Applying Performance Mode Profile 龍 -> charger..."
GPU_TDP=$GPU_TDP_BAT_P
FANCURVE_FILE=$FOLDER/performance-battery #set the fancurve file
CPU_CONTROL_COMMAD=$CPU_CC_BAT_P

elif [ $POWER_PROFILE == balanced-performance ]; then
echo "Applying Balance Mode Profile  -> battery..."
Expand Down

0 comments on commit 10fcf3d

Please sign in to comment.