Created
December 8, 2018 17:03
-
-
Save brychcy/0fc24b0648842996688bce6fa46bc501 to your computer and use it in GitHub Desktop.
A fix for GPU kernel panics on the Mid 2010 MacBook Pro.
This file contains 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