Skip to content

Instantly share code, notes, and snippets.

@gritzko
Created January 11, 2020 11:57
Show Gist options
  • Save gritzko/3f6bc47b2445e5ecb8fd31b8d8024d3a to your computer and use it in GitHub Desktop.
Save gritzko/3f6bc47b2445e5ecb8fd31b8d8024d3a to your computer and use it in GitHub Desktop.
ThinkPad P1 performance tuning
#!/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