[GUIDE] keeping iGPU activated when booting into Windows using apple_set_os.efi  

Page 3 / 7 Prev Next
  RSS

goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 16, 2017 2:25 pm  

You missed the step 0:

0. [GT750M/M370X/RP4xx 15" MBP only] Prior to booting Windows run 0xbb's ./gpu-switch -i. (macOS) or integrated.bat(Windows).  This sets the Apple gmux to wire the internal LCD to the iGPU when you reboot your system [into Windows]

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
howardthepilot
(@howardthepilot)
Active Member
Joined: 1 year  ago
Posts: 7
May 16, 2017 2:44 pm  

It appears that I'm getting Video_TDR_Failure atikmdag.sys 


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 16, 2017 3:00 pm  

Are you applying the integrated.bat prior to apple_set_os.efi? Works well with my Mid 2015 15" MBP (M370X). I guess your rEFInd is not correctly configured, I don't use it.

What's your eGPU/enclosure and Windows 10 build number?

Some cards/enclosures may need Thunderbolt connection delay as well or plugging in the other TB port.

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
howardthepilot
(@howardthepilot)
Active Member
Joined: 1 year  ago
Posts: 7
May 16, 2017 6:22 pm  

Actually I don't have an eGPU device, what I am trying to do is letting my macbook to use both GPU while booting into bootcamp, is it possible?


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 16, 2017 7:10 pm  

Yes, it is possible. Both M370X and Iris Pro will be visible & active on Windows 10 if you follow the steps precisely under "USB stick creation procedure" & "Performing the Windows boot".

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
howardthepilot
(@howardthepilot)
Active Member
Joined: 1 year  ago
Posts: 7
May 17, 2017 5:15 am  

So, I still get the exactly same error with the code video_TDR_failure. I've follow all the steps and also uninstalled reFind, using the usb stick to boot. Any ideas?


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 17, 2017 9:04 am  

You still haven't answered my questions:

1) What's your Windows 10 build number?

2) Did you run integrated.bat (as administrator) prior to apple_set_os.efi selection from the USB stick?

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
howardthepilot
(@howardthepilot)
Active Member
Joined: 1 year  ago
Posts: 7
May 17, 2017 2:06 pm  

OS build : 14393.1198

I applied both integrated.bat and ./gpu-switch -i on windows and mac, but neither of them worked.


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 17, 2017 3:04 pm  

Okay. We found the difference. Mine is 10.0.10586. It might explain.

The correct method is to right click the integrated.bat and choose "run as administrator". oxbb's GitHub repo says that gpu-switch is broken on +10.12.4, so you should not use it on macOS. We will clarify the steps.

Confirm that integrated.bat gives "successful" result in a command prompt. At this stage, you should have already the Windows selected as the default boot disk, before restart. Do not boot into macOS. Restart by holding down Option key and select the EFI Boot (apple_set_os.efi). I tested and this works on 10.0.10586.

 

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


theitsage liked
ReplyQuote
howardthepilot
(@howardthepilot)
Active Member
Joined: 1 year  ago
Posts: 7
May 17, 2017 3:46 pm  

So, I guess I know what the problem was.  I used to keep my external monitor plugged and that needs the dGPU, so it will always get an error while booting. As I described above , there is no chance to use an external monitor, is that true?


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 17, 2017 4:55 pm  

I expected that you had nothing plugged in as you said "I don’t have an eGPU device".

You did not mention you were using an external monitor. Both GPUs (M370X & Iris Pro) can be used without any external displays.

To answer your new question: yes, it is possible to use an external monitor if you hot plug it to a HDMI interface after Windows has been loaded. The HDMI port is always wired to the dGPU. The external monitor is driven by the M370X and the internal display is driven by the Iris Pro with apple_set_os.efi.

The boot process with apple_set_os.efi results in Video_TDR_Failure if you try to boot with the HDMI monitor because the firmware outputs the boot screen via HDMI, and therefore overrides your gpu-switch iGPU setting.

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
howardthepilot
(@howardthepilot)
Active Member
Joined: 1 year  ago
Posts: 7
May 17, 2017 5:37 pm  

That's amazing! It finally worked, thanks a lot! The only problem is that I can't adjust the brightness of my internal screen, though it's not a big deal, is there any solution to solve this issue?


goalque liked
ReplyQuote
viper_11
(@viper_11)
Active Member
Joined: 2 years  ago
Posts: 5
May 17, 2017 6:45 pm  

Worked for me with iMac 2013 with 775M dGPU + akitio Node+GTX1080.

Now sistem show's 3 graphic card adapters, but nvidia Optimus still not working. (not appears on nvidia panel)

I missed something?


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 17, 2017 7:22 pm  

Disable the dGPU, restart iGPU enabled and launch, say, Valley benchmark, with no external monitors connected. Which GPU is in use, iGPU or eGPU?

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
viper_11
(@viper_11)
Active Member
Joined: 2 years  ago
Posts: 5
May 18, 2017 9:22 am  
Posted by: goalque

 

Disable the dGPU, restart iGPU enabled and launch, say, Valley benchmark, with no external monitors connected. Which GPU is in use, iGPU or eGPU?

   

If I disable the dGPU, everything goes bumpy, looking benchmark give good FPS from eGPU but interface are bumpy..not smooth.

So at this point, if I activate again dGPU, goes smooth again. (Performance is not 100% smooth with dgpu but better than without dGPU).

activate iGPU with script seems not useful for me


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 18, 2017 9:57 am  

The only way to get Optimus is with the Intel iGPU. Is it Intel HD Graphics 4600? I am not sure how well this supports Optimus acceleration. It's worth trying to download and install the latest Intel drivers.

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
viper_11
(@viper_11)
Active Member
Joined: 2 years  ago
Posts: 5
May 18, 2017 9:59 am  

Yes, It's 4600. I'll install the lastest Intel drivers and try again.

Problem is, without 775M activated, everything run rough visually, but FPS are right


goalque liked
ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 2 years  ago
Posts: 1298
May 18, 2017 1:48 pm  

A resolution or DPI scaling problem? Please post a screenshot of Windows advanced display settings and Intel's HD graphics panel.

automate-eGPU EFIapple_set_os.efi
--
late-2016 13" Macbook Pro nTB + [email protected] (Netstor HL23T) + macOS & Win10
late-2016 13" Macbook Pro nTB + GTX980/[email protected] (Netstor HL23T) + macOS10.13 & Win10


ReplyQuote
frustatedEGPUer
(@frustatedegpuer)
Active Member
Joined: 1 year  ago
Posts: 12
May 22, 2017 4:01 pm  

These instructions will not work for macOS Sierra 10.12.5 and Windows 10 Creators (or any variant of W10) on a 2016 15" Macbook Pro with RP460... I've tried it 4 times, bricked my windows install twice. I'm glad MSFT hasn't banned my key yet for all the activations 🙂


ReplyQuote
Anima
(@anima)
Active Member
Joined: 2 years  ago
Posts: 15
May 22, 2017 5:01 pm  

Works on Windows 10 Creators update build 15063 with Macbook Pro 15 M370x . Uninstall off all drivers with DDU was needed. Benchmark is 4% faster on internal display.


theitsage liked
ReplyQuote
edwardsean
(@edwardsean)
Trusted Member
Joined: 2 years  ago
Posts: 53
May 22, 2017 8:42 pm  

Hey Frustrated.

There's few things quite so maddening as an uncooperative computer, and when the screen winks out into the big dark I get a little cold knot in the pit of my stomach. I totally get how you feel.

However, this method does work. I have the same Mac w/ RP460, Mac OS 10.12.5 , and Win OS 10 Creators. Anima is right DDU is necessary, as are a bunch of other things, but I'm sure you've tried that. I've gone through all the different error 12 methods at this point and each took a lot of time, effort, trial and error but paid off in the end.  

I'm not sure if you mean to say that you "bricked" your Win install. "Bricking" results in rendering your whole laptop (Win/Mac) inoperable so that you would have had to send it back to Apple 4 times without warranty support. If you mean "messed up," "trashed," "hosed" your Win install, yeah, I'm with you. I just got used to reinstalling Windows over and over again as part of the learning process. You may not want to keep going, but this does work and, in my experience, is the best method. 

 


goalque liked
ReplyQuote
frustatedEGPUer
(@frustatedegpuer)
Active Member
Joined: 1 year  ago
Posts: 12
May 24, 2017 11:23 pm  

I got this all setup and working with USB. I can only seem to get both screens working if I have Test Mode enabled though. Is there a reason for that?

I tried getting this all to work with refind, but it would only do one card or the other. So I had to deal with the internal display stuck at the Windows logo and the external monitor working with the 1080ti.


ReplyQuote
edwardsean
(@edwardsean)
Trusted Member
Joined: 2 years  ago
Posts: 53
May 25, 2017 12:02 am  

Glad to hear it! We have identical systems it seems down to the 1080ti. 

I only need Test Mode with the DSDT override. The reason I switched to the iGPU method is so that I wouldn't have to use Test Mode. I'm not sure why you're configuration requires it. 

For gaming, I just use the external monitor and leave my Mac with the Win logo as I don't need it and would rather have it dark. However, you–really–do need to have both monitors operational! If you only have the external monitor and it goes out as, for example, when you update Nvidia drivers, you won't have any way to navigate. Then, it's back to the starting point again! Worst video game ever. 

Are you using the iGPU switch integrated.bat file? My sequence is: 1) normal boot up into Windows, 2) activate integrated.bat file, restart, 3) at reFind select the apple_set_os.efi (the screen will flash), 4) still at reFind-boot up into Windows. 

As long as my RP460 PCIe remains disabled. Both screens work perfectly. The external monitor uses the 1080TI, the MacBook uses the Intel integrated GPU. 

Hope this works for you. I think you're pretty close at this point. 

 


ReplyQuote
frustatedEGPUer
(@frustatedegpuer)
Active Member
Joined: 1 year  ago
Posts: 12
May 25, 2017 1:52 pm  

So that I understand correctly, you're using the iGPU method, which doesn't allow you to use both the laptop display and external monitor? Your laptop gets stuck on the Windows boot logo? This is what I'm trying to avoid. Works perfectly fine in test mode. I'm debating whether to rock the boat and get this working with refind.

The issue I'm having with refind is that when I put the same exact EFI file in the custom folder and try to boot from it on refind, it just blips a shell and closes it, returns back to refind. That's when I got stuck trying to do all the tricks to get back to where I am without blowing away this install.

Are there any big cons with Test Mode? Windows is activated. Is this prime for getting a ton of viruses if everything can run unsigned?


ReplyQuote
edwardsean
(@edwardsean)
Trusted Member
Joined: 2 years  ago
Posts: 53
May 25, 2017 8:33 pm  

1) The iGPU method–does–allow you use both the display and external monitor. So as not to confuse you, let me concentrate on using both, which is what you want. 

2) REFInd: I think you're really close. First, make sure your eGPU is–not–plugged in. Restart to Refind and boot the EFI file in the custom folder. As you said: it will blip a shell and close it and return you back to Refind. That's what you want. Then, after that "blip" boot to Windows. I think you may know this but, as soon as you see the Win logo–plug in the eGPU. This is the one tricky part, if you do it too early or too late it won't work. 

If you ran the integrated.bat on Windows first and PCIe for the RP460 is disabled, you'll have both the display and monitor. 

3) Test Mode: I don't know if it makes your computer more vulnerable, for me there was a game that uses EasyAntiCheat that refuses to load in Test Mode.

Hope that helps. Good luck. 

 


ReplyQuote
frustatedEGPUer
(@frustatedegpuer)
Active Member
Joined: 1 year  ago
Posts: 12
May 25, 2017 9:18 pm  

Ok, so I have refind working.

1- integrated.bat > reboot

2- click os efi > back to refind home > click Windows efi

3- profit. both monitors work

This only works with Test Mode enabled though, otherwise I get an error code 43 without it. Do I need to rename the OS EFI to boot64.efi?


ReplyQuote
edwardsean
(@edwardsean)
Trusted Member
Joined: 2 years  ago
Posts: 53
May 25, 2017 9:29 pm  

Glad to hear you're making progress. I don't think you need to rename the efi file, though you might need to do a bit experimenting at this point. Error 43 may be a driver issue. You may need to reinstall Nvidia drivers? I wish I could help you more but I don't want to steer you the wrong way.


ReplyQuote
frustatedEGPUer
(@frustatedegpuer)
Active Member
Joined: 1 year  ago
Posts: 12
May 25, 2017 10:11 pm  

Thanks for the support! I think the key thing here is that Test Mode works fine. Maybe I'll just keep it this way for now. 🙂


ReplyQuote
edwardsean
(@edwardsean)
Trusted Member
Joined: 2 years  ago
Posts: 53
May 25, 2017 10:27 pm  

I can tell you that I used Test Mode for a while and it worked perfectly without any problems. I also settled there because I didn't want to wreck something that I had working. I only moved off it because of that anticheat software required it. And, I will say, it took over a week before I was able to troubleshoot a new method. 

At some point we have to leave well enough alone right? 


ReplyQuote
UnoMe
(@unome)
New Member
Joined: 2 years  ago
Posts: 2
May 28, 2017 11:35 am  

Hi guys,

first of all that solution works great on my MBP 15" with Touchbar + Akitio Thunder 3 + EVGA GTX 1060 6GB. Thanks to goalque for the great tutorial.

I just encountered  one problem which I can't fix myself.

If I start Windows without bootstick the internal screen stuck at the windows logo but the external Monitor works fine. My external SSD works fine.   

If I  boot Windows from the Bootstick both monitors internal and external are working great but my Windows doesn't recognize any external hard drives. The "Generic SuperSpeed USB HUB" driver doesn't show up in the device manager. So when I boot from the Stick I can't use any USB 3.0 Ports. (USB Sticks 2.0 are working)

Does anyone encountered similar problems? I really don't know how to fix that error. I already reinstalled the drivers from Bootcamp SupportSoftware. I disabled all USB Root Hubs in device manager and uninstalled/reinstalled them. 

I am not sure if that is an actually driver issue because it works pretty good when booting windows normaly

 


ReplyQuote
torncanvas
(@torncanvas)
Eminent Member
Joined: 2 years  ago
Posts: 43
May 30, 2017 7:46 am  

I'm having similar problems as frustratedEGPUer, however I can't boot into Safe Mode, either. Windows just hangs while loading.

I also have a 2016 MBP 15" w/ RP460 on macOS Sierra 10.12.5. I've installed Windows 10 Enterprise (1607, i.e. Anniversary Update). I followed ryokun6's implementation and was able to get my eGPU (Node + 1080) working after running integrated.bat and disabling the GPU. I packed up my gear to take home, and I must have shut down my computer without re-enabling the dGPU PCI.

Is there a way to re-enable that?

Any guidance would be greatly appreciated, thanks.


ReplyQuote
geaguirre80
(@geaguirre80)
Eminent Member
Joined: 2 years  ago
Posts: 37
May 30, 2017 11:38 am  

I think your main problem is that gpu-switch is broken on +10.12.4, so you can't reactivate iGPU from macOS for next boot in Windows, that's why I think leaving your PCIx16 disabled on Windows is bad idea. Try to boot in safe mode and reactivate your PCIx16 bridge, or see if you can boot again with your eGPU + external monitor. 

 

 

 


ReplyQuote
torncanvas
(@torncanvas)
Eminent Member
Joined: 2 years  ago
Posts: 43
June 6, 2017 5:03 am  

Yeah it's a terrible idea, which the guide warned me of, of course. I wish I hadn't forgotten because after many attempts I just had to reset my install. :-/

I even tried to set up a live Linux USB to run gpu-switch there, but every distro I tried had no support for the keyboard.

EDIT: Another issue I had is I could never get the laptop to wake the display from sleep. Any ideas? Seemed like the display was on, but black.


ReplyQuote
Eason85
(@eason85)
Eminent Member
Joined: 2 years  ago
Posts: 21
June 6, 2017 7:57 am  

I'm curious -- is anyone successfully using Windows on their MacBook Pro 15 (when mobile) without major issue? It sounds like it doesn't properly wake from sleep, etc. I would imagine it works fine if you use the dGPU as default, but that will kill battery life way too quickly.


ReplyQuote
TiM
 TiM
(@tim)
Active Member
Joined: 2 years  ago
Posts: 6
June 14, 2017 6:07 am  

Hi folks! Nice to meet you all! 🙂

I've got a 2016 MacBook Pro 15" w/ Touch Bar (Radeon Pro 460) + Razer Core + EVGA 1080 Ti.

I JUST managed to resolve the code 12 issue in Boot Camp by doing the DSDT override via Clover.

I'm hoping to be able to game on the internal display of the laptop, but I can't figure out how exactly to get it working.

Is it possible to set the apple_set_os.efi via Clover as well?

 EDIT: By that I mean I've set up a separate partition for Clover and placed my custom DSDT file in there. I'm GUESSING it's just a matter of placing the efi file somewhere in that partition as well. Has anyone else tried this?


ReplyQuote
joshu_111
(@joshu_111)
Active Member
Joined: 1 year  ago
Posts: 5
June 17, 2017 8:21 pm  

I have 2017 Macbook Pro 15", I had same error code 12.

I followed instructions from here to enable the intel igpu(intel..) and boot into windows.

Then from device manager disable dgpu(Radeon pro 560) and then my external monitor lights up, running from egpu(AMD R9 380)

Everything works, Hope it helps someone.

P.S. I used thunderbolt on left and facing me, and kept MBP plugged in to charger.


ReplyQuote
Page 3 / 7 Prev Next