my gpu isnt appearing in any game and the output of glxinfo |grep -i opengl
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 520 (S
KL GT2)
OpenGL core profile version string: 4.6 (Core Profile) M
esa 21.2.1
OpenGL core profile shading language version string: 4.6
0
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa
21.2.1
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 21.
2.1
OpenGL ES profile shading language version string: OpenG
L ES GLSL ES 3.20
OpenGL ES profile extensions:
and only my igpu is working in my laptop
not my dgpu
Since is a hybrid intel-AMD, you always have to use DRI_PRIME=1 when want an application to use the dGPU. there are other ways to do that tho, so you don’t always run commands from terminal. For example this AUR package: http://aur.archlinux.org/packages/switcheroo-control
Where did you get that from?
switcheroo-control is using D-Bus service to check the availability of dual GPU, is DE (desktop environment) independent …
In principle yes, that is how prime offloading is working, but you can also can edit the desktop files your favorite apps that want them to run with dGPU and have the Exec=DRI_PRIME=1 appended to the default command. See more here: Configure Graphics Cards - Manjaro
In case you want to use reverse prime, you will have to see this AMDGPU - Gentoo Wiki