0xbb / gpu-switch

gpu-switch is an application that allows to switch between the graphic cards of dual-GPU Macbook Pro models
MIT License
537 stars 57 forks source link

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

Open nsgrbr opened 7 years ago

nsgrbr commented 7 years ago

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 commented 6 years ago

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 commented 6 years ago

YOU ARE AWESOME! Solution works perfectly.

khushiyal commented 6 years ago

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 commented 5 years ago

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

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

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

@milushov little bit longer than normal startup.

urosgruber commented 4 years ago

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

damianzoanni commented 4 years ago

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 commented 4 years ago

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 commented 2 years ago

In my case, I did the following:

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!