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

goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago

ed_co liked
ReplyQuote
(@alex_gao)
Active Member
Joined: 2 years ago
 

Does it support macOS 10.13.6?

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


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

@ed_co
@alex_gao
I am forced to use @goalque's approach for 10.13.6 the old one stops working.

Pro New: Works with 10.13.6
Con New: Either only AMD or NVIDIA can be used properly. Eject disappears.

Pro Old: Allows AMD (eject!) and NVIDIA without internal changes. 
Con New: Only up to 10.13.5

I'll try to get the old approach working again but in the meantime so people can work, I'll implement @goalque's as well.

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
(@elpmis)
New Member
Joined: 1 year ago
 

Does anyone know how to power LG Ultrafine 5K with eGPU?

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


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 
Posted by: fr34k

@ed_co
@alex_gao
I am forced to use @goalque's approach for 10.13.6 the old one stops working.

Pro New: Works with 10.13.6
Con New: Either only AMD or NVIDIA can be used properly. Eject disappears.

Pro Old: Allows AMD (eject!) and NVIDIA without internal changes. 
Con New: Only up to 10.13.5

I'll try to get the old approach working again but in the meantime so people can work, I'll implement @goalque's as well.

@fr34k The old patch that showed the eject icon never worked properly, clicking on "disconnect" had no meaningful function, hot-unplugging always led to kernel panic with Nvidia. Showing "null" was just confusing, better to remove the eject icon. No "Pro" sides in my opinion. With AMDs, better to use @mac_editor's TB1 and TB2 patches. 

Would you and @mac_editor update your main posts, I don't see my copyright notices:

IOGraphicsFamily Patch (c) egpu.io [goalque] AppleGPUWrangler Discrete Patch (c) egpu.io [goalque] AppleGPUWrangler Removable 10.13.4 and 10.13.5 Patch (c) egpu.io [goalque, fr34k]

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 
Posted by: alex gao

Does it support macOS 10.13.6?

Yes (thread title is misleading). The EFI solution also works in Mojave:
https://egpu.io/forums/mac-setup/two-new-egpu-solutions-on-macos-10-13-4-pure-efi-and-hybrid/paged/2/#post-37848

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


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

@fr34k
@goalque
So, for nVidia, if the old method works, it still could be better, right?

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


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 

@ed_co if we get it working (== hot-unplugging), then yes. Otherwise, no.

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


ed_co liked
ReplyQuote
gprimeteam
(@gprimeteam)
Active Member
Joined: 1 year ago
 

@psy2018
Yes, I'm using METAL and the 2 D500 + 1080ti are selected in Resolve.
I have a 4K monitor plugged in DP directly to the 1080ti.
I will try to select only the 1080ti and let you know.

KR,
GP

nMP 2013 - 10.13.5 - Sonnet Enclosure + 1080Ti and TB3 to TB2 adapter.
MP2010 - 10.13.4 - 1080Ti PCI.
Coming Soon : i7 8700k - Win10 - 1080Ti
All dedicated to Da Vinci Resolve


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

@ed_co
@goalque

what I meant is that AMD cards can use the eject although the patch is active (afaik)

a) I will update the post after I implemented the new patch.
b) You already are documented as co-creator of the (old) patch directly next to the flag enforcing prior.
c) I will add a thanks to list to the Readme.md as well.

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)


goalque and ed_co liked
ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 

@fr34k, thanks. Without your kernel panic conversion to more human-readable format, the old patch wouldn't exist 🙂

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


fr34k liked
ReplyQuote
wzienrgo
(@wzienrgo)
Active Member
Joined: 1 year ago
 

Hi,

I was using this great script and it worked very well until I upgraded to 10.13.6.

Here's what I got when I reinstall this script:
------------------------

This script is not designed to work with your current version of macOS.

Continuation might result in failure and/or system crash. (seriously!)

10..9..8..7..6..5..4..3..2..1..0

You use the old wrangler patch. Please follow instructions on GitHub.

Interrupt...

   cleaning system                                                        [done]

The script has failed.

Nothing has been changed.

--------------------

iMac Pro (macOS 10.13.14) + GeForce GTX 1080 Ti (Mantiz Venus)


ReplyQuote
Mech314
(@mech314)
Active Member
Joined: 1 year ago
 

Is it possible to enable SIP after everything set up?

Works in MBP 2016 13" 4TH3 ports

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


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

Possible but wouldn't recommend it at all for many reasons. I did it by accident when I hard reset NVRAM once and didn't notice on Mojave Developer Preview; thankfully I didn't have anything too exotic (Vega 56 attached to a 2016 15" RP460 MacBook Pro, so a 'supported on macOS' GPU) - however as someone who has a developer account and needs access to things, it was terrible - everything would crash and I didn't realize my mistake. Eventually I figured it out, so, it's probably doable (or not, the script may just prevent that from being a thing) - but I don't see why you'd need to. In my opinion, SIP doesn't help much if you're a user that is using eGPU's and these scripts; there's really not much benefit and only annoyance 🙃

2016 15" MBP with Vega64 - Akitio Node - Watercooled with Eiswolf 120mm GPX Pro


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

Update to v1 is out:
includes tons of bugfixes, 10.13.6 support, and a true offline command.
See on

GitHub

also, I removed the text on eGPU.io since my time has gotten so limited that I will only keep the Readme.md on GitHub up-to-date. But always copying information vice versa is painful and may lead to errors. I left some direct links though.

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
XevDoc
(@xevdoc)
New Member
Joined: 1 year ago
 

Can confirm it works on 10.13.6 with my setup below!

MacBook Pro 15" (2016) - Core i7-6920HQ - 1 TB - 16 GB RAM - AMD Radeon Pro 460
--> macOS 10.13.6 & Bootcamp Windows 10

Mantiz Venus eGPU
--> Nvidia GTX 1080 Ti (inno3D iChill X3)
--> Nvidia GTX 1080 (Zotac Amp Extreme - but too long for the enclosure)
--> 1 TB SSD (S-ATA port), Gigabit, USB keyboard / mouse
--> 2m active TB3 cable

Samsung CF791 Curved, [email protected] via DisplayPort


fr34k liked
ReplyQuote
yoshi101
(@yoshi101)
Active Member
Joined: 1 year ago
 

Hi there,

I installed the script in my setup no problem. The eGPU is detected and displays to my external display no problem (after logging out and logging back in again). However the issue I'm having is that when plugged, the whole system is incredibly laggy, even when just freshly logged in and no programs running. Even trying to open up safari or just trying to open the apple menu to shut down the system, my system struggles. I'm wondering if there is something I can do to alleviate this, because my system is pretty much useless when using the egpu plugged in.

My system:

comp: 2017 15" Macbook Pro TB, 3.1Ghz i7, Radeon Pro 560
macOS: 10.13.4
egpu: Aorus GTX 1080 gaming box
display: 2k moinitor

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


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

Excellent work!

iMac (Retina 5K, 27-inch, Late 2014), macOS 10.13.6, AORUS/Gigabyte Gaming Box with Nvidia 1080

install -> reboot -> plug box -> working (no need logout / login)

QQ20180723 103842@2x

issue: no egpu icon in system menu bar

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


ReplyQuote
goalque
(@goalque)
Noble Member Admin
Joined: 3 years ago
 
Posted by: alex gao

Excellent work!

iMac (Retina 5K, 27-inch, Late 2014), macOS 10.13.6, AORUS/Gigabyte Gaming Box with Nvidia 1080

install -> reboot -> plug box -> working (no need logout / login)

QQ20180723 103842@2x

Great! I created this Nvidia patch. You never replied to my questions:

https://egpu.io/forums/mac-setup/two-new-egpu-solutions-on-macos-10-13-4-pure-efi-and-hybrid/paged/11/#post-40038

automate-eGPU EFIapple_set_os.efi
--
2018 13" MacBook Pro + Radeon [email protected] + Win10 1809


ReplyQuote
yoshi101
(@yoshi101)
Active Member
Joined: 1 year ago
 
Posted by: yoshi101

Hi there,

I installed the script in my setup no problem. The eGPU is detected and displays to my external display no problem (after logging out and logging back in again). However the issue I'm having is that when plugged, the whole system is incredibly laggy, even when just freshly logged in and no programs running. Even trying to open up safari or just trying to open the apple menu to shut down the system, my system struggles. I'm wondering if there is something I can do to alleviate this, because my system is pretty much useless when using the egpu plugged in.

My system:

comp: 2017 15" Macbook Pro TB, 3.1Ghz i7, Radeon Pro 560
macOS: 10.13.4
egpu: Aorus GTX 1080 gaming box
display: 2k moinitor

So I've updated to 10.13.6 and uninstalled and reinstalled using the script. The system is detecting the EGPU fine and displaying to an external display, but I'm still getting the lag issue. I don't know if this helps but another observation is that the mouse cursor is not laggy, so its not a frame rate issue. Its just really slow even when opening the Apple menu...

Any help or suggestions with this would be greatly appreciated.

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


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

@yoshi101
Are you booting with eGPU connected or hot plugging?

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
fr34k
(@fr34k)
Reputable Member Moderator
Joined: 2 years ago
 

et all

The script had an issue where the short/offline command (macos-egpu) could not be used after an upgrade of macOS. This was because the requirements were checked before an update was performed. This bug has been eliminated with v1.2.
As long you haven't performed an upgrade of macOS since your install, you can just run the script and get the update installed. Next time, it will work even after macOS is upgraded. If you have upgraded since, you will need to executed the long command the next time. After that it should work as well.
I'm sorry for the inconvenience.

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
yoshi101
(@yoshi101)
Active Member
Joined: 1 year ago
 

Booting with the EGPU plugged in. If I remember correctly, hotplugging doesn't work unless I restart the system or log out and log back in. Will try your suggested fixes for "Black external Monitor with/without mouse" later when I get back and see if that works but I can see my desktop ok on the external. 

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


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

@yoshi101
hot plug and log out, log in works in 
nearly all cases. Try it and let me know if it worked.

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)


yoshi101 liked
ReplyQuote
y81r
 y81r
(@y81r)
Active Member
Joined: 1 year ago
 
Posted by: fr34k

et all

The script had an issue where the short/offline command (macos-egpu) could not be used after an upgrade of macOS. This was because the requirements were checked before an update was performed. This bug has been eliminated with v1.2.
As long you haven't performed an upgrade of macOS since your install, you can just run the script and get the update installed. Next time, it will work even after macOS is upgraded. If you have upgraded since, you will need to executed the long command the next time. After that it should work as well.
I'm sorry for the inconvenience.

@fr34k
at first thank you for all your work!

I have updated from MacOS 10.12 to 10.13.6. then the script v1 installed.
both 1080tis are recognized when I hot plug after login, rendering in c4d Octane work.

second monitor connected to the egpu is black, but the mouse pointer is shown.

Can I use the script v1.2 "bash <(curl -s https://raw.githubusercontent.com/learex/macOS-eGPU/master/macOS-eGPU.sh )"
and just install over it?

Thank you!

use:
GPU rendering, Octane

specs:
iMac Retina 5K, 27 "
4.2 GHz i7
40GB ram
Radeon Pro 580, 8192 MB
2x Sonnet Breakaway Box 550 W
2x 1080ti

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


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

@y81r
yes v1.2 can be installed over v1 just like that.

Also if the second monitor is black + mouse is shown, log out and in again.

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
yoshi101
(@yoshi101)
Active Member
Joined: 1 year ago
 
Posted by: fr34k

@yoshi101
hot plug and log out, log in works in 
nearly all cases. Try it and let me know if it worked.

Hot damn it worked! Yeah had the black screen with mouse cursor visible issue, but after logging off and logging in again its running buttery smooth!!! Thanks so much fr34k!!!

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


fr34k liked
ReplyQuote
Antani72
(@antani72)
Active Member
Joined: 1 year ago
 

Hello everyone.
I want to give thanks to fr34k, I'm a newbie but with this script I have my working egpu.
I tried hardware acceleration with VideoProc (video editor).
Well, the h264 encoding takes advantage of the hardware acceleration, the coding h265 unfortunately not.
Someone could explain to me how I can solve? Is it a drivers problem?

https://imgur.com/ASLsGch

correction: after other tests I discovered that hardware acceleration only works with the internal GPU (intel HD Graphics 4000) and not with the eGPU.

Tips ?

Late 2012 Mac Mini 2,5 GHz Intel Core i5, mac OS High Sierra 10.13.6, eGPU: Sonnet Breakaway 350 + Nvidia GTX1050TI


ReplyQuote
y81r
 y81r
(@y81r)
Active Member
Joined: 1 year ago
 
Posted by: yoshi101
Posted by: fr34k

@yoshi101
hot plug and log out, log in works in 
nearly all cases. Try it and let me know if it worked.

Hot damn it worked! Yeah had the black screen with mouse cursor visible issue, but after logging off and logging in again its running buttery smooth!!! Thanks so much fr34k!!!

Unfortunately not in my case. If I lock out the second monitor jumps on but the imac screen is black and I can not log in because you can not see anything except the mouse. new iMac pro is ordered, hope it solves my problem with the black screen.

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


ReplyQuote
yoshi101
(@yoshi101)
Active Member
Joined: 1 year ago
 
Posted by: y81r
Posted by: yoshi101
Posted by: fr34k

@yoshi101
hot plug and log out, log in works in 
nearly all cases. Try it and let me know if it worked.

Hot damn it worked! Yeah had the black screen with mouse cursor visible issue, but after logging off and logging in again its running buttery smooth!!! Thanks so much fr34k!!!

Unfortunately not in my case. If I lock out the second monitor jumps on but the imac screen is black and I can not log in because you can not see anything except the mouse. new iMac pro is ordered, hope it solves my problem with the black screen.

You can logout without seeing your screen via the keyboard. Did you try pressing cmd+shift+Q then "return". This should force your system to log out, after which the login screen should appear on your external monitor.

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
 
Posted by: yoshi101
Posted by: y81r
Posted by: yoshi101
Posted by: fr34k

@yoshi101
hot plug and log out, log in works in 
nearly all cases. Try it and let me know if it worked.

Hot damn it worked! Yeah had the black screen with mouse cursor visible issue, but after logging off and logging in again its running buttery smooth!!! Thanks so much fr34k!!!

Unfortunately not in my case. If I lock out the second monitor jumps on but the imac screen is black and I can not log in because you can not see anything except the mouse. new iMac pro is ordered, hope it solves my problem with the black screen.

You can logout without seeing your screen via the keyboard. Did you try pressing cmd+shift+Q then "return". This should force your system to log out, after which the login screen should appear on your external monitor.

but it does not!

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


ReplyQuote
Mymantiz_John
(@mymantiz_john)
Vendor
Joined: 3 years ago
 

We assist one of our customer to setup the trashcan with D500X2 , single Monitor. using Fr34k all in one scripts.
Config: Mac Pro with D500 x 2 ( forgot what years it was ) + Single monitor
eGPU: Mantiz Venus + Nvidia 1080. 
a. Run fr34K all in one scripts and reboot. 
b. in the MacOS, hot plug Mantiz Venus ( w/o any display ) into MacOS for 15 sec. 
c. Log out 
d. remove the display from trashcan and plug in to Mantiz Venus for 15 sec.
e. the display is black, press enter, key in the pwd blindly. Done.

Mantiz: ● ●


fr34k liked
ReplyQuote
precision01
(@precision01)
Trusted Member
Joined: 2 years ago
 

Today I tried the script with MacBook Pro 15" Late 2016 + macOS 10.13.6 (17G65) + Aorus Gaming Box GTX 1070.
I believe that the nvidia driver was the latest, since I only did the script standard install with no special configuration: 
bash <(curl -s https://raw.githubusercontent.com/learex/macOS-eGPU/master/macOS-eGPU.sh)

Although it seems that the script runs correctly, and everything is installed, I have some strange bugs.

After booting with eGPU plugged in:

After macOS loads, both macbook's internal display and external display flashes and shows a very distorted image (probably the desktop image).
After some time, macbook's internal display goes black, touch bar behaves strangely and external display shows desktop. But everything is veeeeerrry slow on external monitor. Mouse cursor is veeeery laggy. Clicking on buttons or opening any window is also very laggy. The entire system is very slow.
I tried to log off and log in back, but it only helped the mouse cursor to be a little less laggy. The system was still very slow.

Unfortunately I do not have enough macOS knowledge to help solving this issues, so I will just post the problem here and hope for help.

Thanks @fr34k and everyone else for the great job you are all doing for this community!

Razer Core X + AMD Radeon RX 5700 XT - Macbook Pro 15" Mid 2019 Radeon 560X


ReplyQuote
DeNachtwacht
(@denachtwacht)
Eminent Member
Joined: 1 year ago
 

I installed this today on my New 2018 13,3" MacBook Pro with a Aorus Gaming Box 1080 and I am surprised to be able to tell you that it works flawless, I can even enable G-Sync without problems. I also installed Boot Camp because I expected problems with macOS but in Windows 10 I get all kinds of problems (USB doesn't work, can't set resolutions correctly et cetera). So keep up the good work, and maybe... also build a script for windows? 😉

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


fr34k liked
ReplyQuote
imcalledandy
(@imcalledandy)
Estimable Member
Joined: 3 years ago
 

Thank you once again, @fr34k - I have my 15" 2017 MBP w/ TB working using 10.13.6 and 2 x 1080Ti via Akitio Node boxes.

  • I backed up, installed 10.13.6 over 10.13.4 and rebooted.
  • I then installed the script, rebooted and then logged in, hot plugged both eGPUs at the same time, then logged out and in again.
  • Verified in System Information > Graphics / Displays that both 1080Tis are showing up as External GPUs.

C4D Renders all working fine; I tested Octane, Redshift and Cycles4D.

You are a genius! Fantastic work 🙂

2013 MacPro 2xD700 [email protected] (AKiTiO Thunder2) + macOS 10.13.3
2017 TB MBP 2xGTX1080Ti-TB3 (Akitio Node) + macOS 10.13.4


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

@denachtwacht

uhh, intriguing but windows isn't my main platform, I detest the PowerShell and the cmd.exe, and first and foremost, I'd have no clue of where to start. So this is a huge maybe...
I'll hope I can keep the macOS-eGPU.sh up-to-date until Apple decides to the work of incorporating NVIDIA.

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
 of  21