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

eGPU on Linux - Easy-to-use setup script  

 of  12
  RSS

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

@nu_ninja

 

Sorry for the late reply, I was out due to flu...

 

I've test out these games so far:

CS:GO

Firewatch

For the King

Torchlight

Pillars of Eternity

The Witcher (first one, enhanced edition)

 

Firewatch and the witcher work fine on eGPU. Rest of the games don't.

On games that don't, I get this:

0: 300Mhz

1: 800MHz (jumps to 1100-1200 for short periods)*

2: 2075Mhz

 

On games that do work, I get this:

0: 300Mhz

1: 800MHz

2: 2075Mhz*

 

So basically, if I'm understanding things here, some games are stuck using internal gpu, while others use eGPU as I want.

Tried google to find forcing games to use eGPU on Ubuntu, but found no solution.

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_

Sorry to hear about your flu and computer issues. As far as I know, these scripts here are the solution for getting games to use the eGPU, unfortunately it is possible for some games to do their own thing. Without having those games to test, here's my last ditch suggestion. You can force the iGPU off (technically not completely off, but it can't be used for rendering) by blacklisting the intel graphics drivers. This might cause a black screen with some games or it might make them use the eGPU. I do this by adding the kernel parameter:

[Please login to see this]

though for a new system I think it uses  i965 so it would be:

[Please login to see this]

 

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
tscolari
(@tscolari)
Active Member
Joined: 1 year ago
 

I recently got a AMD RX5700RT that I'm trying to run on a Razer core and a dell Xps 13, but I'm out of luck.

Without your script, if I just boot the computer with all connected the external display (connected to the amd card) gets a weird pink pattern and the whole computer freezes (when X starts).

 

Your script detects the cards and sets the configuration, but when I boot with it I get 2 blank screens, I'm not a 100% the computer is crashed, one time it resumed when I pressed power off and turned off normally, others it required a hard reboot. 

 

Not sure if relevant, but booting the computer with the core connected but no monitor attached works normally.

Can you help me debug the issue? I know my way around Linux servers, but not X 🙁

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
 

@tscolari

 

Someone else can correct me if I'm wrong, but this sounds to me like the hardware issues that have plagued these first gen navi cards. Have you ever been able to get normal any graphics output from this card or do you have a desktop to test it in? If you can get apps running on the eGPU using prime on the internal screen it could also be a display or display cable issue.

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

@tscolari

 

Someone else can correct me if I'm wrong, but this sounds to me like the hardware issues that have plagued these first gen navi cards. Have you ever been able to get normal any graphics output from this card or do you have a desktop to test it in? If you can get apps running on the eGPU using prime on the internal screen it could also be a display or display cable issue.

Is there a way to know if it's one of those?

It seems to work fine on windows, not sure if that's an indicator. But I can still return it and get a new one from a different brand (this one is an Asus).

I've also noticed that when I connect thunderbolt3, no display cable, peripherals connected to the usb ports of the core do not respond on Linux.

 

❯ sudo lspci
pcilib: Cannot open /sys/bus/pci/devices/0000:02:04.0/config
lspci: Unable to read the standard configuration space header of device 0000:02:04.0
pcilib: Cannot open /sys/bus/pci/devices/0000:07:02.0/config
lspci: Unable to read the standard configuration space header of device 0000:07:02.0
pcilib: Cannot open /sys/bus/pci/devices/0000:06:00.0/config
lspci: Unable to read the standard configuration space header of device 0000:06:00.0
pcilib: Cannot open /sys/bus/pci/devices/0000:07:00.0/config
lspci: Unable to read the standard configuration space header of device 0000:07:00.0
pcilib: Cannot open /sys/bus/pci/devices/0000:0a:00.0/config
lspci: Unable to read the standard configuration space header of device 0000:0a:00.0
pcilib: Cannot open /sys/bus/pci/devices/0000:08:00.0/config
lspci: Unable to read the standard configuration space header of device 0000:08:00.0
pcilib: Cannot open /sys/bus/pci/devices/0000:05:00.1/config
lspci: Unable to read the standard configuration space header of device 0000:05:00.1
pcilib: Cannot open /sys/bus/pci/devices/0000:07:01.0/config
lspci: Unable to read the standard configuration space header of device 0000:07:01.0
pcilib: Cannot open /sys/bus/pci/devices/0000:09:00.0/config
lspci: Unable to read the standard configuration space header of device 0000:09:00.0
00:00.0 Host bridge: Intel Corporation Device 8a12 (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Device 8a52 (rev 07)
00:04.0 Signal processing controller: Intel Corporation Device 8a03 (rev 03)
00:07.0 PCI bridge: Intel Corporation Device 8a1d (rev 03)
00:07.2 PCI bridge: Intel Corporation Device 8a21 (rev 03)
00:0d.0 USB controller: Intel Corporation Device 8a13 (rev 03)
00:0d.2 System peripheral: Intel Corporation Device 8a17 (rev 03)
00:0d.3 System peripheral: Intel Corporation Device 8a0d (rev 03)
00:12.0 Serial controller: Intel Corporation Device 34fc (rev 30)
00:14.0 USB controller: Intel Corporation Ice Lake-LP USB 3.1 xHCI Host Controller (rev 30)
00:14.2 RAM memory: Intel Corporation Device 34ef (rev 30)
00:14.3 Network controller: Intel Corporation Device 34f0 (rev 30)
00:15.0 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP Serial IO I2C Controller #0 (rev 30)
00:15.1 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP Serial IO I2C Controller #1 (rev 30)
00:16.0 Communication controller: Intel Corporation Device 34e0 (rev 30)
00:1d.0 PCI bridge: Intel Corporation Ice Lake-LP PCI Express Root Port #9 (rev 30)
00:1d.7 PCI bridge: Intel Corporation Device 34b7 (rev 30)
00:1e.0 Communication controller: Intel Corporation Ice Lake-LP Serial IO UART Controller #0 (rev 30)
00:1f.0 ISA bridge: Intel Corporation Ice Lake-LP LPC Controller (rev 30)
00:1f.3 Audio device: Intel Corporation Device 34c8 (rev 30)
00:1f.4 SMBus: Intel Corporation Ice Lake-LP SMBus Controller (rev 30)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP SPI Controller (rev 30)
01:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev ff)
02:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev ff)
03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Device 1478 (rev ff)
04:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Device 1479 (rev ff)
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 731f (rev ff)
5b:00.0 Non-Volatile memory controller: Toshiba America Info Systems Device 011a
5c:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)

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
 

@tscolari

Ahh, is a new 10th gen intel ice lake machine? Which kernel are you running? The default for ubuntu right now is 5.3 but I believe you need 5.4+ for proper thunderbolt support on ice lake. Be sure you have authorized the thunderbolt device too. Your description now makes it sound like it is just a software connection issue, not hardware.

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]  


hertg and itsage liked
ReplyQuote
tscolari
(@tscolari)
Active Member
Joined: 1 year ago
 
Posted by: @nu_ninja

@tscolari

Ahh, is a new 10th gen intel ice lake machine? Which kernel are you running? The default for ubuntu right now is 5.3 but I believe you need 5.4+ for proper thunderbolt support on ice lake. Be sure you have authorized the thunderbolt device too. Your description now makes it sound like it is just a software connection issue, not hardware.

You were right

For anyone having the issues I had, I managed to fix it by bumping to kernel 5.5.0. I had to manually install it (not distributed on 18.04) and sign it (because of secure boot), but it's a very easy process (for reference: https://github.com/jakeday/linux-surface/blob/master/SIGNING.md). Usb is also working now, as flaky as it is in windows - but I think this is a razer core chroma issue according to the internet, I'm probably going to return it and get the version without usb ports. I havent tested gaming, but the fact I can use the external monitor for work already made my day Smile

 

thanks!

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: 12 months ago
 

Hi guys! Wondering if you can help me please.

I have a Gigabyte earo 15 laptop (2018 year edition with 1060ti on board if I'm not mistaken.

Ubuntu 19.10, `Linux argon-u1910 5.3.0-23-generic #25-Ubuntu SMP Tue Nov 12 09:22:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux`, Unity desktop and `XDG_SESSION_TYPE=x11`.

But due to some lame 3rd party service guys now the laptop does not recognize this GPU and after a month of tries to fix it I gave up and since now we all are under lock down due to coronavirus I've bought an external `sonnet egfx breakaway box` with 2070RTX in it. It work flawlessly in my dual boot windows. But now I'm trying some CUDA stuff as a programmer (I usually do web development, but found some cool neural network to play with) and would love to do this under ubuntu as always, but my ubuntu does not recognize the external video card. Tried the OP's script, but it does not see the GPU as well. Would you kindly share any ideas? 

Some output:

 

[Please login to see this]

Also tried to reboot and do `nvidia-drm.modeselect=1`

Thank you!

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

.

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

@dmitry_vasilev, are you sure your thunderbolt connection to the gpu is authorized, had that problem when i first set up mine.

[Please login to see this]

 

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: 12 months ago
 

@xevien_96, hi! Thank you for your reply! How do I authorize it?

 

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

.

ReplyQuote
 of  12