eGPU on Linux - Easy-to-use setup script
 
Notifications
Clear all

eGPU on Linux - Easy-to-use setup script  

 of  13
  RSS

troozers
(@troozers)
Active Member
Joined: 5 months ago
 

@raggamuffin

In the end I replaced the nVidia 1080 Ti GPU with an AMD Radeon RX580 GPU, and it all fired up and worked smoothly.  The compiled version of gnome-egpu works flawlessly, I can change between using internal GPU and eGPU flawlessly - that's with Ubuntu 21.04 and Wayland.

Dell XPS 13 9300 i7/32GB/1TB with Ubuntu 20.04 + Razer Core X Chroma + Nvidia GeForce GTX 1080Ti


odin liked
ReplyQuote
RaggaMuffin
(@raggamuffin)
Active Member
Joined: 5 months ago
 

@troozers, Ah, that's good you got it all working. With gnome-egpu do you still have to restart or at least restart your display manager for it to switch? I'll be sure to keep that switcher in mind if I ever switch to gnome. It's probably a good excuse now to install another distro with gnome + wayland alongside Arch and Windows 10.

 

2018 Lenovo T480s [8th,4C,U] + GTX 1080 @ 16Gbps-TB3 (Razer Core X) + Win10 / Arch


ReplyQuote
troozers
(@troozers)
Active Member
Joined: 5 months ago
 

@raggamuffin, I have so far (switch off between docked and non-docked) as that fits my usage profile - I mainly use this between work and home so usually have the laptop switched off between states.

However I will have a try to see if it will work automagically between internal/external without having to restart.  I will keep you updated.

 

Dell XPS 13 9300 i7/32GB/1TB with Ubuntu 20.04 + Razer Core X Chroma + Nvidia GeForce GTX 1080Ti


ReplyQuote
RaggaMuffin
(@raggamuffin)
Active Member
Joined: 5 months ago
 

@troozers, Thanks. It looks like the next set of nvidia drivers might work a bit better with Wayland. I’m not getting my hopes up though, considering their general attitude towards linux support, and the articles I’ve read are a bit ambiguous with regards to the specifics of the support. https://www.phoronix.com/scan.php?page=news_item&px=NVIDIA-470-Wayland-Friendly

 

2018 Lenovo T480s [8th,4C,U] + GTX 1080 @ 16Gbps-TB3 (Razer Core X) + Win10 / Arch


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

So just to recap for everyone, here's the state of Linux eGPU solutions right now:

For anyone using an Xorg based desktop (most desktops right now), the scripts egpu-switcher (this thread) or gswitch should work for any Xorg desktop with either NVIDIA or AMD eGPUs. So if you're using a desktop like Cinnamon, XFCE, LXDE, Budgie, Gnome (with nvidia drivers), KDE Plasma's default, or most others, then these scripts will be right for you.

For Wayland based desktop environments, the compositor needs to include a method of setting the eGPU as the primary renderer for the compositor. Since Gnome included this (via this PR) it is possible to set the eGPU as primary through a udev rule and this is what the gnome-egpu script does. Sway's wl-roots also includes this feature and I have a script for doing a similar thing on Sway (and should work for other wl-roots based DEs as well). Hopefully KDE will include this feature in kwin eventually as well.

Wayland and Xorg solutions are mostly mutually exclusive so installing one will typically not affect the other.

I think I have an idea for how to force the eGPU as primary in a generalized way across Wayland DEs (so this should work in KDE Wayland as is without changes to kwin). The idea is to bind the iGPU (+dGPU if you have one and any related audio devices) to pcie-stub at boot so the eGPU is the only GPU for the compositor to use. Then hopefully the iGPU could be released to its normal driver after login. If this pans out I'll try and post a script on github.

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.15+Win10 + Linux Mint 19.1

 
2012 13" MacBook Pro [3rd,2C,M] + RX 460 @ 10Gbps-TB1 (AKiTiO Thunder2) + macOS 10.14.4 [build link]  


ReplyQuote
RaggaMuffin
(@raggamuffin)
Active Member
Joined: 5 months ago
 

Sounds great, keep us updated!

2018 Lenovo T480s [8th,4C,U] + GTX 1080 @ 16Gbps-TB3 (Razer Core X) + Win10 / Arch


ReplyQuote
Cyborg Genos
(@cyborg_genos)
New Member
Joined: 3 months ago
 

Hi guys, so I did a clean install of Pop OS. This app seems to have detected my card however I still can't use it, any ideas?

image
image
image

Notebook: Lenovo ThinkPad L530 i5 3230 4GB RAM

EXP GDC Beast 8.5c ( Both EC and PCIe adapters)

Available GPUs:
Nvidia GeForce GTX 970
AMD RADEON RX Vega 64


ReplyQuote
 of  13