gpu-switch icon indicating copy to clipboard operation
gpu-switch copied to clipboard

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

Open nsgrbr opened this issue 7 years ago • 11 comments

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

nsgrbr avatar May 29 '17 21:05 nsgrbr

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?

cbartondock avatar Jun 27 '18 22:06 cbartondock

YOU ARE AWESOME! Solution works perfectly.

ffloyd avatar Aug 14 '18 10:08 ffloyd

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.

khushiyal avatar Aug 22 '18 16:08 khushiyal

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.

alexanderchan avatar Nov 21 '18 18:11 alexanderchan

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.

zanderzhng avatar Nov 25 '18 09:11 zanderzhng

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

milushov avatar Dec 17 '18 09:12 milushov

@milushov little bit longer than normal startup.

zanderzhng avatar Dec 17 '18 09:12 zanderzhng

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

urosgruber avatar Mar 13 '20 19:03 urosgruber

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 avatar Jun 10 '20 18:06 damianzoanni

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/

damianzoanni avatar Jun 10 '20 19:06 damianzoanni

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!

gaddyya avatar Dec 03 '21 20:12 gaddyya