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

eGPU on Linux Ubuntu 19.04 - Easy-to-use setup script  

 of  9
  RSS

Xevien 96
(@xevien_96)
New Member
Joined: 2 months ago
 

@dmitry_vasilev, you can find information about that here

http://manpages.ubuntu.com/manpages/cosmic/man1/boltctl.1.html

its basically

boltctl authorize <Device ID>

 

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

.

ReplyQuote
Dmitry Vasilev
(@dmitry_vasilev)
New Member
Joined: 2 months ago
 

@xevien_96, It helped, thank you a lot!

Best wishes!

 

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

.

ReplyQuote
RimsOnAToaster
(@rimsonatoaster)
Eminent Member
Joined: 3 years ago
 
Posted by: @itsage

@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.

Dell 9570 (i5-8350H, no dGPU), Ubuntu 19.10 + Aorus Gaming Box 1070 (nvidia driver 435)

 
2018 15" Dell XPS 15 9570 (GTX1050Ti) [8th,4C,H] + GTX 1070 @ 32Gbps-TB3 (AORUS Gaming Box) + Win10 [build link]  


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

@rimsonatoaster, I did not test with an Nvidia eGPU unfortunately. I saw your recent post with a freezing issue. 

 

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
RimsOnAToaster
(@rimsonatoaster)
Eminent Member
Joined: 3 years ago
 

@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.

 

Dell 9570 (i5-8350H, no dGPU), Ubuntu 19.10 + Aorus Gaming Box 1070 (nvidia driver 435)

 
2018 15" Dell XPS 15 9570 (GTX1050Ti) [8th,4C,H] + GTX 1070 @ 32Gbps-TB3 (AORUS Gaming Box) + Win10 [build link]  


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

@rimsonatoaster, I remember trying Pop!_OS 19.04 on a Razer Blade Stealth a couple months back. It worked for me without freezing issue on an RTX 2080 Ti Gaming Box [build link].

 

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
johan171
(@johan171)
Active Member
Joined: 3 days ago
 

Dear all, 

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!

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

.

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

@johan171

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

 

This post was modified 3 days ago

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
johan171
(@johan171)
Active Member
Joined: 3 days ago
 

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.

This post was modified 3 days ago

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

.

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

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

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
 of  9