Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problems with nvidia/glxinfo and others
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
alex6
Apprentice
Apprentice


Joined: 18 Jul 2011
Posts: 157

PostPosted: Mon Jan 01, 2018 12:09 pm    Post subject: [SOLVED] Problems with nvidia/glxinfo and others Reply with quote

For a strange reason, it seems my nvidia driver load correctly but opengl can't be detected by some applications (for example wine).

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


I've tried to reinstall an older version of nvidia-drivers with dame result
Switching eselect opengl to x11 then back to nvidia gives the same result...

Any ideas ?

Code:

lsmod | grep nvidia
nvidia_modeset        805770  1
nvidia              12482866  72 nvidia_modeset



Code:
dmesg | grep nvidia
[    2.713167] nvidia_drm: loading out-of-tree module taints kernel.
[    2.713170] nvidia_drm: module license 'MIT' taints kernel.
[    2.813643] nvidia-nvlink: Nvlink Core is being initialized, major device number 250
[    3.744553] nvidia-smi (1801) used greatest stack depth: 12304 bytes left
[   16.582833] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  384.90  Tue Sep 19 17:05:19 PDT 2017
[   16.583189] nvidia-modeset: Allocated GPU:0 (GPU-adacf798-dca6-6799-74ee-47faf2bdd4ba) @ PCI:0000:01:00.0
[  698.617996] nvidia-modeset: Freed GPU:0 (GPU-adacf798-dca6-6799-74ee-47faf2bdd4ba) @ PCI:0000:01:00.0
[  708.421345] nvidia-modeset: Unloading
[  708.431304] nvidia-nvlink: Unregistered the Nvlink Core, major device number 250
[  714.179634] nvidia-nvlink: Nvlink Core is being initialized, major device number 250
[  714.919361] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  384.90  Tue Sep 19 17:05:19 PDT 2017
[  714.919722] nvidia-modeset: Allocated GPU:0 (GPU-adacf798-dca6-6799-74ee-47faf2bdd4ba) @ PCI:0000:01:00.0

Code:

grep -i glx /var/log/Xorg.0.log
[   714.000] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   714.000] (II) LoadModule: "glx"
[   714.001] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   714.002] (II) Module glx: vendor="X.Org Foundation"
[   714.036] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[   714.036] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[   714.036] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[   715.036] (II) AIGLX: Screen 0 is not DRI2 capable
[   715.036] (EE) AIGLX: reverting to software rendering
[   715.057] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[   715.058] (II) IGLX: Loaded and initialized swrast
[   715.058] (II) GLX: Initialized DRISWRAST GL provider for screen 0

Code:

grep -v ^# /etc/X11/xorg.conf
Section "Monitor"
   Identifier "Monitor"
EndSection

Section "Module"
 Load "glx"
EndSection

Section "Device"
   Identifier "nvidia Geforce GT 630"
   Driver "nvidia"
EndSection


Section "Screen"
   Identifier "Screen"
   Device "nvidia Geforce GT 630"
   Monitor "Monitor"
EndSection

Section "ServerFlags"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "fr"
EndSection




Last edited by alex6 on Mon Jan 01, 2018 2:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
alex6
Apprentice
Apprentice


Joined: 18 Jul 2011
Posts: 157

PostPosted: Mon Jan 01, 2018 12:37 pm    Post subject: Reply with quote

Not sure if that can be related, but by mistake, I enabled a wrong version of eselect-opengl, I've switched back to the regular :gentoo version :

Code:
>>> Messages generated by process 9126 on 2017-12-31 17:10:49 CET for package app-eselect/eselect-opengl-1.3.3-r1:

WARN: postinst
This is an experimental version of app-eselect/eselect-opengl designed to fix various issues
when switching GL providers.
This package can only be used in conjuction with patched versions of:
 * media-libs/mesa
 * x11-base/xorg-server
 * x11-drivers/nvidia-drivers
from the bobwya overlay.
Back to top
View user's profile Send private message
alex6
Apprentice
Apprentice


Joined: 18 Jul 2011
Posts: 157

PostPosted: Mon Jan 01, 2018 1:01 pm    Post subject: Reply with quote

cat /proc/fb gives no output
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Mon Jan 01, 2018 1:03 pm    Post subject: Reply with quote

you
Code:
[   714.001] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so


me
Code:
[    14.219] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so


so totally related, reswitch to xorg and back to nvidia to fix it.
Back to top
View user's profile Send private message
alex6
Apprentice
Apprentice


Joined: 18 Jul 2011
Posts: 157

PostPosted: Mon Jan 01, 2018 1:39 pm    Post subject: Reply with quote

oh, thanks, but actually, setting it to x11 then nvidia again didn't fix this :/
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Mon Jan 01, 2018 1:59 pm    Post subject: Reply with quote

check your ModulePath in xorg.log, it should be
Code:
[    14.168] (**) ModulePath set to "/usr/lib64/opengl/nvidia,/usr/lib64/xorg/modules"


ModulePath is set thru :
Code:
/etc/X11/xorg.conf.d/20opengl.conf
Section "Files"
   ModulePath "/usr/lib64/opengl/nvidia"
   ModulePath "/usr/lib64/xorg/modules"
EndSection


and eselect alter env to use nvidia thru
Code:
/etc/env.d/000opengl
# Configuration file for eselect
# This file has been automatically generated.
LDPATH="/usr/lib32/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib"
OPENGL_PROFILE="nvidia"
Back to top
View user's profile Send private message
alex6
Apprentice
Apprentice


Joined: 18 Jul 2011
Posts: 157

PostPosted: Mon Jan 01, 2018 2:04 pm    Post subject: Reply with quote

Code:
grep -ri Modulepath /etc/X11/ /usr/share/X11/
/etc/X11/xorg.conf.d/20opengl.conf:   ModulePath "/usr/lib32/xorg/modules"
/etc/X11/xorg.conf.d/20opengl.conf:   ModulePath "/usr/lib64/opengl/nvidia"
/etc/X11/xorg.conf.d/20opengl.conf:   ModulePath "/usr/lib64/xorg/modules"
/etc/X11/xorg.conf.d/20-opengl.conf:   ModulePath "/usr/lib32/xorg/modules"
/etc/X11/xorg.conf.d/20-opengl.conf:   ModulePath "/usr/lib64/xorg/modules"

removing /etc/X11/xorg.conf.d/20-opengl.conf
Back to top
View user's profile Send private message
alex6
Apprentice
Apprentice


Joined: 18 Jul 2011
Posts: 157

PostPosted: Mon Jan 01, 2018 2:19 pm    Post subject: Reply with quote

problem solved :)
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6968

PostPosted: Mon Jan 01, 2018 2:20 pm    Post subject: Reply with quote

alex6 wrote:
problem solved :)

New year starting good :)
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