Switching GPU
from Y2K38@lemmy.one to linux@lemmy.ml on 27 Nov 2023 11:12
https://lemmy.one/post/7289633

does anyone know if its possible to switch between my integrated (ryzen 7700) and dedicated (rx6800xt) on arch? i want to automate this with a little script (which tries to detect games for example) for less powerusage on my desktop pc

#linux

threaded - newest

LeTak@lemm.ee on 27 Nov 2023 11:21 next collapse

Isn’t the GPU used for the application defined by the monitor it is opened on and on which GPU this monitor is then connected to?

Y2K38@lemmy.one on 27 Nov 2023 11:23 next collapse

I don’t know, could be. But I don’t want to always put the monitor cables into another port. I thought there maybe could be a software way to do this or only use the GPU for the really intense tasks.

AProfessional@lemmy.world on 27 Nov 2023 15:32 collapse

The output and the renderer are separate and configurable concepts.

Strit@lemmy.linuxuserspace.show on 27 Nov 2023 11:31 next collapse

I know of PRIME, which can be used to offload work to dedicated GPU’s.

wiki.archlinux.org/title/PRIME#For_open_source_dr…

INeedMana@lemmy.world on 27 Nov 2023 11:37 collapse

I’ve also found this article that doesn’t add nvidia to the mix. But in general it seems to work the same for both as long as you have the drivers proper for your hardware installed

drwankingstein@lemmy.dbzer0.com on 27 Nov 2023 14:36 next collapse

I typically use DRI_PRIME for ogl and VK_ICD_FILENAMES for vulkan

_cnt0@sh.itjust.works on 27 Nov 2023 15:54 next collapse

When using open source drivers offloading should be automatic depending on demand. You can make it explicit with DRI_PRIME=0 or DRI_PRIME=1. You’ll have to check which is which.

TerkErJerbs@lemm.ee on 27 Nov 2023 23:31 collapse

OP is it the 7700 non-x 65w tdp version? Asking because I’m thinking about upgrading my CPU from 5600x to the 7700non-x and have the same gpu. I was actually wondering how throwing that integrated graphics into the mix would work so thanks for asking this and looking forward to your findings if you don’t mind posting however you end up solving this.

Y2K38@lemmy.one on 28 Nov 2023 10:31 collapse

Yes, I have the non x version. I think the one with x has a higher tdp. I’ll probably look into this this weekend. Hopefully, I’ll find something out that’s helpful to you.