#KDE Plasma(wayland) not using nvidia GPU

1 messages · Page 1 of 1 (latest)

cedar spoke
#

when using plasma wayland it doesn't seem to work with my nvidia gpu (glxinfo shows Mesa Intel), with plasma(X11) it correctly shows the nvidia gpu
tried using both nvidia and nvidia-open drivers
gpu : nvdia 1650ti mobile

blazing gust
#

Did you enable the kernel parameter?

cedar spoke
#

Yes (nvidia-drm.modeset=1)

blazing gust
#

Are you using a laptop with dual GPU

cedar spoke
blazing gust
#

Laptop, yes?

#

Then it's using your iGPU by default

#

You need to set an env var to use NVIDIA

#

Otherwise it runs stuff on iGPU

cedar spoke
#

Ok so it'll never use the nvidia gpu I assume even under heavy load? I' so, how do i set an env var that does that

#

Also : should I use the nvidia-open drivers or nvidia proprietary?

blazing gust
#

Try both

#

See which one is better

blazing gust
#

@cedar spoke DRI_PRIME=pci-0000_01_00_0 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo try this

cedar spoke
#

where do I input this?

blazing gust
#

That's a command

#

It has glxinfo at the end

#

Run it and see if it gives you Nvidia

cedar spoke
#

will do, just a sec

#

Yup, working. "OpenGL renderer string: NVIDIA GEFORCE GTX 1650 Ti/PCIe/SSE2"

#

kde systeminfo still shows Mesa Intel though

blazing gust
#

Because it's the default

#

I recommend only using dedicated GPU for games

#

You don't need it for anything else

cedar spoke
#

Ok, so now it'll use the gpu for heavy loads etc.? And is this change permanent right now or do I need to make the env var run every time I reboot?

blazing gust
#

No it won't

#

And no

#

You launched one app with the env var

#

And that one app used Nvidia

#

Anything else you run now will use Intel

cedar spoke
blazing gust
#

Wayland doesn't use any GPU

#

Well, Wayland always uses the GPU the display is connected to

#

You can't change the GPU your display is connected to

cedar spoke
blazing gust
#

Yes

#

But if you wanna run apps on your discrete GPU, you have to set the env vars

cedar spoke
#

"Select "Plasma (wayland)" from your login manager
Enjoy your beautiful super-fast accelerated wayland desktop!"

blazing gust
#

Just set it for the steam process

cedar spoke
#

So I paste this into launch options? DRI_PRIME=pci-0000_01_00_0 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia

blazing gust
#

Well no because that would set them ad parameters and not as env vars

#

ENV=stuff %command% like this

cedar spoke
blazing gust
#

You will not notice a difference running a web browser on the dedicated GPU

#

Only run games there

#

The benefit of this is 10x more battery

cedar spoke
#

I see, is there a reason why plasma(x11) didn't display mesa from the beginning with glxinfo?