You are not logged in.

#1 2020-08-29 23:29:01

onequestion
Member
Registered: 2020-08-29
Posts: 6

use my second gpu

I have 2 gpus, and I want to use my second gpu to run csgo, I tried using PRIME following the arch wiki steps it gave the results it is supposed to give me but when I run the game it still uses the first gpu
(I run that game from steam which I run also using flatpak)

Offline

#2 2020-08-30 00:37:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,372

Re: use my second gpu

Don't use flatpak. Its sandbox will prevent the relevant injections necessary from happening

Last edited by V1del (2020-08-30 00:37:53)

Offline

#3 2020-08-30 21:19:32

onequestion
Member
Registered: 2020-08-29
Posts: 6

Re: use my second gpu

ok I installed steam after enabling multilb but the game is still using my dedicated gpu
(both my gpus are amd)

Offline

#4 2020-08-31 10:11:25

onequestion
Member
Registered: 2020-08-29
Posts: 6

Re: use my second gpu

/bump
I really need a solution (except switching back to windows ofc)

Offline

#5 2020-08-31 10:32:17

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,396

Re: use my second gpu

Please don't do that, https://wiki.archlinux.org/index.php/Co … ct#Bumping

Is the issue with one game or with multiple ?
If only one, which one ?

What command are you using to start the game ?
please post it and the output steam gives.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#6 2020-08-31 12:38:19

onequestion
Member
Registered: 2020-08-29
Posts: 6

Re: use my second gpu

sorry I am new to the community
so i have only 1 game (counter strike global offensive)
what I did are the 2 commands in GPU offloading here https://wiki.archlinux.org/index.php/PR … offloading and then I ran steam but it didn't work
I read somewhere else that I should run steam using DRI_PRIME=1 steam but it still doesn't work

steam doesn't give any output...

Offline

#7 2020-08-31 13:15:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,372

Re: use my second gpu

it will if you start it in a terminal, and yes you need to use DRI_PRIME=1 whenever you want the other gpu to be used (the two commands you ran aren't necessary anymore just for offloading with sufficiently modern xorg and mesa which we have). You might want to apply that just to the games you intend to start with this however, see: https://wiki.archlinux.org/index.php/St … ch_options

By what measure do you determine that it "doesn't use" your discrete GPU? What do you get for

glxinfo -b
DRI_PRIME=1 glxinfo -b

post these wrapped in [ code ] [ /code ] tags without the spaces.

Offline

#8 2020-08-31 17:02:13

onequestion
Member
Registered: 2020-08-29
Posts: 6

Re: use my second gpu

33
33

the problem is that I must run the game using steam so idk how to specify the game using DRI_PRIME...
I think it is not using my discrete gpu because I am playing on "low" fps

Last edited by onequestion (2020-08-31 18:19:06)

Offline

#9 2020-08-31 18:26:31

zaxdan69
Member
Registered: 2016-06-04
Posts: 318

Re: use my second gpu

You can add it to game's Launch Options. Right click to the game -> select Properties -> "Set Launch Options.." button and there you put:

DRI_PRIME=1 %command%

Last edited by zaxdan69 (2020-08-31 18:26:52)

Offline

#10 2020-08-31 18:28:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,372

Re: use my second gpu

Ah whoops post

glxinfo -B

Offline

#11 2020-08-31 23:38:50

onequestion
Member
Registered: 2020-08-29
Posts: 6

Re: use my second gpu

how can I right click the game somehow, I am using i3wm
for the other commad

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: X.Org (0x1002)
    Device: AMD RAVEN (DRM 3.38.0, 5.8.5-arch1-1, LLVM 10.0.1) (0x15dd)
    Version: 20.1.6
    Accelerated: yes
    Video memory: 1024MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 657 MB, largest block: 657 MB
    VBO free aux. memory - total: 2994 MB, largest block: 2994 MB
    Texture free memory - total: 657 MB, largest block: 657 MB
    Texture free aux. memory - total: 2994 MB, largest block: 2994 MB
    Renderbuffer free memory - total: 657 MB, largest block: 657 MB
    Renderbuffer free aux. memory - total: 2994 MB, largest block: 2994 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 1024 MB
    Total available memory: 4096 MB
    Currently available dedicated video memory: 657 MB
OpenGL vendor string: X.Org
OpenGL renderer string: AMD RAVEN (DRM 3.38.0, 5.8.5-arch1-1, LLVM 10.0.1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.1.6
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.1.6
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.1.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Last edited by onequestion (2020-09-01 18:43:08)

Offline

#12 2020-09-01 05:50:55

zaxdan69
Member
Registered: 2016-06-04
Posts: 318

Re: use my second gpu

What you mean? You wrote above that you run the game from steam. In steam library(where all your steam games are), right click on game' s title.

Offline

#13 2020-09-01 11:24:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,372

Re: use my second gpu

You should also post the DRI_PRIME=1 variant, if the used renderer differs then your dedicated GPU is used and there should be no way for any game to come to a differing conclusion.

"Low fps" can have a variety of reasons and you could get that from the dedicated GPU as well, how low are we talking? But yes it'd be best if you could post the output generated here.

Offline

Board footer

Powered by FluxBB