eGPUs under Linux: an advanced guide
 
Notifications
Clear all

eGPUs under Linux: an advanced guide  

 of  3
  RSS

itsage
(@itsage)
Illustrious Member Admin
Joined: 4 years ago
 

I've been following Blitz_Works on Twitter and his progress with eGPU under Linux. He published an advanced guide yesterday documenting his use and other interesting findings. He was able to flash the AORUS Gaming Box firmware in Linux.

Even if you're not a Linux user, I'd highly recommend reading his guide. This is a wonderful resource -  http://pocketnix.org/posts/eGPUs%20under%20Linux%3A%20an%20advanced%20guide

external graphics card builds
best laptops for external GPU
eGPU enclosure buyer's guide

 
2020 13" MacBook Pro [10th,4C,G] + RTX 2080 Ti @ 32Gbps-TB3 (AORUS Gaming Box) + Win10 2004 [build link]  


Flint Ironstag, 3RYL, ikir and 2 people liked
ReplyQuote
Da_Blitz
(@da_blitz)
Active Member
Joined: 3 years ago
 

Hoping to have more to come in the future, i have a bunch of small scripts and other things that can be dropped into places in /etc to make the whole experience plug and play, testing it all is what takes up most of the time.

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

.

ReplyQuote
itsage
(@itsage)
Illustrious Member Admin
Joined: 4 years ago
 

@Da_Blitz Welcome aboard. Thank you for documenting your experience and findings. We're looking forward to your scripts and help for Linux eGPU users.

external graphics card builds
best laptops for external GPU
eGPU enclosure buyer's guide

 
2020 13" MacBook Pro [10th,4C,G] + RTX 2080 Ti @ 32Gbps-TB3 (AORUS Gaming Box) + Win10 2004 [build link]  


ReplyQuote
Flint Ironstag
(@flint-ironstag)
Estimable Member
Joined: 3 years ago
 

Welcome @Da_Blitz, I'll check out your guide at lunch today.

MP 6,1 | 4c | d700
MP 6,1 | 6c | d500


ReplyQuote
John Langley
(@john_langley)
New Member
Joined: 2 years ago
 

Good afternoon!  I wanted to thank you for the link.  I am a new member and a long-time Linux user (currently Arch on a 2017 version HP Spectre x360 13.3", and Gentoo on home built server and workstation/gaming station).  As the Spectre is decent with the built-in Intel video chip, I would like to have a little more "GAME" while travelling.  When I had run across the eGPU idea, it started the wheels turning.  I'm still reluctant on buying one right now, since I don't even know if it'd work or work well, but if I could find a decent enclosure that would travel in my suitcase with me and is compatible with Linux kernel, I would be apt to buy one today.  I say 'enclosure' because I already have several video cards laying around my house.  The latest addition to the stockpile of old equipment is an older GTX670, which I'm sure would be more than fine for a mobile eGPU to play a few games.

What say the Linux users here?  Are there many of us on this forum?  Has there been any headway in making this work?  Can I still use the laptop screen with the eGPU, or must it use an external display?  Is bumblebee used for the switching process, or is it 'on all the time'?

I truly hope you all don't mind my questions.  Being new to the idea (but not new to linux), I'm hoping to glean some good info before making a huge plunge into the area.

thanks for your time!!!

--John

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

.

ReplyQuote
Da_Blitz
(@da_blitz)
Active Member
Joined: 3 years ago
 

Hi John

As per my guide above everything basically works with very little issue.

Bumbblebee operates in such a way where it is only active if the GPU is attached and an application is actively using it as well. This causes the GP U to downclock/Power manage or be detached at will

the driver stuff was the easy part, the hard part was working out what pieces where needed and the integration between them and as such my guide is more of a starting point that tries to fill in most of the gaps but some customization for your setup may be require

If doing opencl work or cuda work then its even simplier and nearly plug and play with linux

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

.

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

The guide is rather useless - it is Nvidia specific.

Does anybody know what the story is with AMD?

It would appear to work, except:

[Apr 6 13:31] [drm] amdgpu kernel modesetting enabled.
[ +0.000272] [drm] initializing kernel modesetting (FIJI 0x1002:0x7300 0x1002:0x0B36 0xCA).
[ +0.000050] [drm] register mmio base: 0xC4000000
[ +0.000001] [drm] register mmio size: 262144
[ +0.000020] [drm] probing gen 2 caps for device 8086:1578 = 1715c43/e
[ +0.000004] [drm] probing mlw for device 8086:1578 = 1715c43
[ +0.000010] [drm] UVD is enabled in physical mode
[ +0.000001] [drm] VCE enabled in physical mode
[ +1.617919] ATOM BIOS: 113-C8820200-107
[ +0.000016] [drm] GPU posting now...
[ +5.370805] [drm:atom_op_jump [amdgpu]] *ERROR* atombios stuck in loop for more than 5secs aborting
[ +0.000022] [drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck executing B456 (len 304, WS 4, PS 0) @ 0xB51B
[ +0.000019] [drm:amdgpu_atom_execute_table_locked [amdgpu]] *ERROR* atombios stuck executing B104 (len 183, WS 0, PS 8) @ 0xB17E
[ +0.000002] amdgpu 0000:3c:00.0: gpu post error!
[ +0.000002] amdgpu 0000:3c:00.0: Fatal error during GPU init
[ +0.000017] [drm] amdgpu: finishing device.
[ +0.000198] amdgpu: probe of 0000:3c:00.0 failed with error -22

Dell XPS 9370 i7-8650U, Gigabyte Aorus Gaming Box with AMD Radeon R9 Nano.

Linux 4.16.0-041600-generic with no kernel arguments. Ubuntu 17.10.

Anyway, as soon as that issue is solved (probably with a driver kernel patch from AMD), I find it likely that it will work without any tampering whatsoever.
Does anybody know of any workarounds?

Any information would be appreciated.
Thank you!

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

.

ReplyQuote
Peter Gelderbloem
(@peter_gelderbloem)
Active Member
Joined: 2 years ago
 

Would this work for a linux VM on a mac in virtualbox? 
I just need it for CUDA

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

.

ReplyQuote
Peter Gelderbloem
(@peter_gelderbloem)
Active Member
Joined: 2 years ago
 

virtualbox not working, will try docker

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

.

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

Dell XPS 9370 i7-8650U, Gigabyte Aorus Gaming Box with AMD Radeon R9 Nano.

Linux 4.16.0-041600-generic with no kernel arguments. Ubuntu 17.10.

 

Would be very interested to hear of any progress on this, I'm currently thinking of going for an XPS 9370 + eGPU solution, and I have an AMD card laying around that I can use.

Was there any scripts / daemon released by @Da_Blitz?

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

.

ReplyQuote
 of  3