Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00 #41

Open
nsgrbr opened this issue May 29, 2017 · 11 comments
Open

Comments

@nsgrbr
Copy link

nsgrbr commented May 29, 2017

I would use the gpu-switch but the home page says: "WARNING: broken on macOS +10.12.4".

Macbook Pro Early 2011 - Intel HD 3000 and AMD Radeon HD 6750M - Mac OS Sierra 10.12.5

Test: Single-User mode (Command + S) with red background screen and white stripes.

After the reboot, the screen became normal again.
The configuration remains after 3 days with 3 shutdowns.

sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00

. . . . .
There is this procedure that works but some people could not do it through ArchLinux.

AppleMacFinder
https://forums.macrumors.com/threads/force-2011-macbook-pro-8-2-with-failed-amd-gpu-to-always-use-intel-integrated-gpu-efi-variable-fix.2037591/

FGuarani
https://forums.macrumors.com/threads/force-2011-macbook-pro-8-2-with-failed-amd-gpu-to-always-use-intel-integrated-gpu-efi-variable-fix.2037591/page-5
.
So I decided to search and found that the format "gpu-power-prefs=%01%00%00%00" is not in the correct format.

The correct format is:

sudo nvram GUID:NVRAM_Variable=value

GUID - Standard Apple Macbook Pro Early 2011-> fa4ce28d-b62f-4c99-9cc3-6815686e30f9

NVRAM Variable -> gpu-power-prefs

Value for Integrated gpu - In this case Binary data Hexadecimal (%) -> %01%00%00%00
.
Macbook Pro 2011 (AMD) and Macbook Pro 2014 (Nvidia) have the same GUIDs / UUIDs. I think it's an Apple standard factory.

FA4CE28D-B62F-4C99-9CC3-6815686E30F9:gpu-active

FA4CE28D-B62F-4C99-9CC3-6815686E30F9:gpu-power-prefs

7C436110-AB2A-4BBB-A880-FE41995C9F8:gpu-policy

https://github.com/ah-/gmux-scripts/issues/1#issuecomment-68113930
.
Setting NVRAM Variables from OS X - Wikileaks
Example: DriverOrder

sudo nvram 8BE4DF61-93CA-11D2-AA0D-00E098032B8C:DriverOrder=%00%50

https://wikileaks.org/ciav7p1/cms/page_26968084.html

http://www.insanelymac.com/forum/topic/291655-ozmosis/page-3

https://github.com/erikberglund/AppleNVRAM

@cbartondock
Copy link

If I were to adapt this for an early 2013 macbook pro that is also having discrete gpu graphics card kernel panics would I just change the guid?

@ffloyd
Copy link

ffloyd commented Aug 14, 2018

YOU ARE AWESOME! Solution works perfectly.

@khushiyal
Copy link

Will this work with iMac mid-2011? Same graphic card, but not sure if GUID will be same or different? Can't check cause it doesn't even boot in recovery mode.

@alexanderchan
Copy link

alexanderchan commented Nov 21, 2018

Thanks, this worked for me on an rMBP 2012 with an nvidia GPU.

  • power down
  • reset nvram
  • Single User mode command-S

$ sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00

  • power down machine holding power button (and do not type exit)
  • power up and then about this mac shows only the intel card

time will tell if this continues to help until I can get it to a store where I can check if extended video support is still covering it.

@zanderzhng
Copy link

Something went wrong with my rMBP 2012 NVGPU and above command
sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00
worked for me, pixelmator no longer drag me into EXT GPU mode.

@milushov
Copy link

milushov commented Dec 17, 2018

Hey, guys, how long it takes to load the system first time after updating gpu-power-prefs variable? Mines stuck at login user screen.

123

@zanderzhng
Copy link

@milushov little bit longer than normal startup.

@urosgruber
Copy link

Is there a way to disable integrated Intel Iris graphics and boot with AMD.? Looks like I have faulty intel chip.

@damianzoanni
Copy link

Thanks, this worked for me on an rMBP 2012 with an nvidia GPU.

  • power down
  • reset nvram
  • Single User mode command-S

$ sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00

  • power down machine holding power button (and do not type exit)
  • power up and then about this mac shows only the intel card

time will tell if this continues to help until I can get it to a store where I can check if extended video support is still covering it.

put this

nvram boot-args="rootless=0 -v gpu-power-prefs=%01%00%00%00"

@damianzoanni
Copy link

Thanks, this worked for me on an rMBP 2012 with an nvidia GPU.

  • power down
  • reset nvram
  • Single User mode command-S

$ sudo nvram fa4ce28d-b62f-4c99-9cc3-6815686e30f9:gpu-power-prefs=%01%00%00%00

  • power down machine holding power button (and do not type exit)
  • power up and then about this mac shows only the intel card

time will tell if this continues to help until I can get it to a store where I can check if extended video support is still covering it.

put this

nvram boot-args="rootless=0 -v gpu-power-prefs=%01%00%00%00"

boot-args: Provides for arguments for use when booting the kernel (or instructions sent to the kernel such as don’t bring any chicken, er, I mean don’t allow 32-bit software to be run or disable rootless (sudo nvram boot-args=“rootless=0″). Also includes:
debug=0x1d4e
debugshell=2
kdp_match_name=mojo
watchdog=0
smc=0x2
-pbmkp rtc=1
nvme=0x1
medetect_panic=1
dither=0
legacy_hda_tools_support=1
intcoproc_unrestricted=1
-tconpanic
-pbmkp
-v: boots in verbose mode

https://krypted.com/mac-os-x/managing-nvram-on-a-mac/

@gaddyya
Copy link

gaddyya commented Dec 3, 2021

In my case, I did the following:

  • option + R + Boot
  • csrutil disable
  • reboot
  • option + S
  • mount -uw /
  • mkdir /Extention-off
  • mv /System/Library/Extension/ATIRadeonX3000.kext /Extention-off
  • reboot

This completely disables the discrete graphics and everything else continues to work. Is retained when falling asleep and rebooting, the brightness change is also alive working!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants