help with dual gpu setup
ive recently purchased and installed a second gpu, ive got the system running on gpu 0 and would like to have games running on gpu 1. ive heard that its possible to do this globally with gamescope and lutris, but ive never used lutris before, nor gamescope on steam, and im not sure how to configure it properly.
22 Replies
switcherooctl lets you run applications on different gpus
so if this is 2 dedicated gpus (and not 1 igpu and 1 dgpu)
then you can just use
switcherooctl launch bazzite-steam 1 to run steam on a different gpu
replace 1 with the gpu index from switcherooctl
anything that steam then runs should use that gpu
same goes for lutrisgpus are nvidia rtx 2060 super and radeon rx 9060 xt by the way
yeah use switcherooctl then
do you know if that would also work on prism mc (or other minecraft launchers)?
it should
i dont play minecraft
so i cant verify with my lonely RX 6600 XT
so if i run that command on steam will that tell steam to always run with that gpu, or do i have to take addittional steps to make sure that persists through restarts?
ok did a bit of looking up, needed to parse the --gpu=1 option to make it actually select. but also something is very wrong here, launched rift of the necrodancer to test, im getting audio, but the game is a black screen, and gpu 1 has jumped to 75%, which does not seem right for a not very graphically intensive game such as rift of the necrodancer
your desktop has a checkbox to use the discrete GPU
you shouldn't really need command ine args
sorry if i sound stupid, but where do i find that checkbox?
oh
i can't find it my bad might not exist in KDE
i do have another way though
alright even if i can get steam to launch consistently with gpu 1, that doesnt fix the black screen issue i appear to be facing
radeon is GPU2?
radeon is gpu1, nvid is gpu0. i want nvid to run everything that isnt a game, and radeon to run games
the nvid is the older gpu, and yes im running the version of bazzite with the nvidia drivers
ok simple
are you using KDE?
yes
you right click the Steam shortcut > properties > application & add
DRI_PRIME=1
that should do i think
though it's a bit of an unusual setup
where the 1st gou is NVIDIA
DRI_PRIME=1 tells the MESA gpu driver to use the first non default PPU
2 would use the next after that 3 would use the one after that & so on
i'm not entirely sure if this would work
it would if the main GPU is intel/AMD or AMD/AMD
not sure about NVIDIA/AMD
since MESA isn't used for NVIDIA currently
NVIDIA has their own non Open Source drivers they themselves make
MESA is working on a good NVIDIA driver
when that gets good enough DRI_PRIME should work in all cases
but currently if going from AMD/intel to NVIDIA you have to use __NV_PRIME_RENDER_OFFLOAD=1
which is NVIDIA's equivalent of DRI_PRIMEis dri_prime an environment veriable or command line arg
DRI_PRIME
in caps caps are important
is an environment variable
the caps signify that it is
cli args usually aren't in caps
ah, ok
environment variables are handy for this exact use case
CLI args don't get inherited
env vars do
cli args are just text
which the app has to handle
while env vars are a system thing
an app can just look up the values
it doesn't really take any effort on the app's end
other than asking for the value
& as i said before they get inherited
so even if the app you\re passing it to doesn't look at the variable any stuff it starts can look at it
unless the app actively chooses to unset/change/not share the variable
which is sometimes done for security
alright, still getting the black screen issue with that variable, could you tell me how to set my computer to just default to the amd gpu, and then ill try offloading things like discord and obs to the nvidia one manually
so in summary, id like the computer to treat the amd gpu as gpu0 and the nvidia one as gpu1
your BIOS normally has a setting for that
ah, alright then
I'm looking through the bios settings rn, and I'm not finding much to do with it, best I can find is a single setting called "VGA detection" which has the options "auto" and "ignore" and a description of "To detect if any discreet VGA card or CPU integrated graphics unit could be found in the system."
I'm not sure if this is helpful