LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   nvidia-switch issue (https://www.linuxquestions.org/questions/slackware-14/nvidia-switch-issue-4175606265/)

geni4u 05-19-2017 03:26 AM

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.

ponce 05-19-2017 03:38 AM

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.

geni4u 05-19-2017 04:18 AM

Quote:

Originally Posted by ponce (Post 5712703)
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!

kingbeowulf 05-19-2017 06:48 PM

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.


All times are GMT -5. The time now is 07:59 AM.