eGPU on Linux - Easy-to-use setup script
I installed the newest kernel (5.7.7), but it does not work still. However, there is some "progress". When i plug in the egpu while the laptop is powered on, it completely freezes and when i plug it in when it is turned off, I only get a blank screen on start-up.
Version 5.7.7 broke other things in my laptop. I also tried 5.5.0, but also was not lucky with that one, the screen also freezes for that version. Another strange thing is that i uninstalled version 5.7.7, but by default it still boots with that version, so now I have to select boot with older kernel each time to get to the stable 5.5.0 version.
Switch to the default stable kernel before uninstalling the mainline kernels. Also be sure to run the script as root when installing and uninstalling. It's not very good about giving you feedback. Sorry if I didn't mention that mainline kernels can cause problems.
I think posting the full output of dmesg with the egpu attached would be my next thing to do.
I knew that newer kernels could give issues, no worries. That has been fixed again. But after trying to make it work for 4 days and a lot of frustration later, I decided to give up this quest. I also contacted customer support of system76 and they said that their newest supported kernels should support my graphics card. That information may be helpful for somebody in the future. I did not pin point the issue unfortunately. A collega of mine with more experience in linux also had a look and also could not make it work. Maybe with more effort I could have made it work, or maybe the graphics card was faulty (but I did not have another machine to test it with). I guess we will never know. Time was also not my friend in this adventure as I needed this for my job, in consultation with my employer we arranged a desktop for me. Anyway, thanks a lot for the effort you took in answering my questions!
Hey guys i am new to the linux world.
Manage to get this working, however i have issues when i disconnect the egpu. once i disconnect it from the computer everything freezes and i need to reboot the computer.
In windows this dosnt happend. Any good tips how i can make this work better?
I am running:
Thanks in advanced.
Unfortunately, hot-plugging your eGPU is not possible and a reboot is always required.
Make sure to only connect / disconnect your eGPU while your computer is fully shut down to prevent system freezes.
There's actually an open pull request which will add the feature to remove the eGPU without a reboot in the future.
However, it still requires the user to completely log out, so it's not really the same to what you are used to in Windows.
Just wanna express my thanks. This script is working well most of the time and withou it I probably would not be able to set up eGPUs in Linux!
I am now running Pop OS 20.04 with a RX 580 in a Sonnet Breakway 350W. Amazingly enough, I get my laptop to charge off the eGPU box on Pop, something it wasn't able to do on Windows!
For the errors, if I turn it on with the box plugged in I don't get to boot but get stuck on a "starting GNOME Display Manager". It feels like I need to pop the thunderbolt cable in the device at a "right time".
Hey, sorry to hear that it doesn't seem to work properly.
There were similar reports from people using GDM (Gnome Display Manager) in the past.
As far as i know, the common solution for most people was to switch to LightDM.
@hertg, thanks for the reply. I looked into that but I'd prefer not to mess with the UX (even if minor) on Pop. I'll look into other scripts that do similar things and if they also have issues with GDM i'll try to switch to LightDM!
Just wanna give an update on my situation. Sadly LightDM didn't help me at all. Thankfully, however using @Sebulon script made it work flawlessly for me. Thank you both for the effort you are putting into this stuff. I'm very satisfied with how egpus are done in Linux and I'm happy to see this wasn't one of the painpoints when switching from Windows.