Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia drivers again [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 816
Location: Queensland

PostPosted: Sun Apr 12, 2020 1:28 am    Post subject: nvidia drivers again [SOLVED] Reply with quote

Just updated all packages, and kernel to 5.4.13. I have a Lenovo W520 which has the dreaded Optimus video configuration:
Code:
ida ~ # lspci|grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108GLM [Quadro 1000M] (rev a1)
and I run it with two external screens as well as the built-in display. This was all working correctly, but after the update, the built-in display is blank and there are X errors:
Code:
ida ~ # grep -w EE /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    10.347] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[    10.347] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[    10.347] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[    10.347] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[    10.347] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.
[    12.800] (EE) Failed to open authorization file "/var/run/sddm/{0fd4f4e3-097a-4966-9448-9b119a1e7422}": No such file or directory
Ignore that sddm error; it doesn't seem to cause any real problem. That GLX error must be related to the problem but:
Code:
ida ~ # ls -l /usr/lib/xorg/modules/extensions/libglx.so
-rwxr-xr-x 1 root root 289616 Apr 12 07:27 /usr/lib/xorg/modules/extensions/libglx.so
Just for good measure I tried:
Code:
emerge -C nvidia-drivers xf86-input-{evdev,libinput,synaptics} xorg-{drivers,server}
emerge nvidia-drivers xf86-input-{evdev,libinput,synaptics} xorg-{drivers,server}
emerge @preserved-rebuild
but no change. What now?
_________________
Michael Mounteney


Last edited by mounty1 on Sun Apr 12, 2020 8:07 am; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
l33t
l33t


Joined: 06 Dec 2018
Posts: 697

PostPosted: Sun Apr 12, 2020 4:20 am    Post subject: Reply with quote

What nvidia-drivers version? Is it nvidia-drivers-390.132-r2 (aka the one in ~unstable)? If so see bug #713546, temporary solution should be to either set USE=-libglvnd globally + update -U @world or have a look at the bug's attached patch, all it does is create a /etc/X11/xorg.conf.d configuration file that you could make yourself and preferably remove when no longer needed.
Edit: but I have no idea how well that may go with optimus, global -libglvnd may be a more favorable route on old drivers.
Back to top
View user's profile Send private message
mounty1
l33t
l33t


Joined: 06 Jul 2006
Posts: 816
Location: Queensland

PostPosted: Sun Apr 12, 2020 8:07 am    Post subject: Reply with quote

Thank you; that fixed it for me.

Also, I think that having nvidia-drivers built with libglvnd causes app-eselect/eselect-opengl not to be built and it had reverted to xorg-x11. After building nvidia-drivers with -libglvnd, eselect-opengl was built and I could select nvidia again.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
Ionen
l33t
l33t


Joined: 06 Dec 2018
Posts: 697

PostPosted: Sun Apr 12, 2020 8:34 am    Post subject: Reply with quote

The point of libglvnd is that it makes eselect-opengl obsolete by automatically choosing the right vendor for a screen/output, so lacking it is normal. And you can still manually pick the vendor with environment variables if need be (even has per-screen env vars)

However older nvidia drivers / ebuild have poor support, so I can't really recommend it on those right now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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