LinuxQuestions.org
Review your favorite Linux distribution.
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 08-19-2017, 02:16 PM   #1
jdog
LQ Newbie
 
Registered: Aug 2017
Location: Houston
Distribution: slackware
Posts: 6

Rep: Reputation: Disabled
Unhappy After upgrading to xorg-server-1.18.3 on Slackware 64 stable 14.2, X crashes.


After upgrading to xorg-server-1.18.3 on Slackware 64 stable 14.2, X crashes.

I'm a newbie so please bear with me and pardon my ignorance.

Before I executed "slackpkg upgrade-all" everything worked fine. The only packages that upgraded were the xorg-server packages. Then after upgrading and rebooting X crashes and sends me back to the command line.

I tried deleting .Xauthority file in my home directory but that didn't resolve my issue.

I'm using Slackware 64 14.2 stable Linux kernel 4.4.75 and Nvidia package and driver nvidia-driver-375.66 and nvidia-kernel-375.66_4.4.75-x86_64-1.

The packages I upgraded are:
xorg-server-1.18.3-x86_64-3_slack14.2.txz
xorg-server-xephyr-1.18.3-x86_64-3_slack14.2.txz
xorg-server-xnest-1.18.3-x86_64-3_slack14.2.txz
xorg-server-xvfb-1.18.3-x86_64-3_slack14.2.txz

Does anyone have any advice or suggestions? Please help, anything would be greatly appreciated.
 
Old 08-19-2017, 02:44 PM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
You need to re-install nvidia.
 
3 members found this post helpful.
Old 08-19-2017, 02:49 PM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by jdog View Post
I'm using Slackware 64 14.2 stable Linux kernel 4.4.75 and Nvidia package and driver nvidia-driver-375.66 and nvidia-kernel-375.66_4.4.75-x86_64-1.
I guess that you need to rebuild and reinstall the package for the Nvidia driver after an upgrade of xorg-server.
 
1 members found this post helpful.
Old 08-19-2017, 07:55 PM   #4
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
nvidia-driver-375.66 and xorg-server share /usr/lib64/xorg/modules/extensions/libglx.* so installing xorg-server wipes out the nvidia versions

I have no idea why so many seem to forget that given the hoops I jump through to remind everyone in the README. To get back to normal:

nvidia-switch --remove
removepkg nvidia-driver
upgradepkg --reinstall xorg-server-1.18.3-x86_64-3_slack14.2.txz
installpkg nvidia-driver

That should put all the bits back in the right place.

REMEMBER: Nvidia shares libraries with Mesa and Xorg-server. ALWAYS remove nvidia-driver before upgrading Mesa and/or Xorg-server!

Edit: As pointed out below, I forgot "upgradepkg --reinstall mesa" ...So much for my proofreadin skills..

Last edited by kingbeowulf; 08-27-2017 at 10:31 PM. Reason: forgot about Mesa (see below)
 
4 members found this post helpful.
Old 08-22-2017, 07:24 PM   #5
jdog
LQ Newbie
 
Registered: Aug 2017
Location: Houston
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for your help and time. I tried everything you guys stated and a few other things, but I still can't get X to work.

If it helps, attached is my Xorg.0.log file.
Attached Files
File Type: log Xorg.0.log (8.0 KB, 22 views)
 
Old 08-22-2017, 07:35 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
This is trying to load the nouveau driver, which, if you've installed the nvidia driver, should be blacklisted.

What I would do is make sure you've reinstalled the latest version of xorg-server. Then, either run the nvidia driver setup or use kingbeowulf's SlackBuild and install the resulting driver. Then, blacklist nouveau and reboot.
 
1 members found this post helpful.
Old 08-22-2017, 08:13 PM   #7
jdog
LQ Newbie
 
Registered: Aug 2017
Location: Houston
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks bassmadrigal. I do have xf86-video-nouveau blacklisted in /etc/slackpkg/blacklist. I've tried reinstalling the latest xorg-server (which is xorg-server-1.18.3-x86_64-3_slack14.2.txz for Slackware 64 14.2 stable) several times, I've also followed kingbeowulf's advice of:

nvidia-switch --remove
removepkg nvidia-driver
upgradepkg --reinstall xorg-server-1.18.3-x86_64-3_slack14.2.txz
COMPAT32="yes" ./nvidia-driver.SlackBuild
installpkg /tmp/nvidia-driver-375.66_multi-x86_64-1_SBo.tgz

but this didn't fix my problem. I've also tried upgrading reinstalling other xorg-server packages in the following manner:

nvidia-switch --remove
removepkg nvidia-driver
upgradepkg --reinstall xorg-server-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xephyr-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xnest-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xvfb-1.18.3-x86_64-3_slack14.2.txz
COMPAT32="yes" ./nvidia-driver.SlackBuild
installpkg /tmp/nvidia-driver-375.66_multi-x86_64-1_SBo.tgz

and this didn't work. Any other ideas? Also, I didn't know kingbeowulf wrote the slackbuild for the nvidia driver. Thanks for your contribution man!
 
Old 08-22-2017, 10:34 PM   #8
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 jdog View Post
Thanks bassmadrigal. I do have xf86-video-nouveau blacklisted in /etc/slackpkg/blacklist.
This prevents slackpkg from seeing any updated packages that Pat puts out, but doesn't prevent it from loading. You need to actually blacklist the module. You do that under /etc/modprobe.d/ and create a file that ends in .conf (maybe nouveau.conf) and have blacklist nouveau in it. You can also install a package in the extra/ folder on your install media that will do the same thing (I don't remember the name).
 
1 members found this post helpful.
Old 08-23-2017, 04:05 AM   #9
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by bassmadrigal View Post
You can also install a package in the extra/ folder on your install media that will do the same thing (I don't remember the name).
xf86-video-nouveau-blacklist-noversion-noarch-1
 
2 members found this post helpful.
Old 08-23-2017, 06:45 AM   #10
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by jdog View Post
Thanks bassmadrigal. I do have xf86-video-nouveau blacklisted in /etc/slackpkg/blacklist. I've tried reinstalling the latest xorg-server (which is xorg-server-1.18.3-x86_64-3_slack14.2.txz for Slackware 64 14.2 stable) several times, I've also followed kingbeowulf's advice of:

nvidia-switch --remove
removepkg nvidia-driver
upgradepkg --reinstall xorg-server-1.18.3-x86_64-3_slack14.2.txz
COMPAT32="yes" ./nvidia-driver.SlackBuild
installpkg /tmp/nvidia-driver-375.66_multi-x86_64-1_SBo.tgz

but this didn't fix my problem. I've also tried upgrading reinstalling other xorg-server packages in the following manner:

nvidia-switch --remove
removepkg nvidia-driver
upgradepkg --reinstall xorg-server-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xephyr-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xnest-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xvfb-1.18.3-x86_64-3_slack14.2.txz
COMPAT32="yes" ./nvidia-driver.SlackBuild
installpkg /tmp/nvidia-driver-375.66_multi-x86_64-1_SBo.tgz

and this didn't work. Any other ideas? Also, I didn't know kingbeowulf wrote the slackbuild for the nvidia driver. Thanks for your contribution man!
Re-installing xorg-server is not enough. You also need to re-install the mesa package.
 
2 members found this post helpful.
Old 08-23-2017, 09:20 PM   #11
jdog
LQ Newbie
 
Registered: Aug 2017
Location: Houston
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for the tip Alien Bob and for your enormous contributions to Slackware. I'm still having problems. Diantre and bassmadrigal thanks for noticing that X is trying to install nouveau, I don't know why it's doing that since I already have xf86-video-nouveau-blacklist-noversion-noarch-1 installed and xf86-video-nouveau blacklisted.

This time I reinstalled mesa after xorg-server in the following steps:

nvidia-switch --remove
removepkg nvidia-driver
upgradepkg --reinstall xorg-server-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xephyr-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xnest-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall xorg-server-xvfb-1.18.3-x86_64-3_slack14.2.txz
upgradepkg --reinstall mesa-11.2.2-x86_64-1.txz
COMPAT32="yes" ./nvidia-driver.SlackBuild
installpkg /tmp/nvidia-driver-375.66_multi-x86_64-1_SBo.tgz

and it still isn't working. I am stumped. The only thing I can think of is to backup my files and reinstall the OS, and I will also have to do that for my laptop and my old desktop. Please help. Attached are the errors I got when running startx and my Xorg.0.log file.
Attached Files
File Type: txt errors.txt (1.3 KB, 23 views)
File Type: log Xorg.0.log (8.0 KB, 21 views)
 
Old 08-23-2017, 11:29 PM   #12
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,753

Rep: Reputation: Disabled
Code:
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

[   324.953] (EE) Screen 0 deleted because of no matching config section.

[   324.953] (EE) Device(s) detected, but none match those in the config file.
Seems misconfigured, post contents of:

/etc/X11/xorg.conf.d/*-device.conf
/etc/X11/xorg.conf.d/*-screen.conf

And /etc/X11/xorg.conf also, if you have one.
The nvidia-settings tool can generate a xorg.conf, you just have to save it in /etc/X11/ and make sure /etc/X11/xorg.conf.d/ is clear.
 
1 members found this post helpful.
Old 08-24-2017, 10:55 AM   #13
jdog
LQ Newbie
 
Registered: Aug 2017
Location: Houston
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
elcore,

I looked for .conf files in /etc/X11/ and in /etc/X11/xorg.conf.d/ but I didn't find any. I also tried running xorgsetup, xorgconfig, and nvidia-settings to generate a xorg.conf file but the xorg.conf file it generated doesn't work, and nvidia-settings gives me "control display is undefined" error.

On another note, I check my other (properly working Slackware with nvidia driver) PC for xorg.conf files in /etc/X11 and /etc/X11/xorg.conf.d/ and there are no xorg.conf files there.
 
Old 08-24-2017, 01:13 PM   #14
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by jdog View Post
elcore,

I looked for .conf files in /etc/X11/ and in /etc/X11/xorg.conf.d/ but I didn't find any. I also tried running xorgsetup, xorgconfig, and nvidia-settings to generate a xorg.conf file but the xorg.conf file it generated doesn't work, and nvidia-settings gives me "control display is undefined" error.

On another note, I check my other (properly working Slackware with nvidia driver) PC for xorg.conf files in /etc/X11 and /etc/X11/xorg.conf.d/ and there are no xorg.conf files there.
In /etc/X11/xorg.conf.d, add the file 10-nvidia.conf with the following content :
Code:
Section "Device"
        Identifier      "Device0"
        Driver          "nvidia"
        VendorName      "Nvidia Corporation"
        BoardName       ""
EndSection
restart X. If this does not work, then, post the content of /var/log/Xorg.0.log and the output of commands below :

Code:
$ ls -l /lib/modules/4.4.75/kernel/drivers/video/nvidia.ko

$ lsmod | grep -E "nvidia|nouveau"

$ ls /var/log/packages/nvidia-*

# command to run as root
$ su -
$ modinfo /lib/modules/4.4.75/kernel/drivers/video/nvidia.ko

Edit:

according to the Xorg.0.log you posted previously, it seems that nouveau is not blacklisted :
Code:
...
944] (II) LoadModule: "nouveau"
[   324.944] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
...
So, check that xf86-video-nouveau-blacklist-noarch-1 is installed and/or /etc/modprobe.d/BLACKLIST-nouveau.conf exists and contains :
Code:
blacklist nouveau
Furthermore, I'm wondering if you have installed the nvidia-kernel package...


--
SeB

Last edited by phenixia2003; 08-24-2017 at 01:30 PM.
 
3 members found this post helpful.
Old 08-24-2017, 07:58 PM   #15
jdog
LQ Newbie
 
Registered: Aug 2017
Location: Houston
Distribution: slackware
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thumbs up Solved!

Quote:
Originally Posted by phenixia2003 View Post
Hello,



In /etc/X11/xorg.conf.d, add the file 10-nvidia.conf with the following content :
Code:
Section "Device"
        Identifier      "Device0"
        Driver          "nvidia"
        VendorName      "Nvidia Corporation"
        BoardName       ""
EndSection
restart X. If this does not work, then, post the content of /var/log/Xorg.0.log and the output of commands below :

SeB

SeB/phenixia2003 Thank you!! That fixed it! Everything is working perfectly now, as if nothing ever happened. All I did was add 10-nvidia.conf with the content you posted above. I will now mark this post as SOLVED. How did you know?

Also, for future reference, whenever I see an upgrade for xorg-server and mesa what is the proper procedure to take before upgrading? I'm guessing to do the following:

nvidia-switch --remove
upgradepkg xorg-server*
upgradepkg mesa
nvidia-switch --install


Thanks again
 
  


Reply

Tags
nvidia



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
Slackware 14.1 Xorg random crashes wvufan_94 Slackware 10 12-31-2013 12:18 AM
KDE 4 in slackware 13 isn't stable. Random Crashes akschu Slackware 2 09-06-2009 02:24 AM
Upgrading Xorg in slackware speel Linux - Software 1 03-17-2006 09:48 AM
Slackware-current Xorg 6.8.1 crashes SirJohnWackness Slackware 20 11-26-2004 09:09 AM
Crashes on Slackware 10 after upgrading to KDE 3.3 ambayah Slackware 9 08-31-2004 01:36 AM

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

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