Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I prevent Xorg running on the NVIDIA GPU?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lars_the_bear
Guru
Guru


Joined: 05 Jun 2024
Posts: 534

PostPosted: Thu Sep 05, 2024 10:47 am    Post subject: Can I prevent Xorg running on the NVIDIA GPU? Reply with quote

Hi folks

I've been struggling to get the NVIDIA discrete GPU working my laptop. which has hybrid Intel/NVIDA graphics. Thanks to various people who have made suggestions, I have made a little progress. If I run certain graphics programs with environement variables

Code:

__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia


and I see a useful increase in graphics performance.

But...

I _only_ want to use the discrete GPU for applications I select. At present, nvidia-smi tells me it is being used for Xorg. So the discrete GPU never powers down. I don't know what the implications are on a laptop, but I suspect this will trash the battery life.

How can I arrange it so that Xorg starts without using the discrete GPU? I'm guessing that something has to be done in the display manager, but I don't have a clue what.

BR, Lars.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3918

PostPosted: Sun Sep 08, 2024 3:18 pm    Post subject: Reply with quote

Plz see
https://wiki.gentoo.org/wiki/Hybrid_graphics#Nvidia_PRIME
and use
Code:

nvidia-xconfig --prime

Also plz install
Code:

 x11-misc/prime-run

then run app with
Code:

prime-run <app-name>

Thee is also Optimus
https://wiki.gentoo.org/wiki/NVIDIA/Optimus
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum