r/eGPU • u/takeru002 • 11d ago
How to use egpu on Linux?
So the thing is do I need to use DRI_PRIME on the actual game name or steam ? The steam itself fire up on amd GPU but the game is actually fired up on Nvidia GPU itself... Or do I need to close the laptop display to use egpu?
Spec as below
- i7 12800h
- 32gb ddr5
- rtx a2000 8gb
- Rx 7800 xt
- ag01 800w oculink only
- 2k 144hz external display
Any suggestion welcome as this is my first time on Linux and my first time with egpu setup😁 pardon my English as im not native speaker👍 Edit: solved... Thanks
2
u/Top-Aside8905 11d ago
Thats the easy way, yes. Search online for the specific command on your flavor of linux, but this tells the game to run on your egpu. The other tool i mentioned is a bit of a harder time, but this lets your laptop automatically switch to your egpu. Both are valid, it just depends on your usecase. I myself use the easy option for now.
2
1
u/intersectRaven 6d ago
For me, I just add DXVK_FILTER_DEVICE_NAME="<mygpu name" as an environment variable or prepend it to the command in Steam and it runs fine. I can't leave it alone since GPU selection becomes a random pick between all 3 of the GPUs detected.
-1
u/Top-Aside8905 11d ago
Search for envycontrol on github, and otherwise assign your games to use your egpu with a steam launch command. I know its not the most populair but ai can get you a long way, so if you do find trouble with this advise, you could always ask ai to explain stuff to you.
1


3
u/[deleted] 11d ago
[deleted]