eGPU on Linux Ubuntu 19.04 - Easy-to-use setup script
@dmitry_vasilev, you can find information about that here
boltctl authorize <Device ID>
@hertg Your script still works great in Ubuntu and Pop!_OS 19.10! There's also some enhancement in this version at the login screen. I hot-plugged a Thunderbolt 3 NVMe M.2 adapter and saw this notification.
Have you tested this setup with a Nvidia card since this post? If so, I'd love to know which driver you used. I'm facing some driver issues myself with 435.
@rimsonatoaster, I did not test with an Nvidia eGPU unfortunately. I saw your recent post with a freezing issue.
@itsage, Thanks for letting me know anyways! If you get a chance to setup your R3 with a GTX/RTX card, I'd appreciate hearing which set of drivers you're on.
Like many others, I also tried to use your script, unfortunately I have not been able to get it working. I have been struggling with this for days now and cannot get it to work. I am not very experienced with stuff like this and was hoping one of you would have some pointers for me.
I have the following setup:
Laptop: System76 Darter Pro with Intel i7-10510U CPU and Mesa Intel UHD Graphics (CML GT2)
Os: Pop!_OS 20.04 LTS with linux kernel 5.4.0-7634-generic
Egpu: razer core x + radeon rx 5700 xt from Aorus
What i did:
1. install the drivers using this website: https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-19.10-Radeon-RX-5700
2. authorize my razer core x
3. run your script, which ended successfully
Then i tried to reboot, which took me to a screen where i saw a lot of [ OK ] blablabla. Then rebooted again, got into boot mode and explicitly told it to boot pop_os, then I got stuck in a login loop.
When i run boltctl list, I indeed see that it is authorized. When i run lspci -k | grep -EA3 'VGA|Display' it shows up with it is plugged in but there is no driver information mentioned. It is not listed for xrandr --listproviders. Also, when it is plugged in the fans are constantly at full blast. So I guess the driver is not configured correctly or something.
I have no clue what next steps could be and any help is appreciated!
It probably isn't getting enough pcie resources to start. Can you post the output of lspci -vvvv
Here's an example of what it looks like if it's not getting enough resources. Notice how the memory is <unassigned> and [disabled]
0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Radeon RX 550 640SP / RX 560/560X] (rev ff) (prog-if 00 [VGA controller]) Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Radeon RX 560 Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 255 Region 0: Memory at <unassigned> (64-bit, prefetchable) [disabled] Region 2: Memory at <unassigned> (64-bit, prefetchable) [disabled] Region 4: I/O ports at 4000 [disabled] [size=256] Region 5: Memory at a0e00000 (32-bit, non-prefetchable) [disabled] [size=256K] Expansion ROM at a0e40000 [virtual] [disabled] [size=128K] Capabilities: <access denied> Kernel modules: amdgpu
output of lspci -vvvv is this:
08:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1) (prog-if 00 [VGA controller]) Subsystem: Gigabyte Technology Co., Ltd Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx- Interrupt: pin A routed to IRQ 18 Region 0: Memory at c0000000 (64-bit, prefetchable) [size=256M] Region 2: Memory at b8000000 (64-bit, prefetchable) [size=2M] Region 4: I/O ports at 2000 [size=256] Region 5: Memory at b1100000 (32-bit, non-prefetchable) [size=512K] Expansion ROM at b1180000 [virtual] [disabled] [size=128K] Capabilities: <access denied> Kernel modules: amdgpu
It does not have memory is <unassigned> and [disabled]. Is Capabilities: <access denied> not an issue? Also i see that for almost all other hardware there is a line: kernel driver in use, which is missing for the graphics card.
Ok so it's not a pcie resource problem then. It should have a line saying:
Kernel driver in use: amdgpu
so it seems like the the amdgpu driver isn't being used for the card then. I'm not familiar with the whole navi firmware situation. Is this still necessary for the 5700xt to get the firmware manually with kernel 5.4? You could try moving to a newer mainline kernel, my favorite script for installing mainline kernels on ubuntu (and its derivatives) is https://github.com/pimlie/ubuntu-mainline-kernel.sh