MacOS Power Management Script
Auto change power usage of cpu base on your battery status
config.sh
filebash try.sh
bash install.sh
to make it run at bootBitbar
at https://github.com/matryer/bitbarplugin
as Bitbar's plugin folder or copy all file in plugin to bitbar's plugin folderbash uninstall.sh
.config.sh
for my 9300H Dell Ins 7591######### BEGIN OF YOUR CONFIG #########
# All power value should be below your CPU TPD, you can not overclock cpu with this value
# Find your value in intel page like this
# 9300H: https://www.intel.vn/content/www/vn/vi/products/processors/core/i5-processors/i5-9300h.html
# EXTRA BATTERY PROFILE 0 <EXTRA LOW BATTERY USAGE>
EX_BATTERY_LONG="5" # Long period power usage of cpu W
EX_BATTERY_SHORT="7" # Short period power usage of cpu W
EX_BATTERY_TURBO="0" # Intel turbo on/off <Off>
# BATTERY USAGE PROFILE 1 <LOW BATTARY USAGE AND COOL>
BATTERY_LONG="7" # Long period power usage of cpu W
BATTERY_SHORT="10" # Short period power usage of cpu W
BATTERY_TURBO="0" # Intel turbo on/off <Off>
# NORMAL USAGE PROFILE 2 <SMOOTHEST AND COOL>
NORMAL_LONG="20"
NORMAL_SHORT="30"
NORMAL_TURBO="1"
# PERFORMANCE USAGE PROFILE 3 <PERFORMANCE COOL>
PERFORMANCE_LONG="25"
PERFORMANCE_SHORT="35"
PERFORMANCE_TURBO="1"
# EXTRA PERFORMANCE USAGE PROFILE 4 <PERFORMANCE MAX>
EX_PERFORMANCE_LONG="40"
EX_PERFORMANCE_SHORT="60"
EX_PERFORMANCE_TURBO="1"
# SETTING AUTO PROFILE ON BATTERY LOW
BATTERY_LOW_PERCENT=20 # Setting percent when battery is low
BATTERY_LOW_PROFILES=0 # When battery low will setting this profile
# SETTING INIT PROFILE
BATTERY_PROFILE=1 # On battery will select this profile
PLUGIN_PROFILE=3 # On plugin adapter will select this profile
# UNDERVOLT
# Setting to undervolt CPU -> Colddown (mha)
# Config this must carefully, can damage your cpu ( set to 0 if you want to bypass )
CPU_VOLT="-125"
GPU_VOLT="-90"
CPU_CACHE_VOLT="-125"
######### END OF CONFIG #########
@sicreative for his cpu's kext