Setup & Software Discussions
[SCRIPT] PurgeWrangler: AMD + NVIDIA eGPUs for all Thunderbolt Macs
 

[SCRIPT] PurgeWrangler: AMD + NVIDIA eGPUs for all Thunderbolt Macs  

 of  39
  RSS

PsyPryss
(@psypryss)
Trusted Member
Joined: 2 years ago
 

@mac_editor
When the script (3.1.0) is run it shows “mkdir: /usr/local/bin: Operation not permitted”.  Then it proceeds to ask for password. I downloaded the script and made it executable. Am I missing something?

Mid 2012 15" (Non-Retina) MPB GT650M + RX580 (AKiTio Node via TB3 -> TB2/TB1 Adaptor) macOS 10.13.4/Win10


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@psypryss Did 3.0.2 work fine for you? Don’t seem to recall what I changed there. Will take a look. Running with sudo may resolve the problem. 

UPDATE: Should not be problematic. A minor bug where that section of code executes without superuser permissions. Recursive call re-runs that part anyway so binary should install fine. Regardless, shall update the script with the minor fix in a moment.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


PsyPryss liked
ReplyQuote
PsyPryss
(@psypryss)
Trusted Member
Joined: 2 years ago
 

I’ll run it with sudo then. Thanks. 3.0.2 works. 3.1.0 works too. But 3.0.2 didn’t have any errors.

Mid 2012 15" (Non-Retina) MPB GT650M + RX580 (AKiTio Node via TB3 -> TB2/TB1 Adaptor) macOS 10.13.4/Win10


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@psypryss 3.1.0 bin should have installed fine. Try running again in 2 minutes (purge-wrangler command). Should update to 3.1.1 which I think should resolve it.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


PsyPryss liked
ReplyQuote
PsyPryss
(@psypryss)
Trusted Member
Joined: 2 years ago
 

Gotcha.
Btw, purge-nvda 2.1.0 also has the same error. 

Mid 2012 15" (Non-Retina) MPB GT650M + RX580 (AKiTio Node via TB3 -> TB2/TB1 Adaptor) macOS 10.13.4/Win10


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@psypryss Yes they basically have the same mechanism so if 3.1.1 works for you here, the I'll update that script too. Please let me know how the update process goes.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


PsyPryss liked
ReplyQuote
PsyPryss
(@psypryss)
Trusted Member
Joined: 2 years ago
 

@mac_editor the error is gone. Works great. Thanks!

Thanks for updating purge-nvda too. 

Mid 2012 15" (Non-Retina) MPB GT650M + RX580 (AKiTio Node via TB3 -> TB2/TB1 Adaptor) macOS 10.13.4/Win10


ReplyQuote
Jeroenvankeulen
(@jeroen-van-keulen)
Trusted Member
Joined: 2 years ago
 

 

15

ALLn1
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Mojave (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
✧✧


ReplyQuote
dream3
(@dream3)
Estimable Member
Joined: 3 years ago
 

@zetthard Hey man have you submitted your guide yet?

I have a similar setup and was wondering if I can safely upgrade to 10.13.4. 
You mentioned the script work fine but what about day to day usage? Any bugs or annoyances?
Heard some guys had issues with sleeping function?

MacOS: 15" Retina Macbook Pro 2015 Iris Pro only
Windows 10: Tornado F5 laptop with discrete GTX 1060
eGPU: GIGABYTE RX 580


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

Works on 10.13.5!

I like to live on the edge– so I upgraded to 10.13.5 and after re-running the purge-wrangler script everything is working exactly as before. 👍

Thanks yet again! The script has been getting easier to use with each version too– I enjoyed the menu that is present in v3. 🙂

Mid-2015 MacBook Pro + Akitio Node + Radeon RX580 👨🏻‍💻


ReplyQuote
PsyPryss
(@psypryss)
Trusted Member
Joined: 2 years ago
 

Reporting that purge-wrangler works on 10.13.5 on 2012 non-retina MBP.

Mid 2012 15" (Non-Retina) MPB GT650M + RX580 (AKiTio Node via TB3 -> TB2/TB1 Adaptor) macOS 10.13.4/Win10


ReplyQuote
TheFurious
(@thefurious)
Active Member
Joined: 1 year ago
 

hi guys,

after a failed attempt with the HP Omen Accelerator (didn´t even booted up) I tried a new one with the Sonnet Breakaway Box 350.

At least the Graphicscard (AMD RX 580)  get identified and the Box is booting up. But: My Macbook Pro Retina Early 2015 isn´t switching to it and stays at the Iris 6000. The Fans of the GPU working only when I disconnect the eGPU. Any Ideas? 

Thanks and greetings from Germany 🙂

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


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@thefurious If you're using external display -> connect the display to eGPU, then set it as main display. If you're not using an external display, you won't see the card in About This Mac.., but some apps that address eGPUs may be able to use it (such as computation benchmarks).

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


ReplyQuote
TheFurious
(@thefurious)
Active Member
Joined: 1 year ago
 

Ahhh...thanks. Will Test it when I’m back home. Can you recommend a Benchmark who uses the GPU with the internal display? The Heaven Benchmark seems to use the internal GPU...

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


ReplyQuote
Jeroenvankeulen
(@jeroen-van-keulen)
Trusted Member
Joined: 2 years ago
 

@TheFurious, Use Geekbench.

ALLn1
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Mojave (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
✧✧


ReplyQuote
Jeroenvankeulen
(@jeroen-van-keulen)
Trusted Member
Joined: 2 years ago
 

ALLn1 Installer 10.13.4 > 10.14 beta Latest release

ALLn1


What does it do?
This little app let's you install all  @mac_editor scripts without using terminal in depth.

  1. It installs the scripts like it would when using terminal commands
  2. Places ALLn1 enabler in the folder Programs
  3. Deletes PW cTB enabler 2.0 (if it is in applications folder)


Instructions for ALL
n1 Installer:

!!!Make sure SIP is disabled!!!

Edit: if on 10.14 b, reboot after installing twice.

  1. Download ALLn1.dmg
  2. Mount ALLn1.dmg by clicking the icon
  3. Open ALLn1 Installer
  4. Select the script you want to install
  5. Wait a moment, you will be asked your password.
  6. type your password (script is being installed)
  7. In the background ALLn1 is placed in Programs folder.

After your first patch you can easily acces your installed scripts by just opening ALLn1 from you Program folder.

Scripts will auto update like normal.

Download

UPDATE:
Installer will automatically contain the latest release

ALLn1
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Mojave (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
✧✧


Kzsma, Miguel Pereira, spidervideo and 3 people liked
ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@jeroen-van-keulen Please see the main post's Step 2, which now uses a version-agnostic terminal command. This means you won't have to update the installer every time per version. It will simply fetch and download the latest version automatically.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


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

Hi All,

So first I want to say thanks! These scripts are fantastic. I have a 2015 MacBook Pro, and I've been looking forward to the prospect of have an eGPU. Then I heard Apple dropped support for everything without Thunderbolt 3, which prompted me to find this website. I haven't purchased any hardware yet (because the crypto-mining buttholes screwed up the GPU market), but I was curious how the script worked.

After browsing the purge-wrangle.sh script, I found out it's literally just a string replacement. <Moderated //@mac_editor>. So at this point I understood WHAT worked, but I didn't know WHY it worked.

So I downloaded the Hopper Disassembler, as it is able to show cool things like control flow graphs and convert assembly into pseudocode, which looks like a strange mix of assembly and C. 

BTW, I don't have much experience reverse engineering and modifying executable code, but I do sometimes browse assembly generated from my C++ compiler. 

Here is the pseudocode:

<Moderated //@mac_editor>

Here is the assembly:

<Moderated //@mac_editor>

And now we see why only Thunderbolt3 works. <Moderated //@mac_editor>. The purge-wrangler.sh script modifies the kernel extension to only check for the Thunderbolt version that is on your current system.

So basically, I wouldn't say Apple is actively blocking Thunderbolt 1/2. They are just not supporting it. If we had the source code, we could easily change this to support TB2 and TB1.  Oh well. Poop.

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


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@duhlong Posting Apple code (especially disassembled) and discussing the details in public is not recommended/permitted - although we don't have such rules at the moment. I have read your post and you're exactly correct in how purge-wrangler works, but in this case, I feel I cannot approve your post here. Sincerest apologies.

Also, about "actively blocking" vs. "not supported" - I felt the former was more accurate because TB1 & 2 were never supported to begin with. Now they are blocked, in a rudimentary sense.

Edit: Have moderated your post and approved. Good work looking into this. I used Hopper as well.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


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

@mac_editor  Ah, OK. Apologies. I just thought it would be interesting. I didn't consider any legal issues surrounding posting Apple's assembly. That thought did not cross my mind. Though I see you took out a verbal description as well. Also unsure of the legalities of verbally describing such details.

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


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@duhlong Appreciate your understanding! Thank you, and welcome to egpu.io.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


ReplyQuote
TheFurious
(@thefurious)
Active Member
Joined: 1 year ago
 

Thanks Guys! Works now "almost" like charm. The 580 is detected and also in use. 
Why only "almost"? I have huge problems with sleep/wakeup processes. It seems that my macbook goes not into sleepmode properly and is rebooting. 

Anyone also with the same issues and maybe a solution?

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


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@thefurious Script also has a hibernation disable option. Please try that.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


ReplyQuote
TheFurious
(@thefurious)
Active Member
Joined: 1 year ago
 

@mac_editor 

THX will try that. 

But what if want to keep the Hibernation Mode?

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


ReplyQuote
Jeroenvankeulen
(@jeroen-van-keulen)
Trusted Member
Joined: 2 years ago
 

@mac_editor,

Its fixed and updated. I cant respond to our private message. Somehow this webforum is breaking down on me. I cant quote people anymore, I cant upload anything and my earlier uploads I cant see. And now the latest responses are hovering over the send button in private messages mode, but only in our conversation...

ALLn1
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Mojave (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
✧✧


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@thefurious Even officially supported configs have sleep issues lol. See here.

@jeroen-van-keulen Thanks for letting me know. Noticed that too. Messages is broken. Doesn't handle long lines well.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


ReplyQuote
Guru Nightmare
(@gurunightmare)
Active Member
Joined: 2 years ago
 

Runnin' GREAT!! on my Mac Mini 2014 (late) + Akitio Node + Rx 580 + 10.13.5. Thousands thumbs up!!

screen

Mac Mini Late 2014 + MSI Radeon RX580 Gaming X [email protected]>TB3 (AKiTiO Node)


ReplyQuote
Jeroenvankeulen
(@jeroen-van-keulen)
Trusted Member
Joined: 2 years ago
 

Report:

Schermafbeelding 2018 06 04 om 23.05.24
image

Script working on 10.14.0 beta 1
PW cTB enabler installer is working after a reboot after the first boot.

Geekbench results

ALLn1
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Mojave (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
✧✧


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@jeroen-van-keulen are symptoms same without any system modifications? Icon shows briefly, etc..

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


ReplyQuote
Jeroenvankeulen
(@jeroen-van-keulen)
Trusted Member
Joined: 2 years ago
 

Yes! Icon showed up. Then nothing.

ALLn1
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Mojave (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
✧✧


ReplyQuote
dream3
(@dream3)
Estimable Member
Joined: 3 years ago
 

@mac_editor

When should I activate option 8? I have a TB2, Mid 2015 iGPU macbook pro with aorus RX 580, 10.13.5.

MacOS: 15" Retina Macbook Pro 2015 Iris Pro only
Windows 10: Tornado F5 laptop with discrete GTX 1060
eGPU: GIGABYTE RX 580


ReplyQuote
Victorcan
(@victorcan)
Active Member
Joined: 1 year ago
 

Might it be beneficial to permanently disable sip ?
It reenables itself after the initial boot after it was disabled, And any time I have problems the problems seem to go away once I launch with SIP disabled, don't even need to run purge wrangler? Is this normal ?

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


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@dream3 It may resolve deep sleep issues with eGPU plugged in on mac notebooks. Disabling FileVault as well combined, may help.

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


ReplyQuote
Jeroenvankeulen
(@jeroen-van-keulen)
Trusted Member
Joined: 2 years ago
 

UPDATE:

PW cTB installer works on 10.14 b1 after rebooting twice after installing 10.14.b1

ALLn1
MBP11,4, i7-4980HQ, 256gb SSD, 16gbRAM Mojave (Sonnet Breakaway box 350 + Gigabyte Radeon RX 580 Gaming 8GB)
MacBook7,1 A1342, P8600 120gb SSD 4gbRAM. Mojave (Hiking/Camping)
iMac7,1 A1224, T9500 CPU upgrade 120gb SSD 4gbRAM. HS
Mac mini3,1 P7350, 250gb SSD 8gbRAM. HS (server) iPhone10,3 64gb. iOS12 iPad5,3, 16gb. iOS12 iPod shuffle 2nd gen. 2gb
✧✧


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

Hi, what can i try to get this R280 (6GB) to work. Its only recognized as: 

AMD (0x1002) 
Device ID 0x6798

I tried to install the "automate-eGPU.kext", but after loading this happens: "

/Library/Extensions/automate-eGPU.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8)." 

Kext cache is already refreshed. 

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


ReplyQuote
mac_editor
(@mac_editor)
Noble Member Moderator
Joined: 2 years ago
 

@fabz Try fixing permissions & refreshing cache:

sudo chown -R root:wheel /Library/Extensions
sudo chmod -R 755 /Library/Extensions
sudo touch /Library/Extensions
sudo reboot

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + Vega 64 [Sonnet Breakaway 350 -> 600W]


itsage liked
ReplyQuote
 of  39