LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-23-2018, 10:01 PM   #1
tempo-namee
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 31

Rep: Reputation: Disabled
[14.2] Only certain programs broke after nVIDIA proprietary driver switch


Hi, I recently switched to the nVIDIA proprietary drivers in hopes that it would improve my machine's gaming performance. I followed the instructions in the Slackware docs, booted into my DE, and all that jazz.

Now some specific programs that deal with video processing will not work. For example, games installed will not run at all. The emulators I use (PCSX2, Dolphin, etc) will all start but crash or give an error when they load games. Mplayer will attempt to play a video but no video rendering screen appears, only audio plays. Etc. VLC seems to work fine for no particular reason.

Not sure what to do from here.
 
Old 02-24-2018, 12:15 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by tempo-namee View Post
...but crash or give an error when they load games.

Not sure what to do from here.
The error might give us a good idea on what's going on. Have you also checked the output of dmesg and your /var/log/Xorg.0.log?

It'd also be beneficial to let us know what card, driver version, source of driver (run the binary, using SlackBuild, etc). Also, are you 32bit or 64bit, and if it is the latter, did you build the multilib driver?
 
Old 02-24-2018, 01:57 AM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
In my decades of experience with nVidia and the proprietary drivers I have never experienced anything but improvement, sometimes massive improvement, unless the driver did not match the graphics card. Below is a link to the Search Drivers page for GeForce models. If yours isn't a GeForce model use the "All drivers" page instead but verify that you have the proper match between model and driver

--- NVIDIA GeForce Driver Search ---

Then perhaps report on the nvidia-installer.log and/or /var/log/Xorg.0.log and/or $HOME/.xsession-errors. More data==Better
 
1 members found this post helpful.
Old 02-24-2018, 04:55 PM   #4
RadicalDreamer
Senior Member
 
Registered: Jul 2016
Location: USA
Distribution: Slackware64-Current
Posts: 1,816

Rep: Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981Reputation: 981
What is the graphics card?
 
Old 02-24-2018, 08:55 PM   #5
tempo-namee
Member
 
Registered: Sep 2017
Distribution: Slackware
Posts: 31

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by RadicalDreamer View Post
What is the graphics card?
Quote:
Originally Posted by bassmadrigal View Post
The error might give us a good idea on what's going on. Have you also checked the output of dmesg and your /var/log/Xorg.0.log?

It'd also be beneficial to let us know what card, driver version, source of driver (run the binary, using SlackBuild, etc). Also, are you 32bit or 64bit, and if it is the latter, did you build the multilib driver?
Sorry for not listing the specs! I am using 64 bit, Slackware version 14.2, kernel 4.4.115. I do not have multilib on here.

My card is a GeForce GTX 650 Ti. I have driver version 384.90 installed from the SBo repos, following the guide on Slackware Docs (installing nvidia-driver, nvidia-kernel, and libvdpau).

I do not have any error messages in dmesg. /var/log/Xorg.0.log says

Code:
[    60.248] (II) NVIDIA GLX Module  384.90  Tue Sep 19 17:00:25 PDT 2017
so I assume that the correct driver was loaded. But I do not know how to interpret the rest of this log, though there are some errors about various modules failing to load. I've put it in a pastebin here: https://pastebin.com/pC5dA9pr

Quote:
Originally Posted by enorbet View Post
In my decades of experience with nVidia and the proprietary drivers I have never experienced anything but improvement, sometimes massive improvement, unless the driver did not match the graphics card. Below is a link to the Search Drivers page for GeForce models. If yours isn't a GeForce model use the "All drivers" page instead but verify that you have the proper match between model and driver

--- NVIDIA GeForce Driver Search ---

Then perhaps report on the nvidia-installer.log and/or /var/log/Xorg.0.log and/or $HOME/.xsession-errors. More data==Better
My card is on the list, yeah. I don't seem to have an .xsession-errors file anywhere on here. Good idea on the nvidia-installer.log thing. There's an error here which says:

Code:
WARNING: You specified the '--no-kernel-module' command line option, nvidia-installer will not install a kernel module as part of this driver installation, and it will not remove existing NVIDIA kernel modules not part of an earlier NVIDIA driver installation.  Please ensure that an NVIDIA kernel module matching this driver version is installed seperately.
..which sounds suspicious because I installed nvidia-kernel from SBo. I've pasted the full log here also: https://pastebin.com/6MeePm1M
 
Old 02-24-2018, 09:45 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Well, based on your output in the Xorg log, it seems it isn't loading the nvidia driver properly. Instead, it is using an old open source nv driver, which was replaced years ago by nouveau.

Code:
[    60.257] (==) Matched nouveau as autoconfigured driver 0
[    60.257] (==) Matched nv as autoconfigured driver 1
[    60.257] (==) Matched nouveau as autoconfigured driver 2
[    60.257] (==) Matched nv as autoconfigured driver 3
[    60.257] (==) Matched modesetting as autoconfigured driver 4
[    60.257] (==) Matched fbdev as autoconfigured driver 5
[    60.257] (==) Matched vesa as autoconfigured driver 6
[    60.257] (==) Assigned the driver to the xf86ConfigLayout
[    60.257] (II) LoadModule: "nouveau"
[    60.294] (WW) Warning, couldn't open module nouveau
[    60.294] (II) UnloadModule: "nouveau"
[    60.295] (II) Unloading nouveau
[    60.295] (EE) Failed to load module "nouveau" (module does not exist, 0)
[    60.295] (II) LoadModule: "nv"
[    60.295] (II) Loading /usr/lib64/xorg/modules/drivers/nv_drv.so
[    60.306] (II) Module nv: vendor="X.Org Foundation"
[    60.306]    compiled for 1.18.0, module version = 2.1.20
[    60.306]    Module class: X.Org Video Driver
[    60.306]    ABI class: X.Org Video Driver, version 20.0
Basically, this is saying that your card is recognized to be supported by the nouveau and nv drivers, but it can't find the nouveau (likely because it is blacklisted, but possibly because it is removed), so it then moved on to the nv driver.

Quick guess is that the nvidia driver isn't installed properly, but I don't know much about that process (been years since I've had an Nvidia card). Hopefully enorbet or some other forum members can give some insight on why it isn't using the nvidia driver...
 
Old 02-24-2018, 10:12 PM   #7
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I guess you didn't add the line
Code:
blacklist nouveau
to /etc/modprobe.d/blacklist.conf prior to restarting.
 
Old 02-25-2018, 11:28 AM   #8
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Its not loading nouveau and my guess is he did not recompile either the kernel or mesa without nouveau. If he removed just xf86-video-nouveau it would of just fallen back to modesetting which is included with xorg-server now. So my guess is same as bassmadrigal's, nouveau is blacklisted and nvidia was not properly installed.
 
Old 02-25-2018, 02:11 PM   #9
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
From the Xorg log, the nvidia module is not loaded. It looks like nouveau is blacklisted (or missing, so check as above suggested. There is a package in /extra on the install DVD to blacklist nouveau as is required). Module nv gets loaded instead an that has limited functionality.

You MUST follow this sequence for nvidia from SBo (libvdpau is already included in 14.2 so you can ignore it):
  1. Install nvidia-kernel as full root (su -)
  2. Install nvidia-driver as full root (su -) - you can ignore the warning messages about the kernel
  3. remove or modify any xorg device conf in /etc/X11/xorg.conf.d
  4. REBOOT! DO IT NOW!
  5. Check dmesg and lsmod to make sure 'nvidia-*' modules are loaded
Note that nvidia-kernel installs a 10-nvidia.conf in /usr/share/X11/xorg.conf.d which is used only if /etc/X11/xorg.conf.d is empty. On some kernels, if nvidia-drm is not loaded soon enough, you will need to add in /etc/X11/xorg.conf.d this example from my system:
Code:
Section "Device"
    Identifier "Device0"
    Driver     "nvidia"
    VendorName "Nvidia Corporation"
    BoardName  "Geforce GTX 1060 6GB"
    Screen     0
    Option     "Coolbits" "4"
EndSection
Vendorname, BoardName, Screen, Option, are all optional.

Have fun.
 
Old 02-25-2018, 02:11 PM   #10
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
I can't comment more since I prefer using nvidia's installer from runlevel3. I very much appreciate Slackbuilds but I see no need to add an additional layer of variables on something as fundamental as graphics drivers.
 
2 members found this post helpful.
Old 02-25-2018, 02:23 PM   #11
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
enorbet,
The NVIDIA-*.run installs kernel modules and drivers "in-place". I used that method for years until I took over the SBo scripts. For some this is not the "Slackware way" as well as some of us need relocatable packages (build once, install many times), or if you need to add nvidia cleanly to something like liveslak.

It all depends on one's use case.
 
1 members found this post helpful.
Old 02-26-2018, 12:20 AM   #12
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
I understand, kingbeowulf, and have no problem whatsoever with those who chose otherwise. In fact I salute you and others who bother to provide such an important service. It's just not for me when regarding nvidia drivers or most things kernel related on a fundamental level. It works exceptionally well, takes only a few minutes and has done that for me since Slackware v9, iirc, or certainly by v10, was released.
 
2 members found this post helpful.
Old 02-26-2018, 09:13 AM   #13
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I've had issues with the symlinks to the GLX drivers when upgrading the nvidia package using the slackbuild. Go see what /usr/lib64/xorg/modules/extensions/libglx.so points to. If it doesn't point to /usr/lib64/xorg/modules/extensions/libglx.so.384.90 (or the one that matches what you've installed), then that's probably your issue.

Frankly, I've stopped using the slackbuild and the proprietary drivers due to
  1. this issue cropping up repeatedly and
  2. the realization that the open source drivers are good enough for my use cases.

My use cases aren't the OP's use cases, of course.
 
1 members found this post helpful.
Old 02-26-2018, 08:34 PM   #14
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,784

Rep: Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434Reputation: 4434
FWIW I have never experienced the issue described by Richard Cranium. I have always installed with nvidia's own .run file and that symlink as well as everything else installs without issue. Currently I'm using the 390.25 full release for my GTX 1070 Ti but before that even the beta version worked perfectly. although oddly the full release wouldn't complete the install, even though the beta did, on my old 3.14.12 kernel but compiling the stable 3.15.0 solved that.
 
Old 02-26-2018, 10:48 PM   #15
kingbeowulf
Senior Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware
Posts: 1,266
Blog Entries: 11

Rep: Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744Reputation: 744
Richard and enorbet:
Nvidia is a bit hostile to providing support for packagers with scant documentation of options. I can understand the symlink frustration (I fixed the libglx one ages ago). Its been an evolving process to keep up with them to get a package that can install and then uninstall cleanly. On every update I find another odd quirk that needs fixing. And don't even get me started on multilib - I'll lose what little hair I have left...

The NVIDIA-*.run works fine with Slackware, so for those who don't need relocatable packages, or don't want to put up with the occasional bug I introduce, it doesn't hurt my feelings for you not to use it. I do find my SBo version easier in one respect: When we have "small" kernel patches in 14.2, then all you need to do is re-run nvidia-kernel without trying to figure out what CLI options to use for their .run script to not (re)install the entire driver package.

As for the OP, his Xorg.0.log clearly shows that nvidia.ko is not installed or loaded. It doesn't matter which way you install, no kernel module means no nvidia driver.
 
  


Reply



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
Some games work with Nvidia proprietary driver some with nouveau driver. Why? kairen Slackware 14 10-14-2015 03:19 PM
[SOLVED] broke Xorg when trying to install proprietary AMD driver pedru Linux - Desktop 15 02-24-2014 05:27 AM
[SOLVED] Wine (1.4) Programs Crash/Freeze on Slackware64-current w/ Nvidia Proprietary Drivers TommyC7 Slackware 13 05-13-2012 10:31 AM
nvidia proprietary driver, nvidia-settings and how to configure panning bluebox Linux - Hardware 1 03-11-2011 03:21 PM
does the vesa console framebuffer driver conflict with the proprietary nvidia driver? mr.v. Linux - Hardware 2 01-28-2007 06:51 AM

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

All times are GMT -5. The time now is 03:07 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
Open Source Consulting | Domain Registration