eGPU on Linux - Easy-to-use setup script
@hertg, Yes I was using the PPA, it told me that no releases were available when I tried installing it so no binaries must have been it. I decided to go back to 20.04 due to numerous other issues but thanks for releasing them
@hertg Thank you so much for your work on this!
I just received my eGPU (Razer Core X + AMD RX 580) and got it up and running in under an hour. I'm using a Dell XPS 13 9370 with elementary OS 5.1 (based on Ubuntu 18.04). I had to do some fiddling the BIOS settings for Thunderbolt, by enabling Pre-Boot ACL.
Oddly, I also had to specifically define the internal and external GPU. Because for some reason, the GPU was laggy before I did so. It felt like the Intel GPU was used through the eGPU. And aside from the same slowness, it also produced artefacts and behaved strangely when resizing windows.
But now all is well. It's like I've got a brand new computer.
Thanks for developing this script!
I am trying to get it working, and at this point I a not sure where I have to debug, so hoping a push in the right direction
I am using a T430 with internal NVIDIA card
Operating system is Ubuntu Mate 20.04
without doing anything I could utilize the HDMI out from the external graphics card, but I could not find the card in the Ubuntu Mate Nvidia menu, here only the internal card was visible.
when configuring the egpu switcher software, I could detect and select the external card, but when rebooting my T430, the screen goes blank just before arriving at the login screen.
with a few searches, I discovered that the error message I got is related to the graphical userinterface, and I can get text-based interface with tty1 by pressing Ctrl Alt F1.
Could this be related to the egpu switcher software or should I debug somewhere else?
This script is only for xorg configurations, it will not affect wayland. If you need to setup the eGPU as primary under GNOME Wayland check out this other script:
@nu_ninja, many thanks for that - i've not used cargo before to install packages; unfortunately it seems to bork as it requires a library (zeroize v0.9.3) that is no longer available/supported. It's actually required by dialoguer, which is required by gnome-egpu.
Will the egpu-switcher package be available on ubuntu 21.04 with xorg support, as a ppa? Otherwise I will start looking at how to implement either version manually - just need to find a trusted source on how to do this.
I managed to rebuild gnome-egpu from source and resolve the dependencies but for some reason just can't get Ubuntu 21.04 with Wayland to work properly with the Razer Chrome X and nVidia 1080Ti... I can see my laptop screen, it knows there's an nvidia card, but it doesn't see the two monitors connected to the eGPU.
Is this an issue with Wayland + nVidia? I was looking at XFX Radeon RX 580, but wanted to make sure that I wasn't missing something obvious, or worse potentially pay out for a new card which won't change anything.
Any advise is most welcome.
I haven't upgraded to ubuntu 21.04 yet due to this bug so I haven't tested, but from what I've read I think wayland is only enabled on AMD and intel graphics so far.
@hertg thank you very much for the script! It worked pretty seamlessly for me.
Saving my Nvidia X Server settings to the xorg.conf.egpu file worked fine, although the preferred performance mode does not get saved. It's not a problem with the switcher script conf, but the Nvidia app itself. I have tried various workarounds posted elsewhere to change default PowerMizer settings, but I've had no luck getting it to default to maximum performance. Does anyone have a workaround for this?
I can't get my 1080 and Razer Core X to work with Wayland either. I'm using Arch with KDE. I can get it to work with X11, though. If I change my session from Wayland to X11 at the SDDM login screen, it then all works perfectly. What display manager are you using just out of curiosity?
edit: Sorry, I didn't read your previous post where you mentioned X working for you.