Skip to content

Instantly share code, notes, and snippets.

@ties
Created November 14, 2018 13:27
Show Gist options
  • Save ties/72dc5f7b5b893389359b8c827b96a11e to your computer and use it in GitHub Desktop.
Save ties/72dc5f7b5b893389359b8c827b96a11e to your computer and use it in GitHub Desktop.
#
# Lenovo Throttle Fix configuration for my HP Zbook Studio G5
# (undervolt settings are motherboard dependent and will likely not
# apply to your system.)
#
# Fixes the 15W/35W throttling issue in Linux :)
#
[GENERAL]
# Enable or disable the script execution
Enabled: True
# SYSFS path for checking if the system is running on AC power
# (changed to match system)
Sysfs_Power_Path = /sys/class/power_supply/AC*/online
## Settings to apply while connected to Battery power
[BATTERY]
# Update the registers every this many seconds
Update_Rate_s: 30
# Max package power for time window #1
PL1_Tdp_W: 29
# Time window #1 duration
PL1_Duration_s: 28
# Max package power for time window #2
PL2_Tdp_W: 44
# Time window #2 duration
PL2_Duration_S: 0.002
# Max allowed temperature before throttling
Trip_Temp_C: 85
# Set cTDP to normal=0, down=1 or up=2 (EXPERIMENTAL)
cTDP: 0
## Settings to apply while connected to AC power
[AC]
# Update the registers every this many seconds
Update_Rate_s: 5
# Max package power for time window #1
PL1_Tdp_W: 48
# Time window #1 duration
PL1_Duration_s: 28
# Max package power for time window #2
PL2_Tdp_W: 58
# Time window #2 duration
PL2_Duration_S: 15
# Max allowed temperature before throttling
Trip_Temp_C: 97
# Set HWP energy performance hints to 'performance' on high load (EXPERIMENTAL)
HWP_Mode: False
# Set cTDP to normal=0, down=1 or up=2 (EXPERIMENTAL)
cTDP: 0
[UNDERVOLT]
# CPU core voltage offset (mV)
CORE: -200
# Integrated GPU voltage offset (mV)
GPU: -100
# CPU cache voltage offset (mV)
CACHE: -200
# System Agent voltage offset (mV)
UNCORE: -100
# Analog I/O voltage offset (mV)
ANALOGIO: -50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment