Linux eGPU in Ubuntu 18.04 works flawlessly
 
Notifications
Clear all

Linux eGPU in Ubuntu 18.04 works flawlessly  

 of  2
  RSS

marquefilips
(@marquefilips)
Active Member
Joined: 2 years ago
 

I have not been able to resolve getting the driver working with the egpu - the external system is recognized by lspci but that is all. Has anyone posted details of what makes this work?

2012 MBP15" 10.13.6, Razer X Core, NVIDIA GTX 1080, (internal Intel HD 4000/Nvidia), Nvidia 387.10.10.10.40.105, Cuda 387.130, TF 1.5 AND 2017 MBP15” 10.13.6 Razer X Core, NVidia GTX and Nvidia GTX GeForce Titan Black (when it’s not misbehaving).


ReplyQuote
DrEGPU
(@dregpu)
Trusted Member
Joined: 2 years ago
 
I'm using an old MacBook Pro 13 2011 with an Aorus gaming box 1080, via apple TB3-->TB1/2 adapter, as well. It works pretty great, when driving the internal display! 
Followed the instructions in the OP. Here's how I installed the nVidia drivers.

I used:
ubuntu-drivers devices
to make sure the system was seeing my 1080
And then:
sudo ubuntu-drivers autoinstall
to install the nvidia driver

Here's my benchmarks:
Unigine Heaven 4.0:
    pts/unigine-heaven-1.6.4 [Resolution: 1280 x 800 - Mode: Fullscreen - Renderer: OpenGL]
    Test 1 of 1
    Estimated Trial Run Count:    3                      
    Estimated Time To Completion: 15 Minutes [12:28 EST] 
        Started Run 1 @ 12:13:54
        Started Run 2 @ 12:18:33
        Started Run 3 @ 12:23:07

    Resolution: 1280 x 800 - Mode: Fullscreen - Renderer: OpenGL:
        102.786
        103.542
        104.161

    Average: 103.50 Frames Per Second
    Deviation: 0.67%

MBP 2018 16 inch + Razer Core X@40Gbps-TB1 (Zotac RTX 2080 Ti Amp) + Ubuntu 20.04, Win10

 
2011 13" MacBook Pro [2nd,2C,M] + RTX 2080 Ti @ 10Gbps-TB1>TB3 (Razer Core X) + Linux Ubuntu 18.04.02 LTS [build link]  


ReplyQuote
dimebar
(@dimebar)
New Member
Joined: 1 year ago
 

hi,

has anyone tried this on Minx dual boot ?

wanting to upgrade my pc dual boot Minx OS but not sure if this will work ?

thankd

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

.

ReplyQuote
wunhand
(@wunhand)
New Member
Joined: 8 months ago
 

@marquefilips

Using Ubuntu 19.10 [am running egpu from internal display] - after enabling thunderbolt, blacklist nouveau, install drivers, configure xorg file (basic steps) - I was also stuck because I would get screen to hang at boot.  I had to do these additional steps [involved booting to terminal as well and removing xorg file if needing to boot into desktop temporarily]:

With the xorg file configured (adding the bus id , etc... AllowEmptyIntialConfiguration... AllowExternalGpus..." - you can find these templates on many forum posts)...

Once you save that file, and then reinstall Nvidia driver manually from website (you need at least 2 different versions of the file in order to make this work so as to install a different version) - and then let Nvidia recreate Xorg file for you - the template Nvidia software created was different and I was able to tweak it.  Here was the output (added BusID and also made sure that eGPU videocard was listed under Screen):

Section "ServerLayout"
    Identifier "Default Layout"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
EndSection

Section "Module"
    Load "modesetting"
    Load "glx"
EndSection

Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "Device"
    Identifier "Videocard0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:61:0:0"
    Option "AllowEmptyInitialConfiguration"
    Option "AllowExternalGpus" "True"
    Option "Coolbits" "4"
EndSection

Section "Device"
    Identifier "Videocard1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Videocard0"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection
 

I have a Lenovo  Thinkpad X1 Extreme 1st Gen Laptop dGPU (1050ti maxq) as well as eGPU (2080ti).  Then it hung again after about a week of use, and I booted to terminal and installed driver again (remember that there are 2 drivers downloaded - so switched back to that other driver file for install) - had Nvidia recreate the Xorg file from previous Xorg file - and got this:

Section "ServerLayout"
    Identifier "Default Layout"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
EndSection

Section "Module"
    Load "modesetting"
    Load "glx"
EndSection

Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
EndSection

Section "InputDevice"
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    Option "DPMS"
EndSection

Section "Device"
    Identifier "Videocard0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:61:0:0"
EndSection

Section "Device"
    Identifier "Videocard1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BusID "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device "Videocard0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "AllowEmptyInitialConfiguration"
    Option "AllowExternalGpus" "True"
    Option "Coolbits" "4"
    SubSection "Display"
        Depth 24
    EndSubSection
EndSection

Just to add to previous post - had to tweak Xorg file - but you will see where I tweaked if you follow those steps - and other thing I had to do was to tweak BIOS settings. I had to do more than just allow Thunderbolt connection. I had to switch to hybrid graphics, No boot time delay, Diagnostic boot - no Thunderbolt security, Pre Boot ACL (authorization with user intervention) - basically the timing of the boot sequence has to be exactly right...

So I didn't see anybody posting these things which is why I am doing so. It was not as easy for me as just using a basic xorg file.

This post was modified 8 months ago

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

.

ReplyQuote
marquefilips
(@marquefilips)
Active Member
Joined: 2 years ago
 

@wunhand, Thanks! I'll check this out soon. Super cool to help the community!

 

2012 MBP15" 10.13.6, Razer X Core, NVIDIA GTX 1080, (internal Intel HD 4000/Nvidia), Nvidia 387.10.10.10.40.105, Cuda 387.130, TF 1.5 AND 2017 MBP15” 10.13.6 Razer X Core, NVidia GTX and Nvidia GTX GeForce Titan Black (when it’s not misbehaving).


ReplyQuote
 of  2