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

eGPU on Linux - Easy-to-use setup script  

 of  10
  RSS

Sebulon
(@sebulon)
Trusted Member
Joined: 2 years ago
 

@niirb

Glad to hear you got it working, awesome!

I just want to say that I find it strange that my tool works better for you than @hertg, when they are just as good, do very much the same things and in very similar ways. I suspect something else may have made the difference in your case, other than *just* the tool, but never mind, happy for you all the same!

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

.

itsage liked
ReplyQuote
niirb
(@niirb)
Active Member
Joined: 1 month ago
 

@sebulon, I would have assumed that as well. It doesn't make sense to me, especially when @hertg used your tool as a baseline for his. I am happy it just works in the end tbh.

 

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

.

ReplyQuote
hertg
(@hertg)
Active Member
Joined: 1 year ago
 

@niirb

Very glad to hear that you got it working with sebulon's script! Smile

@sebulon
That's indeed quite strange, since the whole xorg.conf switching is pretty much the same in both scripts.

Because it sounded like some kind of timing issue, i took a peak at your systemd script and spotted that we defined the WantedBy differently.
In your script you defined:

WantedBy=graphical.target

I've defined it as:

WantedBy=multi-user.target

Were you able to resolve an issue by changing that from multi-user to graphical in the commit 57b37c6?
I don't understand how this could be the cause of the issue, since multi-user.target is reached before graphical.target and therefore the script should run early enough.
But who knows, maybe that's actually the problem. Grin

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


ReplyQuote
Sebulon
(@sebulon)
Trusted Member
Joined: 2 years ago
 

@hertg

Posted by: @hertg

That's indeed quite strange, since the whole xorg.conf switching is pretty much the same in both scripts.

Exactly!

Posted by: @hertg

Because it sounded like some kind of timing issue, i took a peak at your systemd script and spotted that we defined the WantedBy differently.

No, it had nothing to do with that, it was actually @nu_ninja that had an issue with a BIOS flash gone wrong on a graphics card and wanted systemd to stop firing the script when *not* in 'graphical.target', haha! But yeah, maybe that's it and we solved this issue totally unknowingly! Awesome! Cool

https://github.com/karli-sjoberg/gswitch/pull/3

 

This post was modified 2 weeks ago

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

.

ReplyQuote
niirb
(@niirb)
Active Member
Joined: 1 month ago
 

Hi!

I wanted to give both of you a bit of an update on my situation.

@Sebulon 's script is not wokring that well on boot either anymore. Like it's a game, sometimes it boots and the gpu is picked sometimes it isn't and I end up with a laggy thing. However it does consistently work if I do "setup" -> "egpu". This is honestly enough for me, just that it's consistent and that I always have the same solution for making it work.

I have no clue why these things are happening so it must be something with the hardware as well. I'm running a Yoga 920 with Pop_os 20.04 and the eGPU is a Sonnet Breakaway Box 350w.

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

.

ReplyQuote
hertg
(@hertg)
Active Member
Joined: 1 year ago
 

@sebulon
Thanks for the link to the PR! I've just changed my systemd service to WantedBy=graphical.target too, i believe that makes sense.
I've also added a After=bolt.service to it, since the boltd (Thunderbolt daemon), probably needs to be started. so the eGPU is available on PCIe.
I'm hoping that this resolves some timing issues that users report occasionally.

@niirb

Sorry to hear that. Unfortunately, eGPUs on Linux can still be a bit finicky from time to time, even with the scripts from the community.
For example, I still have some weird issue sporadically where i need to manually restart the display-manager to make it work on my (non-eGPU) Thunderbolt 3 Dock in my office and I wasn't able to find the cause of that.

However, I've just released a new version 0.15.0 for my egpu-switcher where I specified the systemd order more specifically, which hopefully resolves some timing issues on bootup. Maybe you could give that a try and see if it changes anything for you?

 

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


ReplyQuote
 of  10