Setup & Software Discussions
Some questions linux and eGPU
 

Some questions linux and eGPU  

  RSS

Chega
(@chega)
Active Member
Joined: 1 year ago
 

Hi all! I start to explore wonderful world of linux + eGPU for my setup https://egpu.io/forums/builds/2018-14-dell-latitude-5491-gtx107032gbps-tb3aorus-gaming-box-w10-1803/
I chose Manjaro for it.
And have some questions:
Does is some workaround to make to think Linux system that laptop connected to docking station when eGPU connected? I ask it because want to use HandleLidSwitchDocked=ignore in /etc/systemd/logind.conf

And second question
What the best way to handle hotplug eGPU by linux?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
nu_ninja
(@nu_ninja)
Estimable Member
Joined: 1 year ago
 

Cool!
Looking at the logind options, it looks like HandleLidSwitchDocked occurs when docked or when multiple displays are attached so if you're using an external display connected to the egpu then it should behave as you want it to.
I don't know about hot-plug, but hot-unplug at least is supported by the gswitch script. You can build it from github in Manjaro if no one has added it to the AUR already.

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.14+Win10
+ Linux Mint 19.1


ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 9 months ago
 
Posted by: @nu_ninja

I don't know about hot-plug, but hot-unplug at least is supported by the gswitch script.

Hot-plug works great, I haven't had any issues with it that I remember, at least with my NVIDIA card.

Hot-unplug on the other hand, I'm not really sure, but I don't think that works because the thunderbolt cable still is connected that presents the card to the OS so the driver, xorg and friends have it enumerated, and they can get really cranky when their world view changes 🙂

Put something in udev perhaps, that calls "gswitch internal" when you pull the cable. That would be really cool, that could actually work... Then, it would also mean that your display session would force close upon pulling the cable. Is that really desired behavior from a user perspective? Would you like that?

Pending: Add my system information and expected eGPU configuration to my signature to give context to my posts


ReplyQuote
nu_ninja
(@nu_ninja)
Estimable Member
Joined: 1 year ago
 

Ok, it looks like the issues I'm having with hot-plug are firmware or maybe old hardware related. I tested with AMD and Nvidia cards and just couldn't get any BARs assigned to the card after hot-plugging (the linux equivalent of error 12).

Personally I don't think hot-unplugging is a very big deal, but if there's a way to make it respond as gracefully as possible to the user pulling the cable that would be nice.

Mid-2012 13" Macbook Pro (MacBookPro9,2) TB1 -> RX 460/560 (AKiTiO Node/Thunder2)
+ macOS 10.14+Win10
+ Linux Mint 19.1


ReplyQuote