NVIDIA Drivers are not configured correctly help!

This is a fresh install of Manjaro . When ever i play cs-go the fps is very low, which makes me believe it runs on my igpu and when ever i try to launch it with NVIDIA GPU i get the following error.

note: optirun and primusrun are not present in my system (i guess because manjaro does not recognize the command")

Launching csgo with prime-run.

x@manjaro: prime-run ./csgo.sh   
SDL video target is 'x11'
SDL failed to create GL compatibility profile (whichProfile=0!
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system supports the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system supports the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
This system supports the OpenGL extension GL_ARB_vertex_buffer_object.
This system supports the OpenGL extension GL_ARB_occlusion_query.
This system DOES NOT support the OpenGL extension GL_APPLE_texture_range.
This system DOES NOT support the OpenGL extension GL_APPLE_client_storage.
This system DOES NOT support the OpenGL extension GL_ARB_uniform_buffer.
This system supports the OpenGL extension GL_ARB_vertex_array_bgra.
This system supports the OpenGL extension GL_EXT_vertex_array_bgra.
This system supports the OpenGL extension GL_ARB_framebuffer_object.
This system DOES NOT support the OpenGL extension GL_GREMEDY_string_marker.
This system supports the OpenGL extension GL_ARB_debug_output.
This system supports the OpenGL extension GL_EXT_direct_state_access.
This system supports the OpenGL extension GL_NV_bindless_texture.
This system DOES NOT support the OpenGL extension GL_AMD_pinned_memory.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample_blit_scaled.
This system supports the OpenGL extension GL_EXT_texture_sRGB_decode.
This system supports the OpenGL extension GL_NVX_gpu_memory_info.
This system DOES NOT support the OpenGL extension GL_ATI_meminfo.
This system supports the OpenGL extension GL_EXT_texture_compression_s3tc.
This system supports the OpenGL extension GL_EXT_texture_compression_dxt1.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt3.
This system DOES NOT support the OpenGL extension GL_ANGLE_texture_compression_dxt5.
This system supports the OpenGL extension GL_ARB_buffer_storage.
This system supports the OpenGL extension GLX_EXT_swap_control_tear.
 failed to dlopen /home/mukund/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/engine_client.so error=/home/mukund/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Counter-Strike Global Offensive/bin/engine_client.so: wrong ELF class: ELFCLASS32
AppFramework : Unable to load module engine_client.so!
Unable to load interface VCvarQuery001 from engine_client.so, requested from EXE.

Graphics cards and drivers installed in my system

What i get when i run glxinfo|egrep “OpenGL vendor|OpenGL renderer”

x@manjaro:  glxinfo|egrep "OpenGL vendor|OpenGL renderer"                  
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)

what i get when i run prime-run glxinfo|egrep “OpenGL vendor|OpenGL renderer”

prime-run  glxinfo|egrep "OpenGL vendor|OpenGL renderer"         ✔ 
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 940MX/PCIe/SSE2

Here is my nvidia configs which i found in my home folder

#
# /home/x/.nvidia-settings-rc
#
# Configuration file for nvidia-settings - the NVIDIA X Server Settings utility
# Generated on Wed Mar 24 12:02:19 2021
#

# ConfigProperties:

RcFileLocale = C
DisplayStatusBar = Yes
SliderTextEntries = Yes
IncludeDisplayNameInConfigFile = No
ShowQuitDialog = Yes
UpdateRulesOnProfileNameChange = Yes
Timer = PowerMizer_Monitor_(GPU_0),Yes,1000
Timer = Thermal_Monitor_(GPU_0),Yes,1000
Timer = Memory_Used_(GPU_0),Yes,3000

# Attributes:

Since this work:

I doubt it won’t run on dGPU.

Why do you start it directly? Just add this to steam: prime-run %command%

Possible that there libs missing when starting it like this…

This for example says, that it is searching for 64bit file, but found a 32bit one.

Maybe try installing mangohud to verfiy that you really using your dGPU:

pamac build mangohud

and run the game in steam with

prime-run mangohud %command%

It just launches and then exits so i wanted to know what was happening.

Ok i will try it and get back

This indicate the driver is installed correctly.
Why are you opening csgo with ./csgo.sh instead on the play button on steam?

Right click on the game on steam and put prime-run %command% in the launch options,that way the game will use the nvidia card.

it does not launch that way either, i wanted to know what went wrong so i launched it directly

I tried what you suggested but csgo just launches and then closes it self

Do you run steam with system libs or with steam owned libs?

There is linux-steam-integration where you can switch to system libs.

However… if you are not a geek, then lutris might be the better choice if you need advanced settings like prime-run. There are a lot of clickable settings for gaming and you can import steam games.

Are you using steam from flatpak? Maybe there is wrong with the package.

Install steam-manjaro,unless you installed minimal version of manjaro this comes preinstalled by default.

+1 for using lutris. Not only do you have so many launch options you even have a terminal option to see what is happening in real time while the games are launching/running so you can see what actually causes a game to crash

yup installed the flatpak version by mistake. I post an update once i reinstall steam and csgo