LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-09-2018, 12:18 PM   #1
narke
Member
 
Registered: Apr 2010
Posts: 197

Rep: Reputation: 5
Question nvidia properitary driver not work


For I noticed that my 14.2 box was actually using the integrated GPU of its i7-7700H CPU, I then decided to bring the discrete GPU (Nvidia GTX 1050) to work. But this had no success.

My steps are as following:
- Disabled the nouveau driver by putting it in the blacklist of modprove configuration file;
- install from slackbuilds.org the nvidia-kernel and nvidia-driver, versions are 390.95

After these, I noticed some new kernel modules were loaded automatically: nvidia, nvidia_drm, nvidia_modeset. I can also 'startx', but a lot of X applications cannot start including glxgears and glxinfo, they reported errors:
Xlib: extension "GLX" missing on display ":0".
In this situation, my 'lspci -k' had outputs of:
Quote:
...
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
Subsystem: ASUSTeK Computer Inc. Device 1b90
Kernel driver in use: i915
Kernel modules: i915
...
01:00.0 3D controller: NVIDIA Corporation Device 1c8d (rev a1)
Subsystem: ASUSTeK Computer Inc. Device 1b90
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
And, my Xorg.0.log was attached as A-Xorg.0.log (too large to paste).

After some googling, I then added a section to my xorg.conf:
Code:
Section "Device"
	Identifier  "Card0"
	Driver      "nvidia"
	BusID       "PCI:1:0:0"
EndSection
But after this change, I even cannot 'startx', and the Xorg.0.log was attached as B-Xorg.0.log.

Can someone know this kind of issue? How can I bring my nvidia GTX 1050 to work? I know there is a default nouveau, but it cannot work with the slackware current kernel of 4.14.47 and has to be disabled by adding modeset=0 in the kernel command. For this reason I had uninstalled the package of nouveau.

Thanks in advance.
-woody
Attached Files
File Type: log A-Xorg.0.log (34.9 KB, 27 views)
File Type: log B-Xorg.0.log (24.0 KB, 16 views)
 
Old 06-09-2018, 12:32 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,099

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
Perhaps SBo uses a different numbering system, but the latest long term driver (non-beta) for your card, from Nvidia, is version 390.67.

https://www.geforce.com/drivers/results/134859
 
Old 06-09-2018, 01:45 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,226

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
This is my /etc/X11/xorg.conf.d/10-local.conf:

Code:
Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    # Option         "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
EndSection
 
Old 06-09-2018, 02:09 PM   #4
mickski56
Member
 
Registered: Mar 2018
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
check the output of ls -l /usr/lib64/libGL*

for broken links, sounds a bit like nvidia switch has failed for some reason

hth

Just had a closer look a your b log, it looks like it should be working. So probably all is good with the nvidia installation.

Is this an optimus laptop ?

Last edited by mickski56; 06-09-2018 at 02:24 PM.
 
Old 06-09-2018, 02:28 PM   #5
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
It bothers me a little that your lspci -k still lists nouveau even though it states nvidia is in use.

I have a GTX 1070 Ti (driver installed by nvidia-foo.run not a slack package) and mine looks like this

Code:
lspci -k (abridged)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1b82 (rev a1)
        Subsystem: eVga.com. Corp. Device 5671
        Kernel driver in use: nvidia
        Kernel modules: nvidiafb, nvidia_drm, nvidia
It further bothers me that both of your Xorg.0.log files have no serious |W|arnings indicating failure. The only error you mention is with nouveau citing GLX errors.

I suggest you move /etc/X11/xorg.conf to /etc/X11/xorg.conf.foo from runlevel 3 and run "nvidia-xconfig". If you like view the new xorg.conf and compare it to the previous if there are items in the current one you wish to keep and simply reconcile the two. Possibly you have a monitor issue such as EDID issues but that usually shows up in Xorg.0.log. The only EDID problems I have ever had are HUGE fonts on one monitor requiring a "UseEDIDDpi = false" line but the nvidia documentation covers all such situations and informs one of required entries to fix such problems.

As an aside is your system 32bit, 64bit or Multilib?

EDIT - Hmmm Optimus. Dugan might be on to something there. They have "issues" like requiring Bumblebee.

Last edited by enorbet; 06-09-2018 at 07:37 PM.
 
Old 06-09-2018, 05:28 PM   #6
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
you need to uninstall the driver. then reinstall mesa. then install driver.
remember when mesa is upgraded you should uninstall the driver.
no Idea why your are using the 390.95
and if the first time you need to run the nvidia-xconfig
my slackbuild and package for keeping your nvidia up to date.

https://github.com/Drakeo/update-nvidia-mkinitrd

it will build the driver for your new kernel upgrade before rebooting.
think sbo has some switch thing.

latest stable https://download.nvidia.com/XFree86/..._64-390.67.run
if SBO has something different oh well i do it the Slackware way.

https://download.nvidia.com/XFree86/..._64/latest.txt

Last edited by Drakeo; 06-09-2018 at 05:32 PM.
 
Old 06-09-2018, 08:31 PM   #7
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by cwizardone View Post
Perhaps SBo uses a different numbering system, but the latest long term driver (non-beta) for your card, from Nvidia, is version 390.67.

https://www.geforce.com/drivers/results/134859
I think SlackBuilds will not always catch up the newest release of nvidia, it's understandable.
 
Old 06-09-2018, 08:39 PM   #8
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by mickski56 View Post
check the output of ls -l /usr/lib64/libGL*

for broken links, sounds a bit like nvidia switch has failed for some reason

hth

Just had a closer look a your b log, it looks like it should be working. So probably all is good with the nvidia installation.

Is this an optimus laptop ?
Hi, the output is:

Quote:
root@sixone:~# ls -l /usr/lib64/libGL*
-rw-r--r-- 1 root root 652 Jun 9 15:58 /usr/lib64/libGL.la
lrwxrwxrwx 1 root root 14 Jun 10 09:37 /usr/lib64/libGL.so -> libGL.so.1.7.0*
lrwxrwxrwx 1 root root 14 Jun 10 09:37 /usr/lib64/libGL.so.1 -> libGL.so.1.7.0*
-rwxr-xr-x 1 root root 665720 Jun 9 15:57 /usr/lib64/libGL.so.1.7.0*
-rwxr-xr-x 1 root root 1005 May 10 2016 /usr/lib64/libGLESv1_CM.la*
lrwxrwxrwx 1 root root 28 Jun 10 09:37 /usr/lib64/libGLESv1_CM.so -> libGLESv1_CM.so.1.2.0-nvidia*
lrwxrwxrwx 1 root root 28 Jun 10 09:37 /usr/lib64/libGLESv1_CM.so.1 -> libGLESv1_CM.so.1.2.0-nvidia*
lrwxrwxrwx 1 root root 28 Jun 10 09:37 /usr/lib64/libGLESv1_CM.so.1.2.0 -> libGLESv1_CM.so.1.2.0-nvidia*
-rwxr-xr-x 1 root root 43696 Jun 9 15:57 /usr/lib64/libGLESv1_CM.so.1.2.0-nvidia*
lrwxrwxrwx 1 root root 29 Jun 9 22:03 /usr/lib64/libGLESv1_CM_nvidia.so.1 -> libGLESv1_CM_nvidia.so.390.59*
-rwxr-xr-x 1 root root 60200 Jun 9 15:57 /usr/lib64/libGLESv1_CM_nvidia.so.390.59*
-rwxr-xr-x 1 root root 987 May 10 2016 /usr/lib64/libGLESv2.la*
lrwxrwxrwx 1 root root 25 Jun 10 09:37 /usr/lib64/libGLESv2.so -> libGLESv2.so.2.1.0-nvidia*
lrwxrwxrwx 1 root root 25 Jun 10 09:37 /usr/lib64/libGLESv2.so.2 -> libGLESv2.so.2.1.0-nvidia*
lrwxrwxrwx 1 root root 25 Jun 10 09:37 /usr/lib64/libGLESv2.so.2.1.0 -> libGLESv2.so.2.1.0-nvidia*
-rwxr-xr-x 1 root root 83280 Jun 9 15:57 /usr/lib64/libGLESv2.so.2.1.0-nvidia*
lrwxrwxrwx 1 root root 26 Jun 9 22:03 /usr/lib64/libGLESv2_nvidia.so.2 -> libGLESv2_nvidia.so.390.59*
-rwxr-xr-x 1 root root 111400 Jun 9 15:57 /usr/lib64/libGLESv2_nvidia.so.390.59*
lrwxrwxrwx 1 root root 17 Jun 1 00:04 /usr/lib64/libGLEW.so -> libGLEW.so.1.13.0*
lrwxrwxrwx 1 root root 17 Jun 1 00:04 /usr/lib64/libGLEW.so.1.13 -> libGLEW.so.1.13.0*
-rwxr-xr-x 1 root root 509520 Nov 24 2015 /usr/lib64/libGLEW.so.1.13.0*
lrwxrwxrwx 1 root root 19 Jun 1 00:04 /usr/lib64/libGLEWmx.so -> libGLEWmx.so.1.13.0*
lrwxrwxrwx 1 root root 19 Jun 1 00:04 /usr/lib64/libGLEWmx.so.1.13 -> libGLEWmx.so.1.13.0*
-rwxr-xr-x 1 root root 448488 Nov 24 2015 /usr/lib64/libGLEWmx.so.1.13.0*
-rwxr-xr-x 1 root root 1254 Feb 21 2013 /usr/lib64/libGLU.la*
lrwxrwxrwx 1 root root 15 Jun 1 00:04 /usr/lib64/libGLU.so -> libGLU.so.1.3.1*
lrwxrwxrwx 1 root root 15 Jun 1 00:04 /usr/lib64/libGLU.so.1 -> libGLU.so.1.3.1*
-rwxr-xr-x 1 root root 516416 Feb 21 2013 /usr/lib64/libGLU.so.1.3.1*
lrwxrwxrwx 1 root root 11 Jun 9 22:03 /usr/lib64/libGLX.so -> libGLX.so.0*
-rwxr-xr-x 1 root root 65168 Jun 9 15:57 /usr/lib64/libGLX.so.0*
lrwxrwxrwx 1 root root 23 Jun 9 22:03 /usr/lib64/libGLX_indirect.so.0 -> libGLX_nvidia.so.390.59*
lrwxrwxrwx 1 root root 23 Jun 9 22:03 /usr/lib64/libGLX_nvidia.so.0 -> libGLX_nvidia.so.390.59*
-rwxr-xr-x 1 root root 1268112 Jun 9 15:57 /usr/lib64/libGLX_nvidia.so.390.59*
-rwxr-xr-x 1 root root 711864 Jun 9 15:57 /usr/lib64/libGLdispatch.so.0*
 
Old 06-09-2018, 10:06 PM   #9
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by enorbet View Post
As an aside is your system 32bit, 64bit or Multilib?
It's 64bit system.
 
Old 06-10-2018, 12:47 AM   #10
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
I removed what I just installed nvidia-kernel*-SBo and nvidia-driver-*SBo and then reinstalled all the packages found in x/ directory of Slackware 14.2 DVD. Then my system went back to normal and I can run glxgears. Then I clearly installed the latest nvidia driver (390.67) got from the official site. But the result is still similar, it seemed nvidia's GLX library not working on Slack 14.2 with at least my GTX 1050 gpu.

lspic outputs:
Quote:
00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 3D controller: NVIDIA Corporation Device 1c8d (rev a1)
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
And, the Xorg.0.log is at: https://pastebin.com/TXzUUSE8

And, the output of glxgears is:
Quote:
~ $ glxgears
Xlib: extension "GLX" missing on display ":0".
Error: couldn't get an RGB, Double-buffered visual
-woody

Last edited by narke; 06-10-2018 at 12:48 AM.
 
Old 06-10-2018, 05:14 AM   #11
dTd
Member
 
Registered: Feb 2007
Location: CT, USA
Distribution: Slackware
Posts: 99

Rep: Reputation: 11
I always have to blacklist nouveau on my box for the nvidia blob to work, in extra there's a nouveau blacklist package.
 
Old 06-10-2018, 07:01 AM   #12
narke
Member
 
Registered: Apr 2010
Posts: 197

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by dTd View Post
I always have to blacklist nouveau on my box for the nvidia blob to work, in extra there's a nouveau blacklist package.
Code:
~ $ cat /etc/modprobe.d/00.conf
blacklist i2c_hid
blacklist nouveau
blacklist hid_lenovo
blacklist hid_cherry
blacklist hid_microsoft
I also blocked the nouveau kernel module in another try, but the problem was still the same.

Last edited by narke; 06-10-2018 at 07:04 AM.
 
Old 06-10-2018, 08:13 AM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
No problems here with the GTX 1050Ti and the NVidia .run file. Uninstall NVidia, delete the nouveau entry from /etc/modprobe.d/00.conf, install the blacklist package as dTd suggested (xf86-video-nouveau-blacklist-noarch-1.txz, from /extra on any Slackware mirror), reboot to runlevel 3, then run the NVidia .run file.
 
2 members found this post helpful.
Old 06-10-2018, 09:15 AM   #14
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,099

Rep: Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276Reputation: 7276
Quote:
Originally Posted by narke View Post
I think SlackBuilds will not always catch up the newest release of nvidia, it's understandable.
Quote:
Originally Posted by narke View Post
......- install from slackbuilds.org the nvidia-kernel and nvidia-driver, versions are 390.95.......
As I said, the most recent non-beta long term driver from Nvidia is 390.67.

Last edited by cwizardone; 06-10-2018 at 09:16 AM.
 
Old 06-10-2018, 12:56 PM   #15
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
Quote:
Originally Posted by narke View Post
I removed what I just installed nvidia-kernel*-SBo and nvidia-driver-*SBo and then reinstalled all the packages found in x/ directory of Slackware 14.2 DVD. Then my system went back to normal and I can run glxgears. Then I clearly installed the latest nvidia driver (390.67) got from the official site. But the result is still similar, it seemed nvidia's GLX library not working on Slack 14.2 with at least my GTX 1050 gpu.

lspic outputs:
Code:
 00:02.0 VGA compatible controller: Intel Corporation Device 591b (rev 04)
01:00.0 3D controller: NVIDIA Corporation Device 1c8d (rev a1)
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
Again, nouveau shouldn't still show up there if it is properly blacklisted. Additionally you really need to determine if your system is Optimus.

Like you I am very grateful for SlackBuilds but for something as fundamental and proprietary as the nvidia graphics driver I think you should try the stock 14.2 kernel or even one from current complete with headers or, better, a complete "/usr/src/linux" directory and use the nvidia-foo.run installation from runlevel 3 just to see how that fares. It might even be wise to answer "yes" to the "install 32 bit compatible files?" popup question just to be thorough... that is, and this is a big "IF", if your system is NOT Optimus. For that you must have Bumblebee installed or possibly some specific workaround which apparently is only possible on some specific laptops.
 
  


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
Does the new nVidia driver actually work for anyone? YodaCows Linux - Hardware 2 04-14-2006 05:43 PM
X doesnt work with NVIDIA driver??? justinchristensen Slackware 4 12-18-2005 08:27 PM
NVIDIA driver via Suse?? Does this work?? little_penguin SUSE / openSUSE 9 08-28-2005 08:15 PM
Still not getting nvidia driver to work.. GardarS Linux - Hardware 14 06-27-2005 04:41 AM

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

All times are GMT -5. The time now is 09:40 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