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

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

 of  42
  RSS

PascalB
(@pascalb)
Active Member
Joined: 4 weeks ago
 

@mac_editor

So, as promised, here is the full output of purge-wrangler .sh 6.0.3 script execution on my config :

>> PurgeWrangler (6.0.3)
1. Setup eGPU
2. System Status
3. Uninstall
4. Recovery
5. More Options
6. Donate
7. Quit
>> Setup eGPU
Plug-in eGPU. Press ESC if you are not plugging in eGPU.
External GPU Radeon VII
GPU Arch Vega 20 
Thunderbolt 2
Ti82 Enclosure No
Backing up...
Backup refreshed.
Patching for AMD eGPUs...
Patches applied.
Detecting anomalies...
Will you be using an external monitor? [Y/N]:Y

After pressing Y:

Detected System GPUs:
NVIDIA GeForce GTX 780M
No resolutions to any anomalies if present.
Sanitizing system...
System sanitized.
Modifications complete.
Reboot to apply changes.
Reboot Now? [Y/N]:

PS: regarding your PM, no problem of course ! (I'm not allowed to write a PM yet 😉 )

This post was modified 3 weeks ago

iMac 27" i7 - mid 2013 (dGPU : NVIDIA GeForce GTX 780M 4 Go) with 2 TB1 ports - TB1 Port #2 : eGPU : Sonnet eGFX Breakaway Box 650 OC + Gibabyte Radeon VII - TB1 Port #1 : Akitio Thunder3 RAID Station + Akitio Thunder D3 with SSD inside - External display (NEC Spectraview 27" PW272W connected to Atikio Thunder3 RAID Station Display port (direct connection to eGPU Display port is not supported : black screen)


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@pascalb

Thanks! For future logs, I suggest just taking screenshots (lets me see exactly how the output looks) as I also debug spacing and console presentation ;p

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
PascalB
(@pascalb)
Active Member
Joined: 4 weeks ago
 

@mac_editor

Noted 🙂

Actually except applying code style and 1 ligne of comment, I didn't changed anything (i.e removed any CR/LF). The output was clean.

BTW, the good news (I'm sure you knew it but I was wondering) is that when uninstalling/reinstalling the script (which means disabling/enabing the eGPU) , "prefer eGPU use" settings remain.

iMac 27" i7 - mid 2013 (dGPU : NVIDIA GeForce GTX 780M 4 Go) with 2 TB1 ports - TB1 Port #2 : eGPU : Sonnet eGFX Breakaway Box 650 OC + Gibabyte Radeon VII - TB1 Port #1 : Akitio Thunder3 RAID Station + Akitio Thunder D3 with SSD inside - External display (NEC Spectraview 27" PW272W connected to Atikio Thunder3 RAID Station Display port (direct connection to eGPU Display port is not supported : black screen)


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 
Posted by: @pascalb

BTW, the good news (I'm sure you knew it but I was wondering) is that when uninstalling/reinstalling the script (which means disabling/enabing the eGPU) , "prefer eGPU use" settings remain.

Those settings are interestingly almost completely decoupled from Graphics and seemed to be baked into Finder directly when I had investigated last. So those shouldn’t be a worry👍

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


PascalB liked
ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago

ReplyQuote
PascalB
(@pascalb)
Active Member
Joined: 4 weeks ago
 

@mac_editor

I'll try to upgrade tomorrow and will tell you when it's done.

iMac 27" i7 - mid 2013 (dGPU : NVIDIA GeForce GTX 780M 4 Go) with 2 TB1 ports - TB1 Port #2 : eGPU : Sonnet eGFX Breakaway Box 650 OC + Gibabyte Radeon VII - TB1 Port #1 : Akitio Thunder3 RAID Station + Akitio Thunder D3 with SSD inside - External display (NEC Spectraview 27" PW272W connected to Atikio Thunder3 RAID Station Display port (direct connection to eGPU Display port is not supported : black screen)


ReplyQuote
PascalB
(@pascalb)
Active Member
Joined: 4 weeks ago
 

@mac_editor As promised, I confirm that the patch works perfectly under Catalina Beta 3. Here is the expected output :

>> PurgeWrangler (6.0.3)

 

 1. Setup eGPU

 2. System Status

 3. Uninstall

 4. Recovery

 

 5. More Options

 6. Donate

 7. Quit

 

>> Setup eGPU

 

Plug-in eGPU. Press ESC if you are not plugging in eGPU.

 

External GPU Radeon VII

GPU Arch Vega 20 

Thunderbolt 2

Ti82 Enclosure No

 

Backing up...

 

Last Backup     10.15.1 [19B77a]

Current System  10.15.1 [19B86a]

 

Updating backup...

Update complete.

 

Patching for AMD eGPUs...

Patches applied.

 

Detecting anomalies...

 

Will you be using an external monitor? [Y/N]: Y

 

Detected System GPUs:

NVIDIA GeForce GTX 780M

 

No resolutions to any anomalies if present.

 

Sanitizing system...

System sanitized.

Modifications complete.

 

Reboot to apply changes.

 

Reboot Now? [Y/N]:

 

 One comment however : the eGPU is seen as a Thunderbolt 2 device. Even if the GFX is a TB 3 device attached to my iMac through a TB3 -> TB 1/2 adapter, my iMac doesn't (officially) support TB 2 😉

This post was modified 3 weeks ago

iMac 27" i7 - mid 2013 (dGPU : NVIDIA GeForce GTX 780M 4 Go) with 2 TB1 ports - TB1 Port #2 : eGPU : Sonnet eGFX Breakaway Box 650 OC + Gibabyte Radeon VII - TB1 Port #1 : Akitio Thunder3 RAID Station + Akitio Thunder D3 with SSD inside - External display (NEC Spectraview 27" PW272W connected to Atikio Thunder3 RAID Station Display port (direct connection to eGPU Display port is not supported : black screen)


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@pascalb

The Thunderbolt version shown in the output is actually one reported by your Mac. We encountered this issue where some TB1 Macs reported as TB2 (and used the same device class) - this was fixed in script version 2.0.2 so that it patches correctly - meaning it worked as needed. 

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

macOS 10.15.1 is publicly available. Do not update if on tb1/2 Mac until script update is released. My laptop is away so I can’t release immediately plus I need to make more changes. 

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


itsage liked
ReplyQuote
itsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
 

@mac_editor This is the most rushed release from first beta build to public I’ve ever recalled. This is about to sum up what Apple’s focus is nowadays. 

This post was modified 2 weeks ago

Best ultrabooks for eGPU use | eGPU enclosure buying guide


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@itsage

I agree. Are Navi drivers still in?

Also does patch work for you?

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
itsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
 

@mac_editor Yes Navi drivers are in this 10.15.1 public release. I will test your 6.0.3 version later tonight and report back.

### AMDRadeonX6000.kext
* pci device: 7310 - Navi 10
* pci device: 7312 - unknown device
* pci device: 7318 - unknown device
* pci device: 7319 - unknown device
* pci device: 731a - unknown device
* pci device: 731b - unknown device
* pci device: 731f - Navi 10 [Radeon RX 5700 / 5700 XT]

### AMDRadeonX6000HWServices.kext
* pci device: 7310 - Navi 10
* pci device: 7312 - unknown device
* pci device: 7318 - unknown device
* pci device: 7319 - unknown device
* pci device: 731a - unknown device
* pci device: 731b - unknown device
* pci device: 731f - Navi 10 [Radeon RX 5700 / 5700 XT]
* pci device: 7340 - Navi 14 [Radeon RX 5500 / 5500M]
* pci device: 7341 - unknown device
* pci device: 7343 - unknown device
* pci device: 7347 - unknown device
* pci device: 7360 - unknown device
This post was modified 2 weeks ago

Best ultrabooks for eGPU use | eGPU enclosure buying guide


ReplyQuote
psonice
(@psonice)
Estimable Member
Joined: 2 years ago
 

Ah, the wonderful feeling when you check in to see if anyone else has trouble with 10.15.1, and read the warning 😀

Can live without the eGPU for a while, but I needed 10.15.1 (dev stuff). Let me know if you need another test point for 6.0.3 (developer, have backups, not worried about breaking stuff). I'm on a late 2014 iMac 27" with Radeon M295X / TB2, plus Vega 56 in a Sonnet eGFX 550.

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


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@psonice

I’ll reach out to you shortly via PM. 
edit: sent. 

This post was modified 2 weeks ago

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
psonice
(@psonice)
Estimable Member
Joined: 2 years ago
 

@mac_editor

Worked perfectly, thanks 🙂 Will update if I see anything different. Let me know if you want a screen cap of the output. 

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


ReplyQuote
Netcho
(@netcho)
Active Member
Joined: 7 months ago
 

I see we will have the patch soon. Hope it is very soon 🙂 because I shot my self in the foot and updated to 10.15.1

MacBook Pro 2015 15” 2.5 GHz


ReplyQuote
itsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
 

@mac_editor Purge-Wrangler 6.0.3 worked great with 2013 Mac Pro in 10.15.1 (19B88).

Best ultrabooks for eGPU use | eGPU enclosure buying guide


ReplyQuote
(@jared_johnson)
New Member
Joined: 2 weeks ago
 

I'm desperate for the patch! Hope it's available soon! Also noob question, how do I update when the patch is released?

@mac_editor Do you have an ETA on when you'll release it? 

Thanks for all your work!

This post was modified 2 weeks ago

Late 2015 27” iMac, 24gb ram Razer box, Vega 64 GPU


ReplyQuote
PascalB
(@pascalb)
Active Member
Joined: 4 weeks ago
 

@mac_editor  Purge-Wrangler 6.0.3 still works fine with Late-2013 iMac 27" (2 x TB 1 ports) under Catalina 10.15.1 (19B88)

iMac 27" i7 - mid 2013 (dGPU : NVIDIA GeForce GTX 780M 4 Go) with 2 TB1 ports - TB1 Port #2 : eGPU : Sonnet eGFX Breakaway Box 650 OC + Gibabyte Radeon VII - TB1 Port #1 : Akitio Thunder3 RAID Station + Akitio Thunder D3 with SSD inside - External display (NEC Spectraview 27" PW272W connected to Atikio Thunder3 RAID Station Display port (direct connection to eGPU Display port is not supported : black screen)


ReplyQuote
(@jared_johnson)
New Member
Joined: 2 weeks ago
 

@pascalb

Well my machine updated to 10.15.1 and now my eGPU isn’t working. How can I confirm I have 6.0.3

Late 2015 27” iMac, 24gb ram Razer box, Vega 64 GPU


ReplyQuote
Netcho
(@netcho)
Active Member
Joined: 7 months ago
 

@jared_johnson

you do not apparently. Most likely you have like I do 6.0.2

MacBook Pro 2015 15” 2.5 GHz


ReplyQuote
PascalB
(@pascalb)
Active Member
Joined: 4 weeks ago
 
Posted by: @jared_johnson

@pascalb

Well my machine updated to 10.15.1 and now my eGPU isn’t working. How can I confirm I have 6.0.3

Just relaunch the script. The release number is displayed at the top of the text menu

iMac 27" i7 - mid 2013 (dGPU : NVIDIA GeForce GTX 780M 4 Go) with 2 TB1 ports - TB1 Port #2 : eGPU : Sonnet eGFX Breakaway Box 650 OC + Gibabyte Radeon VII - TB1 Port #1 : Akitio Thunder3 RAID Station + Akitio Thunder D3 with SSD inside - External display (NEC Spectraview 27" PW272W connected to Atikio Thunder3 RAID Station Display port (direct connection to eGPU Display port is not supported : black screen)


ReplyQuote
(@jared_johnson)
New Member
Joined: 2 weeks ago
 

@pascalb

Will try when I get home, however I feel like I did that yesterday several times. At any rate, thank you for the response! 

Late 2015 27” iMac, 24gb ram Razer box, Vega 64 GPU


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

Please be patient. My Mac was out for repair and in typical fashion Apple has formatted it (for no reason). I need to get up and running before I can do anything. I just collected the laptop and am on my way back home. I won’t be giving out any test scripts now or in the future - so no point asking. 

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


ReplyQuote
itsage
(@itsage)
Famed Member Admin
Joined: 3 years ago
 
Posted by: @mac_editor

Please be patient. My Mac was out for repair and in typical fashion Apple has formatted it (for no reason). I need to get up and running before I can do anything. I just collected the laptop and am on my way back home. I won’t be giving out any test scripts now or in the future – so no point asking. 

Sorry to hear they wiped your drive. I wonder how often they decide to replace the entire bottom half when there’s major component replacement taking place. I had two keyboard replacements done on 2016 15″ MacBook Pro. The first time hard drive was wiped or full bottom half replaced when it was sent out to the repair facility. The second time the hard drive stayed intact when the work was done at the store. The top case with new keyboard, trackpad, and battery was the only new component.

This post was modified 2 weeks ago

Best ultrabooks for eGPU use | eGPU enclosure buying guide


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 
Posted by: @itsage

The top case with new keyboard, trackpad, and battery was the only new component.

@itsage only the top case was replaced so a format was unnecessary. Maybe they did it because system was running beta OS and it was flagged in their internal diagnostics. 

This post was modified 2 weeks ago

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


itsage liked
ReplyQuote
wimpzilla
(@wimpzilla)
Honorable Member
Joined: 3 years ago
 

I suppose apple is keeping the bad habit of wiping its customer data for security and liability reasons, during the "repair" process.
You don't want an apple random insider begin leaking customer data extracted with the same apple code and tools.
It would be a disaster that can't be easily defended in court even by the best lawyer assault team apple dispose.

 

 

This post was modified 2 weeks ago

2012 13-inch Dell Latitude E6320 + R9 [email protected] (EXP GDC 8.4) + Win10
E=Mc²


itsage liked
ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

@wimpzilla

Then they should do it consistently for all repairs (they don’t). Funnily enough my Windows disk is still present so they only wiped the macOS partition.

Apple can’t access your data if your disk has FileVault enabled (XTS-AES-128 encryption with a 256-bit key) - which is the default macOS configuration these days (on T2 Macs this is always enabled, with the option of disabling the password - in a sense, at rest the disk is encrypted regardless). The only thing they can do is erase the drive. In my case they should not have erased it as they just moved the entire board to a new top case (that has new battery and trackpad). Well, at least I got the replacement for free (problem was swollen battery) even though I was out of warranty so I’m not complaining too much - just nitpicking. 

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


wimpzilla liked
ReplyQuote
wimpzilla
(@wimpzilla)
Honorable Member
Joined: 3 years ago
 

You are right not every time the disk is erased, wonder what trigger the disk cleaning procedure, if a specific hardware replacement have to be done for example.
[Edit: yeah in fact the drive is wiped before the machine quit the apple secure environment to reach the 3rd party refurbishing sites]

I suppose that FileVault is similar to the other high end data encryption tools, however often even the most secure tools come with some sort of recovery console.
So i would suppose that apple can actually recover user data from encrypted disks, now if apple did not comply it is another story.
I mean, i have to admit, it is a common practice in the IT field, the data remain encrypted once the unlocking key is wiped out and can only be recovered.
One can only overwrite the existing blocks with new encrypted information, pretty simple and enough secure solution .

This post was modified 2 weeks ago

2012 13-inch Dell Latitude E6320 + R9 [email protected] (EXP GDC 8.4) + Win10
E=Mc²


ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 
Posted by: @wimpzilla

So i would suppose that apple can actually recover user data from encrypted disks, now if apple did not comply it is another story.

Yes there is a recovery mechanism but it is not possible without recovery key which you can recover from iCloud if you opt in (which Apple cannot get without Apple ID login - so only the user can do it). If the recovery key is also unavailable, then the disk is unrecoverable by virtue of reversing or brute-forcing the XTS-AES key being computationally infeasible. Thus there are only two keys: your password and a created recovery key (which can optionally be secured by iCloud), that can unlock the disk. You can read the T2 documentation which gives more insight into when data is considered lost - one example is too many password attempts (it’s a very high number, but there is a cap), which completely disables T2/storage - rendering all data inaccessible permanently.

https://www.apple.com/mac/docs/Apple_T2_Security_Chip_Overview.pdf

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


wimpzilla liked
ReplyQuote
mac_editor
(@mac_editor)
Famed Member Moderator
Joined: 3 years ago
 

PurgeWrangler 6.1 is live with support for macOS 10.15.1 for AMD GPUs on TB1/2 Macs. For existing users, simply run the script in Terminal - you will be asked to update. Testers who were using 6.0.3 intermediate builds will also see this update, so they can safely update to the latest release.

This post was modified 2 weeks ago

purge-wrangler.shpurge-nvda.shset-eGPU.shautomate-eGPU EFI Installer
2018 MacBook Pro 15" RP560X + RX 5700 XT (Mantiz Venus)


nu_ninja and itsage liked
ReplyQuote
(@jared_johnson)
New Member
Joined: 2 weeks ago
 

@mac_editor

You sir, are awesome! Thank you! Saved my butt! 

Late 2015 27” iMac, 24gb ram Razer box, Vega 64 GPU


ReplyQuote
aleigh
(@aleigh)
New Member
Joined: 2 weeks ago
 

Really phenomenal, you guys are great.

I have a MacPro6,1 w/ Core X that I had a 580 in with 6.0.2 & 10.15.0 previously, and that worked. although overnight I would sometimes get a panic by the time I woke up in the morning. 10.15.1, 6.1.0 and 5700XT my experience trying to upgrade was that whenever I connected the EGPU it would black-screen and on forced reboot log a panic. This happened with or without purge-wrangler running (where it tells you to connect the EGPU). What solved it for me was running purge-wrangler, NOT connecting the EGPU (hit esc, follow instructions, amd, no legacy) and then rebooting. After THAT reboot, it worked perfect when I plugged it in. I don't know if this is a 10.15.1 thing or left-overs from old purge-wrangler (I did uninstall and it says I was uninstalled, so idk). But it works a treat now. thanks again.

Trashcan Mac Pro, MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports), Core X, XFX 5700XT, XFX 580


ReplyQuote
Netcho
(@netcho)
Active Member
Joined: 7 months ago
 

@mac_editor

Thank you very much. 

MacBook Pro 2015 15” 2.5 GHz


ReplyQuote
(@yulminch)
New Member
Joined: 2 weeks ago
 

Thank you so much! you are my hero 🙂

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


Netcho liked
ReplyQuote
(@massimo_luraschi)
New Member
Joined: 2 weeks ago
 

Hello everyone.

First of all I want to thank @mac_editor for the incredible work he put on this tool. Without this, I would have even been able to try it and ask for help on a partial success.

I am sorry if this is a double, but I have tried to read through the entire discussion, Installation recommendations, Hardware charts,  Troubleshooting and I still cannot find the root of my problem.

Here's my setup:

I have ran the script by following the installation instructions (enabling csrutil beforehand) and after rebooting the enclosure is recognized, the nVidia drivers seem to be recognized, I have an icon in the menubar to switch from Intel to nVidia drivers, but even when using nVidia drivers, the secondary display (attached to Razer Core) is not recognized and "About This Mac" still says "Intel" under graphics.

For the record, this is the log of the guided procedure:

Spoiler
Log
>> PurgeWrangler (6.1.0)

1. Setup eGPU
2. System Status
3. Uninstall
4. Recovery

5. More Options
6. Donate
7. Quit

>> Setup eGPU

Plug-in eGPU. Press ESC if you are not plugging in eGPU.

Detection not possible. Ti82 override needed first.

Backing up...
Backup complete.

Enabling Ti82 support...
Ti82 support enabled.

>> Select eGPU Vendor

1. AMD
2. NVIDIA
3. Cancel

Patching for NVIDIA eGPUs...

Fetching driver information...
Information fetched.

Web drivers will require patching.
Patch Recommendation: Not Advised

Downloading drivers (387.10.10.10.40.132)...
######################################################################## 100.0%
Download complete.
Sanitizing package...
Package sanitized.
Installing...
Installation complete.
Patches applied.

Analyzing system...
No anomalies expected.

Sanitizing system...
System sanitized.
Modifications complete.

Reboot to apply changes.

Rebooting...

remove purge-wrangler.sh?

Any help, advice, indications, information would be vastly appreciated.

 

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


ReplyQuote
 of  42