Linux noob here, need help to switch between iGPU & dGPU

Hello there, I am using a laptop that has a ryzen processor and nvidia card.
I can’t quite get how to use dGPU for gaming. All the solutions I did find were for nvidia+Intel using optimus-manager

lspci|grep ‘VGA’
01:00.0 VGA compatible controller: NVIDIA Corporation TU116M [GeForce GTX 1660 Ti Mobile] (rev a1)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c7)

glxinfo | grep render [1]
direct rendering: Yes
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX_MESA_query_renderer, GLX_MESA_swap_control, GLX_OML_swap_method,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: AMD RENOIR (DRM 3.38.0, 5.8.18-1-MANJARO, LLVM 11.0.0)
GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
GL_NV_alpha_to_coverage_dither_control, GL_NV_conditional_render,
GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
GL_NV_conditional_render, GL_NV_copy_image, GL_NV_depth_clamp,
GL_EXT_read_format_bgra, GL_EXT_render_snorm, GL_EXT_robustness,
GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments,
GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

thank you

https://wiki.manjaro.org/index.php?title=Configure_Graphics_Cards

the nvidia xserver setting app is not opening :confused:

tried using prime-run

prime-run glxgears
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 25
Current serial number in output stream: 26

But … have you configured your cards/drivers?

mhwd -l && mhwd -li 

yes video-hybrid-amd-nvidia-455xx-prime & video-linux are installed

If you

prime-run glxinfo | grep OpenGL

What output do you get?

1 Like

The same problem here. prime-run glxinfo leads to the error mentioned above. Seems that nvidia drivers cannot be loaded (because of “invalid argument”). video-hybrid-amd-nvidia-455xx-prime & 5.9 kernel.

1 Like

I get Nvidia gpu but while playing games, they run on the AMD iGPU

How are you launching games? The easiest way is to use lutris for all your games. You have the prime render offload option, gamemode and many more tweaks

1 Like

I’m launching through steam, well I jumped over to garuda linux. It has optimus manager for Ryzen+Nvidia and works well OOTB. Thanks for the support

We have all those things too.
I guess its nice you learned how things worked here enough to go somewhere else.