Setup & Software Discussions
[SCRIPT] fr34k's macOS-eGPU.sh - one script, all solutions, fully automated
 

[SCRIPT] fr34k's macOS-eGPU.sh - one script, all solutions, fully automated  

 of  21
  RSS

hulk_0329
(@hulk_0329)
Active Member
Joined: 1 year ago
 

so found out my lockup problem is related to the new Nvidia driver version 387.10.10.10.35.106. Once I Rerun the script with driver version 30.107 everything works fine. Any idea?
Thanks.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


fr34k liked
ReplyQuote
fr34k
(@fr34k)
Reputable Member Moderator
Joined: 2 years ago
 

@y81r
Well, the script will do EVERYTHING! Just follow the instructions and the script will set up your system for eGPU. My script has portions in it that are critical to the execution and a panic induced by an unexpected eGPU connection or removal might render the system in an unrecoverable state. But as @mac_editor already stated, my script won’t allow an execution with an eGPU connected. Or more generally: The critical parts are secured trice. There are numerous safety measures in it preventing it from being easily killed, the system panicking, or other bad things.
If you follow the instructions carefully it will all work out well. Well, some report .5 not working as it should, but that’s something I can’t tackle atm since I’m neither at home nor around my Mac nor do I have time for research. These things must wait some weeks.

@smeca
Oh I thought everyone already migrated. I’ll try restoring as soon as possible. Might take some days until I can do that.

@ed_co
Man unistall is Never needed before an upgrade. All systems are designed to stop working after an upgrade to avoid crashing. That’s why the script needs to be re-executed every time, and why I incorporated the short command. This time however, please ensure that you have a full backup as not everything seems to work smoothly.

macOS-eGPU.sh on GitHub (fr34k's macOS-eGPU.sh on eGPU.io)
----
2016 15'' MacBook Pro + GTX1080Ti@32Gbps-TB3 (Sonnet Breakaway 550) + macOS 10.13.6 (17G65 driver: 378.10.10.10.30.107 + CUDA: 396.148)


ReplyQuote
smEca
(@smeca)
New Member
Joined: 2 years ago
 

I had an important project with tight deadlines, so I postponed migration to minimize that something screw up in the middle of project. I'm using egpu for CGI rendering on mac for over year now and I'm happy that people like you exists.

I'm probably the last one. I apologize
thx

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
y81r
 y81r
(@y81r)
Active Member
Joined: 1 year ago
 

@fr34k
Thanks for your replay!
I'm very frustrated after two days, I have the system reinstalled two times and each time not get the eGPUs to run, I think that it is due to macOS10.13.5.
I also could not find a downgrade to 10.13.4 that works.

Thanks anyway.

Greetings from Germany

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
aborders02
(@aborders02)
New Member
Joined: 1 year ago
 

When running the script, it could not detect my egpu. 

   waiting 20 seconds for user to connect eGPU

   20..19..18..17..16..15..14..13..12..11..10..9..8..7..6..5..4..3..2..1..0

   fetching eGPU information                                              [done]

 

--- eGPU has not been connected ---

Interrupt...

   cleaning system                                                        [done]

The script has failed.

Nothing has been changed.

I am running an akitio node with a 1080 ti and a thunderbolt 3 to thunderbolt 2 adapter. My computer is an early 2015 macbook pro retina.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
acool
(@acool)
New Member
Joined: 1 year ago
 

@fr34k @goalque

Hi thanks for the tool and instructions. However, cuda is not able to detect my external 1080Ti.

  • The script runs successfully and no errors.
  • System report shows "NVIDIA Chip Model".
  • deviceQuery shows only the internal GT 750M

@philw had similar question in this thread:
https://egpu.io/forums/mac-setup/script-fr34ks-macos-egpu-sh-one-script-all-solutions-fully-automated/paged/2/
I followed @goalque's answer, reinstalled high sierra, it actually installed 10.13.5 (17F77). I had to remove NVDAEGPUSupport.kext in order to boot. Then I ran through the macOS-eGPU.sh again, same problem as before.

What should I do next to fix it? Help appreciated!

 

I have:

MacBook Pro (Retina, 15-inch, Mid 2014)
NVIDIA GeForce GT 750M 2048 MB
macOS 10.13.4 (17E199)

AkiTio Node TB3 w/ Geforce 1080Ti

ACool

BTW, I was using a TB3 to TB2 converter. The HW setup should not have any problem as I tried eGPU support on the same setup a year ago on macOS 10.12, and I was able to get 1080Ti detected back then.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
acool
(@acool)
New Member
Joined: 1 year ago
 

ok after many trial and error, I found that if I plug in the eGPU right after I hear the sound during reboot, I can reliably get my 1080Ti detected properly. Everything works fine after that. Now I'm running:
10.13.5 (17F77)
web driver : 387.10.10.10.30.107

The issues I found so far:

  1. if the internal display was turned off due to sleep or close the lid, it won't come back up. This is a problem as I have to force a reboot to get the display back.
  2. the disconnect not quite working. Once it stuck in disconnecting, another time it turned off the internal display after disconnecting, so due to problem #1 I still have to reboot.
  3. If I boot up with the eGPU connected (with or without display connected to eGPU), it won't boot up.
  4. If I connect the eGPU after laptop boot up, it will be detected as "Nvidia Chip Model" and won't work.

I'll try more and report back. In the meantime, if I can get some help on #1 and not have to loose the display that would be great!

Thanks
A

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
y81r
 y81r
(@y81r)
Active Member
Joined: 1 year ago
 

@acool
thank you so much for your detailed report, I will test your approach and hope it works. 
I need the gpus to render 3D projects in the office and can not lose time anymore for testing things around, if it does not work now I will return to my two 1080tis on my Win10 system at home where it has been almost two years without any problems.
Result: NVIDIA on Mac is a nightmare.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Fuze911
(@fuze911)
Trusted Member
Joined: 2 years ago
 

Need some help guys. Decided to update to 13.5. Ran the script with no errors and  get stuck on boot screen with Apple logo, loadbar half way and mouse. The screen on the egpu is black but I can move my mouse to it. 

14 MBP with 750m, akitio thunder 2, 1060 6gb.

Current Build:
15" MacBook Pro (mid 2014) + MSI AERO GTX1060 6GB+ Akitio Thunder2 (Case Mod) + Dell DA-2 + EFI Hybrid v1.0.3. + OSX 10.13.6 + Win 10

☞ Build Thread
☞ 3D Printed High Air Flow front cover for Akitio Thunder 2/3 Enclosure


ReplyQuote
Fuze911
(@fuze911)
Trusted Member
Joined: 2 years ago
 
Posted by: [email protected]

Need some help guys. Decided to update to 13.5. Ran the script with no errors and  get stuck on boot screen with Apple logo, loadbar half way and mouse. The screen on the egpu is black but I can move my mouse to it. 

14 MBP with 750m, akitio thunder 2, 1060 6gb.

Tried restoring from a back up then installing 13.4 instead and running the script. Sadly, same exact outcome. No errors during the install, just hangs in the middle of the load bar

Going to restore ore from backup and stick to 13.3 for now. I’ll chalk this up to me doing something wrong. 

Ill keep an out for more updates.

Current Build:
15" MacBook Pro (mid 2014) + MSI AERO GTX1060 6GB+ Akitio Thunder2 (Case Mod) + Dell DA-2 + EFI Hybrid v1.0.3. + OSX 10.13.6 + Win 10

☞ Build Thread
☞ 3D Printed High Air Flow front cover for Akitio Thunder 2/3 Enclosure


ReplyQuote
merlinz
(@merlinz)
New Member
Joined: 2 years ago
 

@fr34k Thank you very much! I've been waiting for it since I used the previous version of osx 10.12.

As short reporting,
under sytem 2017 iMac Retina 5k 64GB Radeon Pro580 with Sonnet Breakaway box 550 + 1080ti

the script has successfully installed and worked well, however not all software.
_ Octane renderer worked 
_ Photoshop and Premier, other Adobe family seems like not supporting at the moment.
_ Vray (for Sketchup) CUDA doesn't work though the previous version of osx 10.12 has worked well.

Hopefully the next version supports Adobe family and Vray!
Thanks again,
justBRM

iMac Retina 5K 2017 64GB + Sonnet Breakaway Box 550 + GTX 1080Ti


ReplyQuote
(@alexqc)
New Member
Joined: 1 year ago
 

Hello,

On my side MBP 15 2017 with Touch Bar on Mac OS 10.13.5 everything's working fine external display + Mantiz Venuz with Nvidia GTX1070
The only problem I have is when I open photo app the internal display of my Mac shut. External stay up and the Mac is becoming very slow. When I close the app everything return to normal.

Regards,
Alex


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 

@fr34k
Did the update to 10.13.5 and then the I applied your script. No issues, all correct, and I am tb3 with the latest mbp 15" 2017 with 1080ti.
So the issue of @Keith Walls, was not repeated, and not need to uninstall first.
Just one thing, change maybe "macOS 10.13.4 NVIDIA patch" to "macOS 10.13.4+ NVIDIA patch" or something like that... as we are now in 10.13.5 and it applies in all where 10.13.4 appears...
Thank you very much!!

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


fr34k liked
ReplyQuote
Baris Oktem
(@baris-oktem)
Active Member
Joined: 2 years ago
 

For Mojave anyone try beta for that eGpu solution? New system looks good specially "dark mode"

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Blue Viuda
(@blue_viuda)
New Member
Joined: 1 year ago
 

Went from 10.12.6 to 10.13.5.
This script didn't work at first but I rolled the drivers back to 378.10.10.10.25.106 and it works now but the UI is a little slow. I disabled transparency and spaces and now its okay speed but still not perfect.

Is there anything else I can do to fix this? Also disconnecting the eGPU via the UI makes it get the power / blue screen thing same with removing the cable. I have to start the computer with the eGPU. Most of all I want spaces back though.

Anyways thanks very easy a lot easier than Sierra was.

My Specs

Model Identifier: MacBookPro14,3
Processor Name: Intel Core i7
Processor Speed: 3.1 GHz
Total Number of Cores: 4
RAM:
GPU: GTX 1080
eGPU: Sonnet 550w

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
Eightarmedpet
(@eightarmedpet)
Noble Member
Joined: 3 years ago
 

So this is kinda odd... after uninstalling this script, and doing a fresh instal (not wipe) of macOS I still get this message when I unplug my 1070 (after forgetting to unplug it after booting from Windows...

Anyone any ideas?

Screen Shot 2018 06 07 at 11.10.48

2017 13" MacBook Pro Touch Bar
GTX1060 + AKiTiO Thunder3 + Win10
GTX1070 + Sonnet Breakaway Box + Win10
GTX1070 + Razer Core V1 + Win10
Vega 56 + Razer Core V1 + macOS + Win10
Vega 56 + Mantiz Venus + macOS + W10

---

LG 5K Ultrafine flickering issue fix


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 

@Eightarmedpet
Could you please read? This feature doesn't work with nVidia!! It is everywhere...

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


ReplyQuote
Eightarmedpet
(@eightarmedpet)
Noble Member
Joined: 3 years ago
 

@ed_co  This option should not be showing up at all if using an Nvidia card as far as I know, unless you can link me to a thread where it mentions Nvidia cards being recognised but not utilised I would respectfully ask "could you please read".

2017 13" MacBook Pro Touch Bar
GTX1060 + AKiTiO Thunder3 + Win10
GTX1070 + Sonnet Breakaway Box + Win10
GTX1070 + Razer Core V1 + Win10
Vega 56 + Razer Core V1 + macOS + Win10
Vega 56 + Mantiz Venus + macOS + W10

---

LG 5K Ultrafine flickering issue fix


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 

@Eightarmedpet, With nVidia and in macOS, 2 things:
- you can't hot unplug the GPU when macOS is running... (just turn off, and the unplug)
- (usually) you can't boot with the eGPU plugged, and you should plug it when in macOS
Did you do that?
If not, sorry for the comment, I was thinking about that.
But if you did that, just read.

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


ReplyQuote
chinsteig
(@chinsteig)
Trusted Member
Joined: 2 years ago
 
Posted by: Eightarmedpet

So this is kinda odd... after uninstalling this script, and doing a fresh instal (not wipe) of macOS I still get this message when I unplug my 1070 (after forgetting to unplug it after booting from Windows...

Anyone any ideas?

Screen Shot 2018 06 07 at 11.10.48

I also noticed this a day ago when I forgot to turn off my TB2 1070 when I switched back from windows. Popped up after I cut the power, but I've never seen that issue/detection before. I have never installed any scripts yet so I don't think it is related to that, but may be something in OS from 10.13.4/5

Mid 2012 15" MacBook Pro > Thunder2 > GTX 1070 > 34" 2560x1080 Ultrawide
Mid 2017 15" MacBook Pro > Thunder2 > GTX 1070 > 34" 2560x1080 Ultrawide


ReplyQuote
Eightarmedpet
(@eightarmedpet)
Noble Member
Joined: 3 years ago
 

@chinsteig this is the interesting replay I was after... so if you have never installed any Nvidia scripts or work around but macOS still knows its a GPU thats worth noting...

2017 13" MacBook Pro Touch Bar
GTX1060 + AKiTiO Thunder3 + Win10
GTX1070 + Sonnet Breakaway Box + Win10
GTX1070 + Razer Core V1 + Win10
Vega 56 + Razer Core V1 + macOS + Win10
Vega 56 + Mantiz Venus + macOS + W10

---

LG 5K Ultrafine flickering issue fix


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 

TB3 controller maybe??? which is already plugged, and you didn't connect a proper GPU detection (meaning, AMD)...
As I said, take a look in my post (which I edited, to include another common mistake).

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


ReplyQuote
Rycco
(@rycco)
Reputable Member
Joined: 3 years ago
 

Does it work with unplugging or will it crash MacOS?

mid-2017 15" Macbook Pro RP555 + [email protected] (Mantiz Venus) + macOS & Win10


ReplyQuote
Rycco
(@rycco)
Reputable Member
Joined: 3 years ago
 

Does it work with unplugging or will it crash MacOS?

mid-2017 15" Macbook Pro RP555 + [email protected] (Mantiz Venus) + macOS & Win10


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago

ReplyQuote
Eightarmedpet
(@eightarmedpet)
Noble Member
Joined: 3 years ago
 
Posted by: Rycco

Does it work with unplugging or will it crash MacOS?

No crashing for me when I unplug...

2017 13" MacBook Pro Touch Bar
GTX1060 + AKiTiO Thunder3 + Win10
GTX1070 + Sonnet Breakaway Box + Win10
GTX1070 + Razer Core V1 + Win10
Vega 56 + Razer Core V1 + macOS + Win10
Vega 56 + Mantiz Venus + macOS + W10

---

LG 5K Ultrafine flickering issue fix


ReplyQuote
Baris Oktem
(@baris-oktem)
Active Member
Joined: 2 years ago
 

For Mojave we waiting. 🙂

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
ghettocivic
(@ghettocivic)
Active Member
Joined: 1 year ago
 
Posted by: Eightarmedpet
Posted by: Rycco

Does it work with unplugging or will it crash MacOS?

No crashing for me when I unplug...

Could you please share what version of the Nvidia drivers you are using?  I'd like to try to get hot unplug working in macOS with my 1060 since it works so great in Windows.  Yours is a TB3 Mac...i'm wondering if that's a factor as well.

MacBook Pro 13" Late 2013 + Akitio Thunder2 + Sapphire RX570 ITX


ReplyQuote
Twister
(@twister)
Eminent Member
Joined: 1 year ago
 

Hey so I used this awesome script after a fresh install recently, and all was working well (after I ran it twice to install CUDA)...

But now the time is here to upgrade my egpu, I'm going from the Gtx 960 in a TB1 enclosure to the GTX 1080 in the Aorus Gaming Box TB3 with TB1/TB3 adapter. I was hoping it was gonna be as easy as shutting down, switching the thunderbolt cable from the TB1 box to the Aorus w/adapter, and restarting, but that did not seem to work. I wonder should I have waited until the login screen before plugging in? Or do I just need to run the script again since I'm using a newer generation gpu? Do I need different drivers now?

Any help appreciated. Cheers

2012 Mac Mini 2.6/OSX 10.13.6/Sonnet Echo Express Pro TB1/Nvidia GTX 960 2GB
2014 MBP 750M/OSX10.13.6/Aorus Gaming 650ti w/TB2-TB3 adapter


ReplyQuote
philw
(@philw)
Trusted Member
Joined: 2 years ago
 

@Twister I certainly would say you can't boot with it plugged in. I have more success plugging in after login, then logging out and in again... and only switching off the eGPU after shutting the mac down to avoid issues...

Given up on all my Macs...but successfully running: Gigabyte Designare Z390, Core i9-9900K, 64GB RAM, 2x Internal GTX 1080TI, 2x GTX 1070 eGPU (Sonnet eGFX)


ReplyQuote
Twister
(@twister)
Eminent Member
Joined: 1 year ago
 

Thanks @philw you confirmed what I was thinking.

As soon as I finished my backup, I booted without the egpu connected and then connected at the login screen. It kinda crashed the Mini, but then as it restarted and I logged in, it was recognised in the system profiler (but weirdly not about my Mac).  I shut down and the Aorus fan kept running after the Mini turned off which was alarming. After a couple of wonky reboots/crashes it seems to have settled down and now I no longer have to boot without the egpu connected. I seem to remember this same thing happened with my TB1 enclosure... after the first boot at login it was fine to boot connected thereafter.

Anyway functionally everything is back to how it was with the TB1/960 combo, except now I have a 1080 inside instead! It just ripped through the heaven benchmark on extreme preset effectively almost tripling what I was getting with the 960. Happy Days 🙂 Now just waiting for better support from developers like Adobe.

2012 Mac Mini 2.6/OSX 10.13.6/Sonnet Echo Express Pro TB1/Nvidia GTX 960 2GB
2014 MBP 750M/OSX10.13.6/Aorus Gaming 650ti w/TB2-TB3 adapter


ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 3 years ago
 

@fr34k
Are there any new nvidia and cuda drivers??? The script doesn't update to the latest ones...

mid-2017 Macbook Pro RP560 + MSI GTX 1080Ti Gaming [email protected] (Mantiz Venus) + macOS10.13 & Win10


ReplyQuote
Max Pham
(@maxpham)
Active Member
Joined: 2 years ago
 

I ran this script on my MBP 15" 2017 (dGPU: Radeon Pro 560). My eGPU is Aorus Gaming Box GTX 1080.
When I plugged the eGPU before booting to macOS and then ran any program requiring GPU (like Photoshop, SteamVR), my internal display became black (with/without external display set as primary). If I closed the program by pressing Cmd+Q, the internal display showed up again.
When I hot plugged the eGPU (after booting, logging in, and then logging out), the above event did not happen, the internal display was still working but programs did not seem to use eGPU.
(I want to use Photoshop and SteamVR with HTC Vive but they does not use eGPU.)
Any help?

2017 15" MBP RP560 + [email protected] (AORUS Gaming Box) macOS10.13.1 & Win10


ReplyQuote
(@keith_walls)
Eminent Member
Joined: 2 years ago
 

@fr34k
As an FYI, I updated to 10.13.5 and re-ran current script. Card is recognized as is the monitor but as before the external screen is completely blank. CUDA-Z works fine.

iMac Pro, Radeon Pro Vega 64 dGPU, nVidia GeFoce GTX 1080 Ti eGPU.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
vouhardy
(@vouhardy)
Active Member
Joined: 1 year ago
 

@maxpham I am having pretty much the same issue and I can't really make my apps target the eGPU so I am going to refund it while I can. 

If anyone has any tips on this, would be great.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
(@mikey_schreurs)
Active Member
Joined: 2 years ago
 

I hope this helps someone. My Mac Pro Late 2013 running Premiere Pro with Mercury Playback Engine CUDA via Sonnet Breakaway 350 with GTX 1070Ti. MacOS 10.13.5 on Nvidia 387.10.10.10.30.107

Screen Shot 2018 06 10 at 4.28.20 PM

Screen Shot 2018 06 10 at 4.35.56 PM

Something updated and broke everything. I had to reinstall a copy of MacOS (not wipe), uninstalled @fr34k's .02a script, reboot. Went into System recovery, then terminal and disabled SIP. Tried the script again, everything installed fine. Rebooted and hot plugged in once logged in. Screen was black with only cursor so I logged out (CMD - SHIFT - Q) according to the suggestion of the Problems and Solutions section. When trying to figure out what to do next the screen came on with my logon dialog (maybe 1-2 minutes.)

Now Premiere is recognizing the GPU and you can see the activity monitor GPU history window. 

Screen Shot 2018 06 10 at 4.47.40 PM

The maxed out portion is 4K clip playing with a second shot (4K) below it on the timeline playing at FULL resolution. I switched to 1/2 and accordingly the history shows it going to around half when I made the adjustment. And then I stopped playback and the history shows no "load."

Again, hope this helps someone and of course thanks @fr34k and @mac_editor for the great work. Will be donating shortly.

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
 of  21