You are not logged in.

#1 2024-09-05 06:33:40

AndreyDeimos
Member
Registered: 2024-09-05
Posts: 8

[SOLVED] xwayland apps only use nvidia dgpu, not intel igpu

xwayland apps only use nvidia dgpu, and when i power the dgpu down, they just don't startup. Also

glxinfo | grep "OpenGL renderer"

outputs

OpenGL renderer string: NVIDIA GeForce GTX 1050 with Max-Q Design/PCIe/SSE2

I tried everything I could find but nothing worked

Last edited by AndreyDeimos (2024-09-05 12:42:04)

Offline

#2 2024-09-05 11:01:49

Head_on_a_Stick
Member
From: Belsize Park
Registered: 2014-02-20
Posts: 8,107
Website

Re: [SOLVED] xwayland apps only use nvidia dgpu, not intel igpu

I probably won't be able to help here (I'm allergic to NVIDIA) but you should probably tell us which desktop you're using and also share some logs for the startup failures. Thanks.

Welcome to the forums!


"Austerity is the idea that the global financial crash of 2008 was caused by there being too many libraries in Wolverhampton."
   — Alexei Sayle

Offline

#3 2024-09-05 11:15:02

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,702

Re: [SOLVED] xwayland apps only use nvidia dgpu, not intel igpu

Did you ever generate a xorg config with nvidia-xconfig or so? you might want to get rid of that.

Could also be GL loading order, what does your

printenv

give you? Make sure you're not setting __GLX_VENDOR_LIBRARY_NAME=nvidia or similar.

Offline

#4 2024-09-05 12:00:01

AndreyDeimos
Member
Registered: 2024-09-05
Posts: 8

Re: [SOLVED] xwayland apps only use nvidia dgpu, not intel igpu

V1del wrote:

Did you ever generate a xorg config with nvidia-xconfig or so? you might want to get rid of that.

Could also be GL loading order, what does your

printenv

give you? Make sure you're not setting __GLX_VENDOR_LIBRARY_NAME=nvidia or similar.

In fact I am setting __GLX_VENDOR_LIBRARY_NAME=nvidia

deimos@pekarnya:~$ printenv | grep __GLX
__GLX_VENDOR_LIBRARY_NAME=nvidia

However I don't know where I am setting it
Setting __GLX_VENDOR_LIBRARY_NAME=intel as environment variable for apps actually runs them on igpu. Do i just set this as an enviroment variable at startup or I need to find where i set __GLX_VENDOR_LIBRARY_NAME=nvidia?

Offline

#5 2024-09-05 12:06:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,702

Re: [SOLVED] xwayland apps only use nvidia dgpu, not intel igpu

You should find out where you set it and not set it and only set it when you mean to, which happens on-demand via the prime-run command from nvidia-prime.

grep -R GLX /etc/environment /etc/profile /etc/profile.d ~/.bash* ~/.config

... for example, if you're already setting that you might also set VK_DRIVERS or similar, you'll want to rid yourself of these as well.

Last edited by V1del (2024-09-05 12:09:49)

Offline

#6 2024-09-05 12:41:20

AndreyDeimos
Member
Registered: 2024-09-05
Posts: 8

Re: [SOLVED] xwayland apps only use nvidia dgpu, not intel igpu

V1del wrote:

You should find out where you set it and not set it and only set it when you mean to, which happens on-demand via the prime-run command from nvidia-prime.

grep -R GLX /etc/environment /etc/profile /etc/profile.d ~/.bash* ~/.config

... for example, if you're already setting that you might also set VK_DRIVERS or similar, you'll want to rid yourself of these as well.

Thanks, it was in /etc/profile for some reason

Offline

Board footer

Powered by FluxBB