LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2017, 03:26 AM   #1
geni4u
LQ Newbie
 
Registered: May 2017
Posts: 9

Rep: Reputation: Disabled
nvidia-switch issue


Hello,

I installed nvidia-driver & nvidia-kernal from SBo. Everything seemed to work fine, but after rebooting, /usr/lib64/libGL* soft links get restored to point to xorg version files. After each reboot, I have to run nvidia-switch --install to relink those files to the nvidia version. This is very annoying and I have no idea at what point these files get overwritten.

For example, this is right after running nvidia-switch --install:
Code:
/usr/lib64/libGL.so -> libGL.so.1*
/usr/lib64/libGL.so.1 -> libGL.so.1.0.0*
/usr/lib64/libGL.so.1.0.0*
/usr/lib64/libGL.so.1.2.0-xorg*
libGL.so.1.0.0 is the nvidia version and libGL.so.1.2.0-xorg is the original xorg version. libGL.so is linked to libGL.so.1, which is again linked to libGL.so.1.0.0 (nvidia).

After rebooting:
Code:
/usr/lib64/libGL.so -> libGL.so.1*
/usr/lib64/libGL.so.1 -> libGL.so.1.2.0-xorg*
/usr/lib64/libGL.so.1.0.0*
/usr/lib64/libGL.so.1.2.0-xorg*
libGL.so is still linked to libGL.so.1, but libGL.so.1 is now linked to libGL.so.1.2.0-xorg (xorg version).

Since other files are still there with the same name, I guess it's not running nvidia-switch --remove. I'm not sure how libGL.so.1 gets overwritten by what script. This file is an example and other nvidia-related lib files have the same issue.

My only guess is that some program restores those soft links based on /etc/ld.so.cache, which probably (?) remembers which files they were pointing to. But the xorg version of those files have been renamed by the nvidia-driver package. Any smart program uses file hash to restore these links?

Does anyone have this issue or any idea?

Thanks.
 
Old 05-19-2017, 03:38 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,837

Rep: Reputation: Disabled
hi geni4u, welcome to LQ.

I think you are using an old version of the nvidia-driver.SlackBuild script from SBo: that issue has been fixed by Edward some time ago.
try the latest one available, it shouldn't behave like that.

Last edited by ponce; 05-19-2017 at 04:09 AM.
 
1 members found this post helpful.
Old 05-19-2017, 04:18 AM   #3
geni4u
LQ Newbie
 
Registered: May 2017
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
hi geni4u, welcome to LQ.

I think you are using an old version of the nvidia-driver.SlackBuild script from SBo: that issue has been fixed by Edward some time ago.
try the latest one available, it shouldn't behave like that.
Ah! The new version fixed it. I believe it was /sbin/ldconfig in /etc/rc.d/rc.M that reverted those symlinks. Anyway, my problem is fixed. Thank you!
 
Old 05-19-2017, 06:48 PM   #4
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 900
Blog Entries: 9

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Thanks, ponce. And yes, I know there is a new Nvidia driver out ;-)

geni4u, for some reason, ldconfig got confused after an update this year and decided that libGL.so.1.2.0-xorg was a "newer version" and would relink everyting. This applied to all the *-xorg placeholders. After working ok for years, this was quite the head scratcher.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Forgot to use nvidia-switch --remove before removing Slackbuilds.org nvidia-driver package Strela9K Slackware 6 12-13-2016 04:29 PM
How do I switch to Nvidia driver? JosephS Debian 4 03-20-2011 09:18 PM
How should I use nvidia-switch before re-building kernel? glore2002 Slackware 2 08-03-2008 07:41 PM
Switch to nVidia? Agizor Linux - Hardware 9 12-16-2004 05:16 PM
Switch from ATI to NVidia El Basto SUSE / openSUSE 2 11-14-2004 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration