Skip to content

Instantly share code, notes, and snippets.

View brychcy's full-sized avatar

Till Brychcy brychcy

  • Munich, Germany
View GitHub Profile
@brychcy
brychcy / mbp-gpu-fix.sh
Created December 8, 2018 17:03
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