Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@brychcy
Created December 8, 2018 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brychcy/0fc24b0648842996688bce6fa46bc501 to your computer and use it in GitHub Desktop.
Save brychcy/0fc24b0648842996688bce6fa46bc501 to your computer and use it in GitHub Desktop.
A fix for GPU kernel panics on the Mid 2010 MacBook Pro.
#!/usr/bin/env bash
if csrutil status | grep -q "enabled"; then echo "You must disable SIP first."; exit 1; fi
KEXT=/System/Library/Extensions/AppleGraphicsPowerManagement.kext
sudo plutil -replace IOKitPersonalities.AGPM.Machines.MacBookPro6,2.Vendor10deDevice0a29 -json '{"BoostPState":[2,2,2,2],"BoostTime":[2,2,2,2],"Heuristic":{"Threshold_Low":[0,0,0,200],"IdleInterval":10,"SensorSampleRate":10,"Threshold_High_v":[0,0,98,100],"TargetCount":1,"SensorOption":1,"Threshold_High":[0,0,100,200],"ID":0,"Threshold_Low_v":[0,0,4,200]},"control-id":17}' $KEXT/Contents/Info.plist
sudo touch /System/Library/Extensions
sudo kextload -v $KEXT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment