Created
March 1, 2019 13:11
-
-
Save CesarBalzer/f0a9c5189ea28a32712d71c751c76a2e to your computer and use it in GitHub Desktop.
A fix for GPU kernel panics on the Mid 2010 MacBook Pro.
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
#!/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