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

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

 of  77
  RSS

Architek1
(@architek1)
New Member
Joined: 3 years ago
 

My MacBook Pro 2012 requires it to be plugged on boot if you haven’t tried that.

MacBook Pro 2012> Akitio Node> 980Ti > Cinema HD


ReplyQuote
Burt
 Burt
(@burt)
New Member
Joined: 4 years ago
 

I have been use it for a while. But since I turned off my computer yesterday and turned it on today, the egpu don't work anymore!!
So I reinstall it and check system get this...

Listing installation status of packages...

   NVIDIA driver                                                                                                   [387.10.10.10.40.105]

   NVIDIA eGPU enabler                                                                                                   [not installed]

   AMD legacy drivers                                                                                                    [not installed]

   T82 unblocker                                                                                                         [not installed]

   NVIDIA dGPU                                                                                                           [not available]

   NVIDIA macOS 10.13.4/.5 patch                                                                                         [not installed]

   IO PCIE Tunnelled patch                                                                                                   [installed]

   unlocked thunderbolt version                                                                                                      [1]

   thunderbolt daemon                                                                                                    [not installed]

   CUDA

      CUDA drivers                                                                                                             [396.148]

      CUDA developer drivers                                                                                             [not installed]

      CUDA toolkit                                                                                                       [not installed]

      CUDA samples                                                                                                       [not installed]

Listing system information...

   macOS version                                                                                                               [10.13.6]

   macOS build                                                                                                                   [17G65]

   SIP status                                                                                                                        [0]

   thunderbolt interface version                                                                                                     [1]

   eGPU information

      connected eGPU                                                                                                              [true]

      eGPU vendor                                                                                                               [NVIDIA]

   NVIDIA dGPU                                                                                                                   [false]

   AGW version                                                                                                           [10.13.6:17G65]

Graphics/Displays:

 

    AMD Radeon HD 6770M:

 

      Chipset Model: AMD Radeon HD 6770M

      Type: GPU

      Bus: PCIe

      PCIe Lane Width: x16

      VRAM (Dynamic, Max): 512 MB

      Vendor: AMD (0x1002)

      Device ID: 0x6740

      Revision ID: 0x0000

      ROM Revision: 113-C0170C-181

      VBIOS Version: 113-C29503-104

      EFI Driver Version: 01.00.588

      Displays:

        iMac:

          Display Type: LCD

          Resolution: 1920 x 1080 (1080p FHD - Full High Definition)

          UI Looks like: 1920 x 1080

          Framebuffer Depth: 24-Bit Color (ARGB8888)

          Main Display: Yes

          Mirror: Off

          Online: Yes

          Rotation: Supported

          Automatically Adjust Brightness: No

          Connection Type: DisplayPort

 

    NVIDIA Chip Model:

 

      Chipset Model: NVIDIA Chip Model

      Type: External GPU

      Bus: PCIe

      PCIe Lane Width: x4

      VRAM (Dynamic, Max): 0 MB

      Vendor: NVIDIA (0x10de)

      Device ID: 0x17c8

      Revision ID: 0x00a1

      ROM Revision: preset 1.0.0

      Metal: Supported

 

Hardware:

 

    Hardware Overview:

 

      Model Name: iMac

      Model Identifier: iMac12,1

      Processor Name: Intel Core i7

      Processor Speed: 2.8 GHz

      Number of Processors: 1

      Total Number of Cores: 4

      L2 Cache (per Core): 256 KB

      L3 Cache: 8 MB

      Memory: 16 GB

      Boot ROM Version: IM121.004F.B00

      SMC Version (system): 1.71f22

 

Thunderbolt:

 

    Thunderbolt Bus:

 

      Vendor Name: Apple Inc.

      Device Name: iMac

      UID: 0x0001000A1FA65660

      Route String: 0

      Firmware Version: 25.1

      Domain UUID: A188066D-D7EB-A65C-8372-A9E3DED4805C

      Port:

          Status: Device connected

          Link Status: 0x2

          Speed: Up to 10 Gb/s x2

          Receptacle: 1

          Port Micro Firmware Version: 2.1.3

          Cable Firmware Version: 1.0.16

          Cable Serial Number: C4M619300C2F797AQ

 

        AKiTiO Node:

 

          Vendor Name: inXtron

          Device Name: AKiTiO Node

          Vendor ID: 0x41

          Device ID: 0x308

          Device Revision: 0x1

          UID: 0x0041771EA5A89400

          Route String: 1

          Firmware Version: 25.1

          Port (Upstream):

              Status: Device connected

              Link Status: 0x2

              Speed: Up to 10 Gb/s x2

              Current Link Width: 0x1

              Cable Firmware Version: 1.0.16

              Cable Serial Number: C4M619300C2F797AQ

              Link Controller Firmware Version: 0.36.0

 

PCI:

 

    pci10de,fb0:

 

      Type: Audio Device

      Driver Installed: No

      Tunnel Compatible: No

      Pause Compatible: No

      MSI: No

      Bus: PCI

      Slot: Thunderbolt@195,0,1

      Vendor ID: 0x10de

      Device ID: 0x0fb0

      Revision ID: 0x00a1

      Link Width: x4

      Link Speed: 8.0 GT/s

 

    NVIDIA Chip Model:

 

      Name: NVDA,Display-F

      Type: Display Controller

      Driver Installed: Yes

      Tunnel Compatible: No

      Pause Compatible: No

      MSI: No

      Bus: PCI

      Slot: Thunderbolt@195,0,0

      Vendor ID: 0x10de

      Device ID: 0x17c8

      Subsystem ID: 0x0010

      ROM Revision: preset 1.0.0

      Revision ID: 0x00a1

      Link Width: x4

      Link Speed: 8.0 GT/s

what can I do??

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
ed_co
(@ed_co)
Reputable Member
Joined: 4 years 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.

Hey @fr34k,
Everything is looking better and better with time... as it is even looking much easier. Congrats!!
As I use my machine for important stuff, I am not updating until everything looks like is working 😉
So I am in 10.13.5 and I am about to update to 10.13.6. If I run your new script now, it will perform the update to 10.13.6 itself or I have to update it myself from the App Store as usual (as I was doing till now)?
Cheers.

P.S.: were you able to get the old approach to 10.13.6 or still is working just with the new one...

2017 15" MacBook Pro (RP560) [7th,4C,H] + GTX 1080 Ti @ 32Gbps-TB3 (Mantiz Venus) + macOS 10.13 & Win10 [build link]  

ReplyQuote
precision01
(@precision01)
Trusted Member
Joined: 4 years ago
 
Posted by: piranhaco
Posted by: fr34k
Posted by: piranhaco

Hi! After running the script I can see my Nvidia GeForce 1080 TI in the NVIDIA Driver Manager ( (-) G-SYNK Disabled, (-) ECC Not Supported), and I can see it in my System Information/GraphicsDisplays (External GPU PCIe). And if I run Premiere or After Effects I can see both graphic cards the Nvidia and the Internal AMD working in the Activity Monitor/GPU. So the NVIDIA is installed. But:

- There is no eGPU icon in my menu bar on the top, so I can't select the Nvidia or Eject it.
- Both Monitors are using the internal AMD. The external Monitor is connected to my Node Pro using the DisplayPort, but still it is using the AMD.
- I can't restart the iMac with the eGPU connected. I get both monitors in Black, I can hear the iMac running but I have no monitoring at all. 
- It only works if I connected the eGPU during the Apple Logo at the beginning.  
- Even with Premiere and After Effects taking advantages from the Nvidia and CUDA, I can't run benchmarks using the Nvidia or assign Nvidia to the main Monitor, it is just there, working in the background but I can't select nothing.
- If I try hot-unplugged I get the fatal shutdown. 

- If I run the --Checksystem in macOS-eGPU.sh I get this:

NVIDIA driver  [387.10.10.10.30.106] NVIDIA eGPU enabler  [installed] AMD legacy drivers   [not installed] T82 unblocker  [not installed] NVIDIA dGPU [not available] NVIDIA macOS 10.13.4/.5 patch  [not installed] IO PCIE Tunnelled patch   [not installed] unlocked thunderbolt version   [2] thunderbolt daemon  [not installed] CUDA
CUDA drivers  [396.64] 
CUDA developer drivers  [not installed]
CUDA toolkit  [not installed] CUDA samples  [not installed]

Listing system information...

macOS version                                                       [10.13.4] macOS build                                                          [17E199] SIP status                                                                [0] thunderbolt interface version                              [2]

eGPU information
connected eGPU                                                      [true] eGPU vendor                                                       [NVIDIA] NVIDIA dGPU                                                           [false] AGW version                                                  [10.13.4:17E199]

This is my System:

This is my set up:
- iMac Retina 5K, 27-inch, Late 2015
- High Sierra 10.13.4 (17E199) 
- Node Pro (T3)
- Nvidia Geforce Gtx 1080 Ti
- Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter
- Thunderbolt 2 cable 
- DELL UP2716D Display 27-inch (2560 x 1440).
- Mini-DisplayPort to HDMI Adapter

@piranhaco

Thanks! That's how a support request should look like.

The problem here lies in that the .4/.5 patch seems to be not installed.

[Please login to see this]

I know that what packages are needed is somewhat confusing but the whole NVIDIA eGPU situation is a mess and I try to have backwards compatibility.

Man! I'm almost there!!!!!!!

Ok, I just did what you said. I have now the NVIDIA macOS 10.13.4/.5 patch installed. And I HAVE THE ICON IN THE MENU! so, a big step. 

Now. Everything looks fine, I have the Icon, my System is showing the Nvidia for my External Monitor and it shows the Nvidia in the Overview as the main Graphics. BUT: My External monitor is completely black. I tried hot connected the eGPU in the logo, in the log in, in the Desktop, but nothing seems to work. Any ideas? What can be missing?

Do you have the mouse cursor on the "back" external monitor?
If yes, you just have to logout and login with eGPU still connected.

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


fr34k liked
ReplyQuote
piranhaco
(@piranhaco)
Active Member
Joined: 3 years ago
 
Posted by: precision01
Posted by: piranhaco
Posted by: fr34k
Posted by: piranhaco

Hi! After running the script I can see my Nvidia GeForce 1080 TI in the NVIDIA Driver Manager ( (-) G-SYNK Disabled, (-) ECC Not Supported), and I can see it in my System Information/GraphicsDisplays (External GPU PCIe). And if I run Premiere or After Effects I can see both graphic cards the Nvidia and the Internal AMD working in the Activity Monitor/GPU. So the NVIDIA is installed. But:

- There is no eGPU icon in my menu bar on the top, so I can't select the Nvidia or Eject it.
- Both Monitors are using the internal AMD. The external Monitor is connected to my Node Pro using the DisplayPort, but still it is using the AMD.
- I can't restart the iMac with the eGPU connected. I get both monitors in Black, I can hear the iMac running but I have no monitoring at all. 
- It only works if I connected the eGPU during the Apple Logo at the beginning.  
- Even with Premiere and After Effects taking advantages from the Nvidia and CUDA, I can't run benchmarks using the Nvidia or assign Nvidia to the main Monitor, it is just there, working in the background but I can't select nothing.
- If I try hot-unplugged I get the fatal shutdown. 

- If I run the --Checksystem in macOS-eGPU.sh I get this:

NVIDIA driver  [387.10.10.10.30.106] NVIDIA eGPU enabler  [installed] AMD legacy drivers   [not installed] T82 unblocker  [not installed] NVIDIA dGPU [not available] NVIDIA macOS 10.13.4/.5 patch  [not installed] IO PCIE Tunnelled patch   [not installed] unlocked thunderbolt version   [2] thunderbolt daemon  [not installed] CUDA
CUDA drivers  [396.64] 
CUDA developer drivers  [not installed]
CUDA toolkit  [not installed] CUDA samples  [not installed]

Listing system information...

macOS version                                                       [10.13.4] macOS build                                                          [17E199] SIP status                                                                [0] thunderbolt interface version                              [2]

eGPU information
connected eGPU                                                      [true] eGPU vendor                                                       [NVIDIA] NVIDIA dGPU                                                           [false] AGW version                                                  [10.13.4:17E199]

This is my System:

This is my set up:
- iMac Retina 5K, 27-inch, Late 2015
- High Sierra 10.13.4 (17E199) 
- Node Pro (T3)
- Nvidia Geforce Gtx 1080 Ti
- Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter
- Thunderbolt 2 cable 
- DELL UP2716D Display 27-inch (2560 x 1440).
- Mini-DisplayPort to HDMI Adapter

@piranhaco

Thanks! That's how a support request should look like.

The problem here lies in that the .4/.5 patch seems to be not installed.

[Please login to see this]

I know that what packages are needed is somewhat confusing but the whole NVIDIA eGPU situation is a mess and I try to have backwards compatibility.

Man! I'm almost there!!!!!!!

Ok, I just did what you said. I have now the NVIDIA macOS 10.13.4/.5 patch installed. And I HAVE THE ICON IN THE MENU! so, a big step. 

Now. Everything looks fine, I have the Icon, my System is showing the Nvidia for my External Monitor and it shows the Nvidia in the Overview as the main Graphics. BUT: My External monitor is completely black. I tried hot connected the eGPU in the logo, in the log in, in the Desktop, but nothing seems to work. Any ideas? What can be missing?

Do you have the mouse cursor on the "back" external monitor?
If yes, you just have to logout and login with eGPU still connected.

Yes, I have (Had) the mouse cursor on the black external monitor, but I tried to logout with the eGPU connected and this happened:

- If i tried to log in with the eGPU connected I got the internal monitor in black but the External monitor working but like overworking, like if the processor was having a bad time.
- If I tried to connect the eGPU on the log in or the Apple logo I got the black screen on the external monitor but the Internal Display was working fine. 
- If i tried to Mirror the monitors I got a Scary full red screen on the Internal Display and a the same black screen with the mouse over it in the External Monitor. But:

- I tried to uninstall all the scripts and try to do it everything again (without re installing the macOS) and now I don't have any kind of interaction with the Node Pro. It is worst. Like nothing at all, Everything looks fine in the check system, I have everything installed, the drivers, the enabler, the T2 Enabler, the Patch, the wrangler... everything but there is no interaction with the Node, I can't see the Card, or I can disconnect the card and nothing happens, not a simple blink in my display, nothing at all. I tried to back with the Time Machine to the exact moment when everything was working excellent the Black external monitor and still I can't have any kind of interaction with the Node! I don't know what happened! Obviously I'm going to try to erase the iMac and doing a clean Install again tonight. 

But, just to confirm something. I have a - iMac Retina 5K with Thunderbolt 2 Late 2015, the Node Pro (T3), Nvidia Geforce Gtx 1080 Ti, a Thunderbolt 3 (USB-C) to Thunderbolt 2 Adapter, a Thunderbolt 2 cable  and a DELL UP2716D Display 27-inch (2560 x 1440). 

So, what are the best options for me regarding macOS, Nvidia Drivers, NVIDIA eGPU support version? Is it a good idea to upgrade my macOS to 13.6? is everything in 13.6 stable? or should I stay in 13.4? because of my iMac with Thunderbolt 2 situation? 

And as a side note, I never would be able to install everything from this script, I mean, I always got the message --nvidiaEGPUsupport (Skip - Unsupported) And if I tried the Nvidia Drivers 378.10.10.10.30.103 it says that it can't find it. so I had to mix between this script and try to install the --nvidiaEGPUsupport manually from yifanlu [APP] NVIDIA eGPU support for High Sierra (NVIDIAEGPUSupport). so because I'm in 13.4 now I used the NVDAEGPUSuppor-v8.zip  and tried ti mach it with the drivers 387.10.10.10.30.103.pkg.

So, and I know it a lot of questions, but. It's not very clear what are the right steps for everything. I mean:

- I know that I need to run the purge-wrangler if I'm using a T2, so in what moment should I run the purge-wrangler script? Before or after yours? 
- Is it ok to try to install the NVDAEGPUSuppor-v8 manually? why am I getting this nvidiaEGPUsupport (Skip - Unsupported) from the script?
- Should I try to update the macOS to 13.6 or should I stay in the 13.4? 

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

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

@piranhaco
Under normal circumstances one of these steps should help.

  • Step set 1
    • boot without eGPU
    • hot plug eGPU with monitor
    • log out
  • Step set 2
    • boot without eGPU
    • hot plug eGPU only (no external monitor)
    • wait 15 sec
    • log out
    • hot plug monitor
    • wait 15 sec
    • log in
  • Step set 3
    • boot without eGPU
    • log out
    • hot plug eGPU
  • Step set 4 (no FileVault)
    • boot without eGPU
    • hot plug before first login

EDIT: Hadn't seen the other/your answer:


So, what are the best options for me regarding macOS, Nvidia Drivers, NVIDIA eGPU support version? Is it a good idea to upgrade my macOS to 13.6? is everything in 13.6 stable? or should I stay in 13.4? because of my iMac with Thunderbolt 2 situation? 

.6 should be good choice, most report it working.


And as a side note, I never would be able to install everything from this script, I mean, I always got the message --nvidiaEGPUsupport (Skip - Unsupported) And if I tried the Nvidia Drivers 378.10.10.10.30.103 it says that it can't find it. so I had to mix between this script and try to install the --nvidiaEGPUsupport manually from yifanlu [APP] NVIDIA eGPU support for High Sierra (NVIDIAEGPUSupport). so because I'm in 13.4 now I used the NVDAEGPUSuppor-v8.zip  and tried ti mach it with the drivers 387.10.10.10.30.103.pkg.

It seems you've found a bug. This should not have happened! I'll try to fix it. EDIT: Should have been fixed with version 1.4, see which one you have so I can check if it's been resolved.


So, and I know it a lot of questions, but. It's not very clear what are the right steps for everything. I mean:


- I know that I need to run the purge-wrangler if I'm using a T2, so in what moment should I run the purge-wrangler script? Before or after yours? 

You don't need to. The script can handle that as well. --unlockThunderboltV12 | -V is exactly for that.


- Is it ok to try to install the NVDAEGPUSuppor-v8 manually? why am I getting this nvidiaEGPUsupport (Skip - Unsupported) from the script?

For .4/.5 it was OK, but for .6 it is not! .6 requires a completely different patch


- Should I try to update the macOS to 13.6 or should I stay in the 13.4? 

 s.a.

fr34k's macOS-eGPU.sh on GitHub or 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)


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

@burt
I see. The drivers somehow don't 
recognise the eGPU correctly anymore. (NVIDIA Chip Model) So they know it's a NVIDIA GPU but not which one. This has never happened before in .6 only in earlier versions
You can try 3 things:

  1. boot, hot-plug, log out, log in
  2. try macos-egpu -U, reboot, macos-egpu
  3. try macos-egpu -R -n

If it does not work or you can get it working some other way, report back!

fr34k's macOS-eGPU.sh on GitHub or 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: 3 years ago
 

@ed_co
Um, macOS won't be update by my script. That's would not be beneficial as macOS needs a reboot before the changes can be made, so you'll need to go to the AppStore or to the Support download page and download it manually.

An update from .5 to .6 of the eGPU software should be fully handled by the script.

no the old patch could not be ported. I'm using the new one for .6

EDIT: AHHH now I understood.
The script had a bug, that the requirements check was before the update check. So if you updated macOS and the underlying system changed then an error message would be displayed. That's what I meant: If you execute the script before an update of macOS then the script would not change anything and update itself (update the script) to remove the bug. If you would have upgraded macOS then the requirements check would prevent the update of the script and one had to use the long command again. (On last time though.)

fr34k's macOS-eGPU.sh on GitHub or 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)


ed_co liked
ReplyQuote
piranhaco
(@piranhaco)
Active Member
Joined: 3 years ago
 
Posted by: fr34k

@piranhaco
Under normal circumstances one of these steps should help.

  • Step set 1
    • boot without eGPU
    • hot plug eGPU with monitor
    • log out
  • Step set 2
    • boot without eGPU
    • hot plug eGPU only (no external monitor)
    • wait 15 sec
    • log out
    • hot plug monitor
    • wait 15 sec
    • log in
  • Step set 3
    • boot without eGPU
    • log out
    • hot plug eGPU
  • Step set 4 (no FileVault)
    • boot without eGPU
    • hot plug before first login

EDIT: Hadn't seen the other/your answer:


So, what are the best options for me regarding macOS, Nvidia Drivers, NVIDIA eGPU support version? Is it a good idea to upgrade my macOS to 13.6? is everything in 13.6 stable? or should I stay in 13.4? because of my iMac with Thunderbolt 2 situation? 

.6 should be good choice, most report it working.


And as a side note, I never would be able to install everything from this script, I mean, I always got the message --nvidiaEGPUsupport (Skip - Unsupported) And if I tried the Nvidia Drivers 378.10.10.10.30.103 it says that it can't find it. so I had to mix between this script and try to install the --nvidiaEGPUsupport manually from yifanlu [APP] NVIDIA eGPU support for High Sierra (NVIDIAEGPUSupport). so because I'm in 13.4 now I used the NVDAEGPUSuppor-v8.zip  and tried ti mach it with the drivers 387.10.10.10.30.103.pkg.

It seems you've found a bug. This should not have happened! I'll try to fix it. EDIT: Should have been fixed with version 1.4, see which one you have so I can check if it's been resolved.


So, and I know it a lot of questions, but. It's not very clear what are the right steps for everything. I mean:


- I know that I need to run the purge-wrangler if I'm using a T2, so in what moment should I run the purge-wrangler script? Before or after yours? 

You don't need to. The script can handle that as well. --unlockThunderboltV12 | -V is exactly for that.


- Is it ok to try to install the NVDAEGPUSuppor-v8 manually? why am I getting this nvidiaEGPUsupport (Skip - Unsupported) from the script?

For .4/.5 it was OK, but for .6 it is not! .6 requires a completely different patch


- Should I try to update the macOS to 13.6 or should I stay in the 13.4? 

 s.a.

Thanks! I'll try it today!

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
rhenriques11
(@rhenriques11)
Eminent Member
Joined: 3 years ago
 

This script still works great under all the latest MacOS and Nvidia updates (using fr34k v1.4). I'm using two external eGPU's (1080 Ti's) and stability has been rock solid. The only problem is the KP when we shutdown. fr34k don't you have any clue of the possible culprit for this behavior?

To do: Create my signature with system and expected eGPU configuration information to give context to my posts. I have no builds.

.

ReplyQuote
 of  77