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

eGPU on Linux - Easy-to-use setup script  

 of  12
  RSS

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

@kyle_landrith

I believe this is an issue that pop os addresses. I don't have this configuration but @itsage might have info on how well it works.

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
hertg
(@hertg)
Active Member
Joined: 2 years ago
 

@wunhand

Hey there, thanks for your post.
I'm also using a Lenovo X1 Extreme (1st Gen.). I found that it's easiest to install Ubuntu without having the EGPU attached and disable "Hybrid Graphics" in the BIOS first. Then choose to install third-party drivers in the installation process (This will install the drivers from NVIDIA rather than the Nouveau ones, afaik). I have actually mentioned this in the README, but it may be hard to find at the bottom of the page :). Once everything is installed you can change the Display Settings back to "Hybrid Graphics" if you like.

Also, I did change the Thunderbolt Settings to "No Security", I've experienced far less issues with this configuration. (Just make sure you understand the security implications this might have. Have a look at my other post where i mentioned it).

By following these steps i didn't need to tweak the xorg.conf file manually on my Lenovo X1 Extreme. Smile

 

Notebook: Lenovo ThinkPad X1 Extreme (GTX 1050 Max-Q Ti)
EGPU: Mantiz MZ-02 VENUS (GTX 1080)
OS: Arch (LightDM, dwm)


ReplyQuote
Roland
(@roland)
Active Member
Joined: 2 years ago
 

I can't update to the latest version. I'm getting hit with this error: https://github.com/hertg/egpu-switcher/issues/25

Otherwise it works like a charm and I'm happy user.

Lenovo X1 7th Gen, Razer X, Nvidia 2060


ReplyQuote
Marin K.
(@marin_k_)
Active Member
Joined: 1 year ago
 

Hi hertg,

 

I'm somewhat of a Ubuntu(Linux) newbie, but I have a rather simple question for you.

I'm using thinkpad X1C (7th gen) and Razer Core X with 5700XT as my GPU. I've installed your script, and everything works as it should. When I go to 'About' in ubuntu, it shows Navi as GPU.

 

But when I run steam and cs:go, epgu isn't in use. At all. I mean I get around 15-20fps.

Under windows 10, everything works like a charm. But I really hate booting into win10 just to game. I want to delete my win10 install if possible.

 

Did I setup your script wrong? I've tried forcing eGPU on internal and external screens, but that doesn't help either.

I've tried googling and nothing I've found has helped, so I think that this topic is my last hope Smile

This post was modified 1 year 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: 3 years ago
 

@marin_k_

What kernel are you using? The latest native ubuntu kernel (5.3) still doesn't normally come with the firmware for navi gpus so you have to either manually add the firmware file or upgrade to the 5.4 mainline kernel (you can use a tool like ukuu to easily upgrade to a mainline kernel)

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
Marin K.
(@marin_k_)
Active Member
Joined: 1 year ago
 
Posted by: @nu_ninja

@marin_k_

What kernel are you using? The latest native ubuntu kernel (5.3) still doesn't normally come with the firmware for navi gpus so you have to either manually add the firmware file or upgrade to the 5.4 mainline kernel (you can use a tool like ukuu to easily upgrade to a mainline kernel)

I'm on 5.4.22

When looking at about screen, AMD Navi shows up. Everything works like a charm. Except games. I simply can't play any games.

In CS:GO fps is around 20, then it jumps to 200-300, then 20... Simply unplayable 🙁

 

I've googled a lot. That's how I found this thread. But till this day I found no solution at all.

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: 3 years ago
 

@marin_k_

I'm assuming you're using xorg and not wayland, what's the output of the commands

xrandr --listproviders

xrandr --listmonitors

the eGPU and its connected display should be listed first in both.

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]  


Marin K. liked
ReplyQuote
Marin K.
(@marin_k_)
Active Member
Joined: 1 year ago
 

@nu_ninja,

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0xf4 cap: 0x9, Source Output, Sink Offload crtcs: 6 outputs: 4 associated providers: 1 name:Unknown AMD Radeon GPU @ pci:0000:10:00.0
Provider 1: id: 0x46 cap: 0x6, Sink Output, Source Offload crtcs: 3 outputs: 4 associated providers: 1 name:modesetting

xrandr --listmonitors
Monitors: 2
 0: +*HDMI-A-1 2560/597x1440/336+2559+0  HDMI-A-1
 1: +DisplayPort-4 2560/553x1440/311+0+0  DisplayPort-4


I have internal monitor as well, but laptops lid is closed.

And btw, thanks for being so helpful Smile

 

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

.

ReplyQuote
Marin K.
(@marin_k_)
Active Member
Joined: 1 year ago
 

Thanks for this command:

xrandr --listproviders

I've managed to install drivers/firmware. Now I get this:

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x59 cap: 0x9, Source Output, Sink Offload crtcs: 6 outputs: 4 associated providers: 1 name:AMD Radeon RX 5700 XT @ pci:0000:10:00.0
Provider 1: id: 0xa4 cap: 0x6, Sink Output, Source Offload crtcs: 3 outputs: 4 associated providers: 1 name:modesetting

But still, nothing in steam changed. Still low fps.

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: 3 years ago
 

@marin_k_

That looks right to me now, not sure what the issue would be now. Have you tested with other games, or just CS:GO? Here's a quick command I use to see if the egpu is being used, run it in a terminal while gaming and see if the busy percent and clock speeds go up.

watch -n 1 cat /sys/bus/pci/devices/0000:10:00.0/gpu_busy_percent /sys/bus/pci/devices/0000:10:00.0/pp_dpm_sclk

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  12