Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using NVIDIA for OpenGL [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
justin_brody
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 247

PostPosted: Thu Jan 16, 2020 9:12 pm    Post subject: Using NVIDIA for OpenGL [SOLVED] Reply with quote

My apologies if this is another version of the same question I asked in a different post; the computers and issues feel different to me.

I would like to have my laptop use the Nvidia drivers for opengl. I have used eselect to set the opengl to nvidia.

However, if I run glxinfo by itself it doesn't work
Code:

~ $ glxinfo
name of display: :0.0
Error: couldn't find RGB GLX visual or fbconfig



if I use optirun I get what I want, indicating that it's using NVIDIA as well;
Code:

~ $ optirun glxinfo
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: VirtualGL
.
.
.
Currently available dedicated video memory: 4027 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro P600/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 440.44
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
.
.
.


How can I make nvidia be the default for this?

I tried copying the xorg.conf from another machine that has this behavior but X would start; the relevant lines of the config file seem to be:
Quote:


[ 72.031] (II) NVIDIA GLX Module 440.44 Sun Dec 8 03:36:07 UTC 2019
[ 72.031] (II) NVIDIA: The X server supports PRIME Render Offload.
[ 73.412] (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
[ 73.412] (--) NVIDIA(0): DFP-0
[ 73.412] (--) NVIDIA(0): DFP-1
.
.
.[ 73.413] (II) NVIDIA(0): NVIDIA GPU Quadro P600 (GP107GL-A) at PCI:1:0:0 (GPU-0)
[ 73.413] (--) NVIDIA(0): Memory: 4194304 kBytes
[ 73.413] (--) NVIDIA(0): VideoBIOS: 86.07.6a.00.04
[ 73.413] (II) NVIDIA(0): Detected PCI Express Link width: 16X
[ 73.413] (--) NVIDIA(GPU-0): DFP-0: disconnected
[ 73.413] (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
[ 73.413] (--) NVIDIA(GPU-0): DFP-0: 1440.0 MHz maximum pixel clock
[ 73.413] (--) NVIDIA(GPU-0):
[ 73.436] (--) NVIDIA(GPU-0): DFP-1: disconnected
[ 73.436] (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
[ 73.436] (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
[ 73.436] (--) NVIDIA(GPU-0):
.
.
.
[ 73.549] (--) NVIDIA(GPU-0):
[ 73.549] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0.
[ 73.549] (EE) NVIDIA(0): Set AllowEmptyInitialConfiguration if you want the server
[ 73.549] (EE) NVIDIA(0): to start anyway
[ 73.549] (EE) NVIDIA(0): Failing initialization of X screen


Any ideas what's going on here?


UPDATE: It seems vulkan isn't working either:
Code:

~ $ vulkaninfo
/var/tmp/portage/dev-util/vulkan-tools-1.1.124/work/Vulkan-Tools-119e7c3bbae122f6cc5d778d068fb91e0e85d6a9/vulkaninfo/vulkaninfo.h:393: failed with ERROR_INITIALIZATION_FAILED


The machine has a Quadro P600 which, as noted above, seems to work fine with bumblebee
Back to top
View user's profile Send private message
justin_brody
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 247

PostPosted: Fri Jan 17, 2020 1:21 pm    Post subject: Reply with quote

O.k., I got this working by following the directions at 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 Desktop Environments 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