LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-04-2018, 03:52 PM   #1
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: Slackware x86_64 stable
Posts: 66

Rep: Reputation: 14
Unhappy nvidia-driver upgrades never work well for me?


Hello:

I'm using Slackware 64 stable, and whenever I try to upgrade my nvidia-driver SBo package, something seems to fail. Bug or me?.

This is what I do:

When there's a kernel upgrade, I know I have to recompile the nvidia-driver, so:

Code:
# nvidia-switch --remove
I'm back to Xog-server stock files. Now, I upgrade the kernel, make a new initrd, a new grub.cfg and reboot. Everything from outside of the xorg-server, of course.

Then, in the BIOS (EFI, to be more precise) I tell the mobo to start my system but displaying from the Internal Graphics Card (the one that comes with my Intel i3, Intel HD Graphics 4400).

The system starts flawlessly, but when I try to start the xorg-sever (from my unprivileged user account, of course) it starts to complain: "GL drivers can't display the selected resolution"... anyway, it starts the xorg-server. The xf86-video-nouveau-blacklist-noarch-1.txz is still installed, BTW (related?).

Hmmm... I exit the xorg-server again and upgrade nvidia-driver from sbopkg. Everything should go well because the previous nvidia-driver is switched-off. And it seems so. After reboot and changing the mobo to display from the nVidia card again, the xorg-server starts with no complains.

But then, when I look at what the nvidia-switch script has been doing...:

/var/log/nvidia/64/libGL.la is the nvidia version (!?).

The soft links:

/usr/lib64/libGLESv1_CM.so.1
/usr/lib64/libGLESv2.so.2

Both still link to the "xorg-server" versions of these files:

/usr/lib64/libGLESv1_CM.so.1.2.0
/usr/lib64/libGLESv2.so.2.1.0

Which should be harmless (because in turn, destination files are now links to the nvidia versions of these files, which ends up being correct) but seems strange to me, because the links should be created by the script.

And also:

/usr/lib64/xorg/modules/extensions/libglx.so has NOT been saved as xorg-libglx.so, but it is now a link to:

/usr/lib64/xorg/modules/extensions/xorg-libglx.so -> libglx.so.$NV_VERSION

...and at this point I'm very confused because the script is not doing what I supposed it should be doing, even thought I think I'm using it correctly (first un-switch, then upgrade).

It took me a HARD work to follow the script and check what had it be doing, but as this always happens to me when I try to upgrade the nvidia-driver, I thought I'd report, it's a bug and I'm helping or there's something I don't know yet about dealing with this package... help!.


Dear nvidia-driver SlackBuild maintainer:

Check the info about this package in the SlackBuilds website; the first affected file should read:

/usr/lib[64]/libGL.so.1.2.0 (not just libGL.so.1.2)

Thanks for reading me.
 
Old 09-05-2018, 03:23 AM   #2
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 886
Blog Entries: 9

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
On a kernel update, if you are NOT upgrading the nvidia-driver to a new version, you ONLY need to re-run the nvidia-kernel.SlackBuild buildscript. nvidia-driver does NOT care what kernel you run. We separated nvidia drivers into 2 parts for this very reason.

To upgrade/install nvidia-driver, DO NOT USE sbopkg. This will not work. Now that you scrambled Mesa and xorg-server by not RTFM, you must
  1. remove all traces or nvidia-driver,kernel
  2. remove all left over nvidia libraries and symlinks, broken symlinks
  3. reinstall Mesa
  4. reinstall xorg-server
  5. reboot
You are now factory fresh. Then install nvidia-{driver,kernel} per the README. Next kernel update, ONLY re-run nvidia-kernel to create a new kernel module. To upgrade nvidia:
Code:
# nvidia-switch --remove
# removepkg nvidia-driver
# removepkg nvidia-kernel
# reboot
Now, install nvidia-{driver,kernel} per the README. reboot!

Never, ever, use any automated installation tools: sbopkg, slackpkg, etc. NEVER use any other GPU if nvidia is installed - not supported. nvidia-switch DOES NOT remove the kernel module, only restores the original mesa and xorg libs.

STATUS: Closed
REASON: Not a bug; won't fix.
 
2 members found this post helpful.
Old 09-05-2018, 01:04 PM   #3
PreguntoYo
Member
 
Registered: Jan 2012
Distribution: Slackware x86_64 stable
Posts: 66

Original Poster
Rep: Reputation: 14
Don't tell me to RTFM

Quote:
Originally Posted by kingbeowulf View Post
.
.
.
To upgrade/install nvidia-driver, DO NOT USE sbopkg. This will not work.
.
.
.
To upgrade nvidia:
Code:
# nvidia-switch --remove
# removepkg nvidia-driver
# removepkg nvidia-kernel
# reboot
Now, install nvidia-{driver,kernel} per the README. reboot!

Never, ever, use any automated installation tools: sbopkg, slackpkg, etc.
If I had knew that I had to UNINSTALL the nvidia-driver before upgrading it, I would'nt have to repair the thing now.

Lucky of me that I investigated your SlackBuild and its effects, because as I say in my starting post, they may go unnoticed. Lucky of me and of everyone who is reading.

Leaving things clear in the instructions cost you less time (and less reading) than it cost to me installing, investigating, reporting exactly, being told to "RTFM" and now having to repair things.

Don't fix it if you don't want to. Now I already know. For myself.
 
Old 09-05-2018, 01:48 PM   #4
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 886
Blog Entries: 9

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Had you performed a search on LQ you would have found that this was discussed numerous times. And as I said above and elsewhere, you do not need to mess with nvidia-switch or nvidia-driver just to upgrade the kernel. Just run nvidia-kernel to create the new kernel interface module and install that resulting package.
 
  


Reply

Tags
nvidia, nvidia driver, nvidia drivers


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] nvidia properitary driver not work narke Slackware 70 07-04-2018 02:11 PM
Some games work with Nvidia proprietary driver some with nouveau driver. Why? kairen Slackware 14 10-14-2015 03:19 PM
Does the new nVidia driver actually work for anyone? YodaCows Linux - Hardware 2 04-14-2006 05:43 PM
Still not getting nvidia driver to work.. GardarS Linux - Hardware 14 06-27-2005 04:41 AM
nvidia driver doesn't work valueduser Mandriva 21 10-30-2003 09:59 AM

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

All times are GMT -5. The time now is 09:46 PM.

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