Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to select proper GPU #257

Open
StuffOfSonny opened this issue Oct 6, 2024 · 23 comments
Open

Unable to select proper GPU #257

StuffOfSonny opened this issue Oct 6, 2024 · 23 comments

Comments

@StuffOfSonny
Copy link

Minecraft keeps running with my GTX960 instead of my RTX2070 and I can't figure out how to point it at the correct graphics card.

@Quantum39
Copy link

Quantum39 commented Oct 6, 2024

use nvidia control panel or settings to select minecraft (minecraft is javaw.exe) to use the 2070 by default

@StuffOfSonny
Copy link
Author

Ah, my mistake, I forgot to mention I run Linux.
Garuda, with the official NVIDIA drivers. (it's arch BTW).

@CrabbyDisk
Copy link

Minecraft keeps running with my GTX960 instead of my RTX2070 and I can't figure out how to point it at the correct graphics card.

I'm curious on how that works, like how do you render your game on another gpu then the one your monitor is plugged into

@StuffOfSonny
Copy link
Author

StuffOfSonny commented Oct 6, 2024

Minecraft keeps running with my GTX960 instead of my RTX2070 and I can't figure out how to point it at the correct graphics card.

I'm curious on how that works, like how do you render your game on another gpu then the one your monitor is plugged into

Dunno, but that is what is currently happening.
The game launches on my Primary Monitor which is plugged into my RTX2070, but when I look at BTOP, it says GPU0 (my GTX960) is pegged at full use.

@CrabbyDisk
Copy link

what does it say in the f3 screen
what does it say when you run nvidia-smi

@Quantum39
Copy link

seeing as your using linux, the solution after a quick search just seems to be installing nvidia-prime package and from there launching the program and selecting the correct gpu

@StuffOfSonny
Copy link
Author

I apologize, as I have not needed to use nvidia-prime before, what would this look like? My guess is to edit the properties of the Prism Launcher .desktop entry to specify prime-run? Or will that only affect Prism Launcher?

@CrabbyDisk
Copy link

that sounds kinda cursed as a solution

@CrabbyDisk
Copy link

but I'm wondering what do you need that 960 for

@Quantum39
Copy link

minecraft runs with java, so you need to find where java program is located (should be somewhere in /usr/lib/jvm according to arch wiki. Note that this also means all java programs that use the gpu will select the 2070 instead) so minecraft runs with the correct gpu

selecting prism launcher will just make the launcher run with the 2070 instead of minecraft itself

@Quantum39
Copy link

i will try and test this out on a vm later to make sure

@StuffOfSonny
Copy link
Author

but I'm wondering what do you need that 960 for

I run basic programs (browser, Discord, BTOP, OBS, etc) on the smaller card, and more demanding tasks (Games, Rendering, etc) on the bigger one.

@StuffOfSonny
Copy link
Author

minecraft runs with java, so you need to find where java program is located (should be somewhere in /usr/lib/jvm according to arch wiki. Note that this also means all java programs that use the gpu will select the 2070 instead) so minecraft runs with the correct gpu

selecting prism launcher will just make the launcher run with the 2070 instead of minecraft itself

i will try and test this out on a vm later to make sure

Well one solution is to install a Java instance for Minecraft specifically (I typically grab Azul Zulu for use with this Faster Random).

@CrabbyDisk
Copy link

I run basic programs (browser, Discord, BTOP, OBS, etc) on the smaller card, and more demanding tasks (Games, Rendering, etc) on the bigger one.

Idk why but that feels kinda cursed and I think having the OS put the 2 outputs together would actually hurt performance, I wouldn't recommend doing that. 2 gpus could be useful for dual monitor setups but yeah, I don't think you should be using that.

@StuffOfSonny
Copy link
Author

I run basic programs (browser, Discord, BTOP, OBS, etc) on the smaller card, and more demanding tasks (Games, Rendering, etc) on the bigger one.

Idk why but that feels kinda cursed and I think having the OS put the 2 outputs together would actually hurt performance, I wouldn't recommend doing that. 2 gpus could be useful for dual monitor setups but yeah, I don't think you should be using that.

I have 5 monitors.

4 on the GTX960 and 1 (4K) on the RTX2070.

@CrabbyDisk
Copy link

quick question, are you on wayland or x11

@StuffOfSonny
Copy link
Author

quick question, are you on wayland or x11

x11

@CrabbyDisk
Copy link

you could try messing around in Nvidia X Server Settings, it seems like you can assign monitors to gpus in there, in the x server display configuration section

@StuffOfSonny
Copy link
Author

StuffOfSonny commented Oct 7, 2024

you could try messing around in Nvidia X Server Settings, it seems like you can assign monitors to gpus in there, in the x server display configuration section

No idea what i'm doing, also I don't know why GPU 0 & 1 are swapped in this program.
image

@CrabbyDisk
Copy link

idk try figure it out ig

@StuffOfSonny
Copy link
Author

idk try figure it out ig

image

@StuffOfSonny
Copy link
Author

idk try figure it out ig

in the process of trying to "figure it out", I somehow managed to make the nvidia-settings app kill redshift (or whatever equivalent is used in Plasma) on launch, but I could not get "PRIME settings" tab to show up. I'm gonna wait for @Quantum39's findings for now.

@StuffOfSonny
Copy link
Author

idk try figure it out ig

I decided to take a break from the headache and now Baldur's Gate 3 isn't rendering any graphics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants