Last active
June 6, 2018 23:26
-
-
Save namgk/6f8f1121356b7e4a527e9b67475d4edb to your computer and use it in GitHub Desktop.
2011 Macbook Gpu Fix
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
#!/bin/bash | |
EFIVARS=/sys/firmware/efi/efivars/ | |
cd / | |
umount $EFIVARS | |
mount -t efivarfs rw $EFIVARS | |
cd $EFIVARS | |
GPUC=$(ls gpu-power-prefs*) | |
echo "Removing "$GPUC | |
chattr -i $GPUC | |
rm $GPUC | |
printf "\x07\x00\x00\x00\x01\x00\x00\x00" > $GPUC | |
chattr +i $GPUC | |
cd / | |
umount $EFIVARS | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://realmacmods.com/macbook-2011-radeon-gpu-disable/