Created
January 11, 2020 11:57
-
-
Save gritzko/3f6bc47b2445e5ecb8fd31b8d8024d3a to your computer and use it in GitHub Desktop.
ThinkPad P1 performance tuning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# ThinkPad P1 performance tuning | |
# | |
# general-purpose power saving | |
#/usr/sbin/powertop --auto-tune | |
# Turn off the PROCHOT bit; it throttles the CPU at 80'C | |
FLAGS=`/usr/sbin/rdmsr 0x1fc -d` | |
PROCHOTOFF=$((FLAGS & 0xfffffffe)) | |
/usr/sbin/wrmsr -a 0x1fc $PROCHOTOFF | |
# Undervolt; your wattage may vary | |
# see https://github.com/georgewhewell/undervolt | |
/home/gritzko/bin/undervolt.py --gpu -80 --core -150 --cache -150 --uncore -150 --analogio -80 -t 95 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment