LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-06-2022, 02:46 PM   #1
Procenko
Member
 
Registered: May 2022
Posts: 144

Rep: Reputation: 2
Question Slackware 15, nvidia-legacy340-driver, X server not start


Hello all Linux nerds!

I am almost giveup Please help me

I am successfully done FULL install of Slackware 15. And at first of all try to install nvidia proprietary drivers for my gf9800gtx(it old i am know) Nouveau driver works well. Bit proprietary not for me. What i am do:

1. blacklisted nouveau

Code:
/mnt/etc/modprobe.d/BLACKLIST-nouveau.conf                                                                                                                          131/131               100%
# Do not load the kernel nouveau dri module, since it interferes with both
# the nv and binary nvidia drivers.

blacklist nouveau
2. assemble this two packages

https://slackbuilds.org/repository/1...acy340-driver/
https://slackbuilds.org/repository/1...acy340-kernel/

and install it

https://pastebin.com/raw/apB3pUwZ (COMPAT32="yes" ./nvidia-driver.SlackBuild with multilib https://docs.slackware.com/slackware:multilib)
Code:
# slackpkg update
# slackpkg upgrade multilib
# slackpkg install multilib
https://pastebin.com/raw/bvUi3hyT

after rebooting, i am do "startx" but x server not start, here Xorg logs
https://pastebin.com/raw/2yiv8SP9

here xorg.conf generated by "nvidia-xconfig"
https://pastebin.com/raw/DjzvKdNU

ps C2Q Q6600, gf9800gtx, 4gb ram

Last edited by Procenko; 05-06-2022 at 03:30 PM.
 
Old 05-06-2022, 02:56 PM   #2
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,569

Rep: Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428
The nvidia-legacy340-kernel build failed and no kernel modules was built and installed, according with:

https://pastebin.com/raw/bvUi3hyT

That's WHY your setup fails.

Last edited by LuckyCyborg; 05-06-2022 at 02:58 PM.
 
Old 05-06-2022, 03:04 PM   #3
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,809

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
What model nvidia GPU is this? FTR I have Slackware 15 installed on one PC which has a GT 640 GPU. I installed the NVIDIA 47.103.01 driver from runlevel 3 via the NVIDIA-foo.run script. It works very well. It took me longer to find a really proper driver for 32 bit installs and also for my 12+ year old laptop with a Quadro FX570M in it, but I guess I'm saying maybe don't just fall back on the default "Legacy" driver and maybe let nvidia's script recognize conflicts that a package might miss. I'm not at all disrespecting the efforts of slackbuild builders but GPUs are something of a "moving target" and we all know that if you skip a dependency that has changed in a build, it will often still build and install but will just "sit there".

I could be way off not knowing what GPU you have but searching out newer drivers costs little but some time and effort and the results can be superb.

Edit: Just saw Lucky Cyborg's perceptive post and immediately thought of 2 things

1) The NVIDIA-foo.run script would have informed you of the failure - one advantage to the manufacturer's installer.

2) It's a good idea to check if any important module is loaded and a simple "lsmod | grep nvidia" would do so.

I'm puzzled a bit by your "/etc/modprobe.d/blacklist" since all it needs to say is "blacklist nouveau" in most cases though a few add "blacklist nouveau-modeset" for good measure. In either case, "lsmod | grep nouveau" can confirm or deny the success of the blacklist.

Last edited by enorbet; 05-06-2022 at 03:09 PM.
 
Old 05-06-2022, 03:26 PM   #4
Procenko
Member
 
Registered: May 2022
Posts: 144

Original Poster
Rep: Reputation: 2
Thanks You All for quick reply)

Quote:
Originally Posted by LuckyCyborg View Post
The nvidia-legacy340-kernel build failed and no kernel modules was built and installed, according with:

https://pastebin.com/raw/bvUi3hyT

That's WHY your setup fails.
And how do you see that its failed? And how fix that?

Quote:
Originally Posted by enorbet View Post
What model nvidia GPU is this? FTR I have Slackware 15 installed on one PC which has a GT 640 GPU. I installed the NVIDIA 47.103.01 driver from runlevel 3 via the NVIDIA-foo.run script. It works very well. It took me longer to find a really proper driver for 32 bit installs and also for my 12+ year old laptop with a Quadro FX570M in it, but I guess I'm saying maybe don't just fall back on the default "Legacy" driver and maybe let nvidia's script recognize conflicts that a package might miss. I'm not at all disrespecting the efforts of slackbuild builders but GPUs are something of a "moving target" and we all know that if you skip a dependency that has changed in a build, it will often still build and install but will just "sit there".

I could be way off not knowing what GPU you have but searching out newer drivers costs little but some time and effort and the results can be superb.

Edit: Just saw Lucky Cyborg's perceptive post and immediately thought of 2 things

1) The NVIDIA-foo.run script would have informed you of the failure - one advantage to the manufacturer's installer.

2) It's a good idea to check if any important module is loaded and a simple "lsmod | grep nvidia" would do so.

I'm puzzled a bit by your "/etc/modprobe.d/blacklist" since all it needs to say is "blacklist nouveau" in most cases though a few add "blacklist nouveau-modeset" for good measure. In either case, "lsmod | grep nouveau" can confirm or deny the success of the blacklist.
For blacklisting i use this package https://slackware.pkgs.org/14.2/slac...rch-1.txz.html
 
Old 05-06-2022, 04:09 PM   #5
Procenko
Member
 
Registered: May 2022
Posts: 144

Original Poster
Rep: Reputation: 2
Now i am trying go back to nouveau, but no luck

Code:
removepkg xf86-video-nouveau-blacklist/xf86-video-nouveau-blacklist-noarch-1.txz
removepkg nvidia-legacy340-driver-340.108-x86_64-2_SBo.tgz
removepkg nvidia-legacy340-kernel-340.108_5.15.19-x86_64-1_SBo.tgz
nvidia-switch --remove
X -confiure
slackpkg reinstall xorg-server
Xorg not starting here log
https://pastebin.com/raw/nVWHL0cs
 
Old 05-06-2022, 10:53 PM   #6
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,569

Rep: Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428
Quote:
Originally Posted by Procenko View Post
And how do you see that its failed?
Because in your /lib/modules/ directory are no files, only sub-directories .

I see that because in you kernel package are NO modules.
Code:
PACKAGE NAME:     nvidia-legacy340-kernel-340.108_5.15.19-x86_64-1_SBo
COMPRESSED PACKAGE SIZE:     4.0K
UNCOMPRESSED PACKAGE SIZE:     20K
PACKAGE LOCATION: nvidia-legacy340-kernel-340.108_5.15.19-x86_64-1_SBo.tgz
PACKAGE DESCRIPTION:
nvidia-legacy340-kernel: nvidia-legacy340-kernel (Kernel Interface for the nvidia driver)
nvidia-legacy340-kernel:
nvidia-legacy340-kernel: This is the kernel module needed by the binary nvidia-driver.
nvidia-legacy340-kernel:
nvidia-legacy340-kernel:
nvidia-legacy340-kernel:
nvidia-legacy340-kernel:
nvidia-legacy340-kernel:
nvidia-legacy340-kernel:
nvidia-legacy340-kernel:
nvidia-legacy340-kernel:
FILE LIST:
./
install/
install/doinst.sh
install/slack-desc
lib/
lib/modules/
lib/modules/5.15.19/
lib/modules/5.15.19/kernel/
lib/modules/5.15.19/kernel/drivers/
lib/modules/5.15.19/kernel/drivers/video/
usr/
usr/doc/
usr/doc/nvidia-legacy340-kernel-340.108_5.15.19/
usr/doc/nvidia-legacy340-kernel-340.108_5.15.19/nvidia-legacy340-kernel.SlackBuild
usr/share/
usr/share/X11/
usr/share/X11/xorg.conf.d/
usr/share/X11/xorg.conf.d/10-nvidia.conf
And I have a very good explanation for why happens that:

you installed Multilib, then you replaced the GCC, then now you have a different GCC by the one used by Mr. Volkerding to build the kernel packages.

And you cannot build kernel modules with a different GCC.

Quote:
Originally Posted by Procenko View Post
And how fix that?
I suggest you to reinstall Slackware 15.0 from scratch and to not mess with Multilib.

Installing Multilib means also that you should use your own built kernels, otherwise you cannot build external kernel modules.

Until you learn how to build your own kernels, do NOT install Multilib.

Also, I recommend you to NOT install Multilib unless you have a very good reason to do this. I.e. you MUST run some 32bit binaries.

Last edited by LuckyCyborg; 05-06-2022 at 11:10 PM.
 
1 members found this post helpful.
Old 05-06-2022, 10:58 PM   #7
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,569

Rep: Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428
Quote:
Originally Posted by Procenko View Post
Now i am trying go back to nouveau, but no luck

Code:
removepkg xf86-video-nouveau-blacklist/xf86-video-nouveau-blacklist-noarch-1.txz
removepkg nvidia-legacy340-driver-340.108-x86_64-2_SBo.tgz
removepkg nvidia-legacy340-kernel-340.108_5.15.19-x86_64-1_SBo.tgz
nvidia-switch --remove
X -confiure
slackpkg reinstall xorg-server
Xorg not starting here log
https://pastebin.com/raw/nVWHL0cs
Considering your Multilib mess, again I recommend you to reinstall Slackware from scratch.

And again, please do not install Multilib until you really understand how it works and what implies its usage.

Last edited by LuckyCyborg; 05-06-2022 at 11:04 PM.
 
1 members found this post helpful.
Old 05-07-2022, 05:50 AM   #8
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,158

Rep: Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328
The 340.108 driver is over two years old. Will it even work with the 5.15.y kernel?

To return to the nouveau driver, go to etc/modprobe.d/
and delete, nvidia-installer-disable-nouveau.conf
(the name might be a little different)

If you have an xorg.conf file in /etc/X11 or /etc/X11/xorg.conf.d/
delete it.
Reboot.

Another case, IMO, of slackpkg causing more trouble than it's worth.


Quote:
Originally Posted by LuckyCyborg View Post
......Until you learn how to build your own kernels, do NOT install Multilib........
As long as the multilib files are properly installed, along with the multilib versions of gcc and glibc, there should NOT be any problems. Remember to reboot after installing the multilib files and before trying to compile anything.

Last edited by cwizardone; 05-07-2022 at 06:04 AM.
 
1 members found this post helpful.
Old 05-07-2022, 06:20 AM   #9
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,569

Rep: Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428
Quote:
Originally Posted by cwizardone View Post
The 340.108 driver is over two years old. Will it even work with the 5.15.y kernel?
Well, looks like fails the SlackBuild shiped by SBo for Slackware 15.0 , generating a package with no kernel modules, just like the OP got.

Nobody from SBo tested this build? Really nobody?

However, I've managed to build the package properly, with its kernel modules, with the patches grabbed from AUR package nvidia-340xx

https://aur.archlinux.org/packages/nvidia-340xx
https://aur.archlinux.org/cgit/aur.g...a-340xx.tar.gz

Code:
0001-kernel-5.7.patch
0002-kernel-5.8.patch
0003-kernel-5.9.patch
0004-kernel-5.10.patch
0005-kernel-5.11.patch
0006-kernel-5.14.patch
0007-kernel-5.15.patch
0008-kernel-5.16.patch
0009-kernel-5.17.patch
In fact, looks like the last two of them aren't required for the kernels from Slackware 15.0 - as I tested too, but good to know that those guys patched it up to latest kernel.

But I have no idea if those kernel modules really works, because I avoid the NVidia crapware like a devil the churches.

Code:
Creating Slackware package:  /tmp/nvidia-legacy340-kernel-340.108_5.15.27-x86_64-1_SBo.tgz

./
install/
install/doinst.sh
install/slack-desc
lib/
lib/modules/
lib/modules/5.15.27/
lib/modules/5.15.27/kernel/
lib/modules/5.15.27/kernel/drivers/
lib/modules/5.15.27/kernel/drivers/video/
lib/modules/5.15.27/kernel/drivers/video/nvidia-uvm.ko
lib/modules/5.15.27/kernel/drivers/video/nvidia.ko
usr/
usr/doc/
usr/doc/nvidia-legacy340-kernel-340.108_5.15.27/
usr/doc/nvidia-legacy340-kernel-340.108_5.15.27/nvidia-legacy340-kernel.SlackBuild
usr/share/
usr/share/X11/
usr/share/X11/xorg.conf.d/
usr/share/X11/xorg.conf.d/10-nvidia.conf

Slackware package /tmp/nvidia-legacy340-kernel-340.108_5.15.27-x86_64-1_SBo.tgz created.

Last edited by LuckyCyborg; 05-07-2022 at 08:59 AM.
 
2 members found this post helpful.
Old 05-07-2022, 09:47 AM   #10
Procenko
Member
 
Registered: May 2022
Posts: 144

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Considering your Multilib mess, again I recommend you to reinstall Slackware from scratch.

And again, please do not install Multilib until you really understand how it works and what implies its usage.
Thank you very much for explain. Yes, i do not understand how its all works. But i am curious how its all works. How i can learn and understood all this?

So.

This packages not working?
https://slackbuilds.org/repository/1...acy340-driver/
Quote:
Installing 32-bit compatibility libraries is available. If desired, do:
COMPAT32="yes" ./nvidia-driver.SlackBuild
https://slackbuilds.org/repository/1...acy340-kernel/

I am installing multilib because i want have driver with 32bit support(but i do not really know why i need 32bit and 64 bit driver in 64 bit OS?)
Here source of manual
https://docs.slackware.com/howtos:ha...aphics_drivers
Quote:
After building the module on x86_64 systems, the installer will prompt about installing nVIDIA's 32-bit compatibility OpenGL libraries. You will only need the 32-bit compatibility libraries if your Slackware is 64-bit multilib.
https://docs.slackware.com/slackware:multilib

PS Why here in Slackware are so many complexities and inaccuracies? Its all very hard to understood. What is main feature of Slackware and were way to understanding this distro?
 
Old 05-07-2022, 09:53 AM   #11
Procenko
Member
 
Registered: May 2022
Posts: 144

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by cwizardone View Post
As long as the multilib files are properly installed, along with the multilib versions of gcc and glibc, there should NOT be any problems. Remember to reboot after installing the multilib files and before trying to compile anything.
Thank you man!

I do all according this manual. Were is i am wrong? Why now i cant move back to nouveau?
https://docs.slackware.com/slackware:multilib
Quote:
Keeping your multilib up-to-date

In order to keep up to date, I advise you to keep an eye on the ChangeLog (RSS feed) which I maintain for my multilib packages. Usually, I will have updated glibc and gcc packages available within a day after Slackware has updates to gcc and glibc.

Automation:

Check out compat32pkg by Sėbastien Ballet which automates this process, similar to slackpkg.
If you prefer slackpkg for package management, then it is worthwhile to check out slackpkg+, an extension to slackpkg which manages the packages you installed from 3rd-party repositories - including multilib. When properly configured, keeping your multilib is as easy as running:

# slackpkg update
# slackpkg upgrade multilib
# slackpkg install multilib

That last command will show you if any new packages were added to the collection of “compat32” packages, such as llvm-compat32 and orc-compat32 recently.
This is how a typical configuration would look like - for a computer running Slackware-current and using Alien BOB's KDE testing repository. The PKGS_PRIORITY ensures that multilib packages of gcc and glibc have precedence over the Slackware originals. The keyword “multilib” which defines the name for the repository must be the same keyword used in the “slackpkg” commands above. The choice of the word “multilib” is arbitrary, it could just as well have been “compat32”, as long as you use it consistently.
Contents of an example file “/etc/slackpkg/slackpkgplus.conf” would be as follows:

Code:
        SLACKPKGPLUS=on
        VERBOSE=1
        ALLOW32BIT=off
        USEBL=1
        WGETOPTS="--timeout=5 --tries=1"
        GREYLIST=on
        PKGS_PRIORITY=( multilib restricted alienbob ktown )
        REPOPLUS=( slackpkgplus multilib restricted alienbob ktown )
        MIRRORPLUS['multilib']=http://bear.alienbase.nl/mirrors/people/alien/multilib/current/
        MIRRORPLUS['alienbob']=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/current/x86_64/
        MIRRORPLUS['restricted']=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/current/x86_64/
        MIRRORPLUS['ktown']=http://bear.alienbase.nl/mirrors/alien-kde/current/latest/x86_64/
        MIRRORPLUS['slackpkgplus']=http://slakfinder.org/slackpkg+/
 
Old 05-07-2022, 09:55 AM   #12
Procenko
Member
 
Registered: May 2022
Posts: 144

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by LuckyCyborg View Post
Code:
Creating Slackware package:  /tmp/nvidia-legacy340-kernel-340.108_5.15.27-x86_64-1_SBo.tgz

./
install/
install/doinst.sh
install/slack-desc
lib/
lib/modules/
lib/modules/5.15.27/
lib/modules/5.15.27/kernel/
lib/modules/5.15.27/kernel/drivers/
lib/modules/5.15.27/kernel/drivers/video/
lib/modules/5.15.27/kernel/drivers/video/nvidia-uvm.ko
lib/modules/5.15.27/kernel/drivers/video/nvidia.ko
usr/
usr/doc/
usr/doc/nvidia-legacy340-kernel-340.108_5.15.27/
usr/doc/nvidia-legacy340-kernel-340.108_5.15.27/nvidia-legacy340-kernel.SlackBuild
usr/share/
usr/share/X11/
usr/share/X11/xorg.conf.d/
usr/share/X11/xorg.conf.d/10-nvidia.conf

Slackware package /tmp/nvidia-legacy340-kernel-340.108_5.15.27-x86_64-1_SBo.tgz created.
How you do that? I see working package with files, but how? Please explain.
 
Old 05-07-2022, 10:03 AM   #13
Procenko
Member
 
Registered: May 2022
Posts: 144

Original Poster
Rep: Reputation: 2
I am try fresh install Slackware and do that
http://www.slackware.com/~alien/multilib/
Its right thing for get 32bit and compile 32bit kernel nvidia driver?
 
Old 05-07-2022, 10:04 AM   #14
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,158

Rep: Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328Reputation: 7328
Quote:
Originally Posted by Procenko View Post
Thank you man!

I do all according this manual. Were is i am wrong? Why now i cant move back to nouveau?
https://docs.slackware.com/slackware:multilib

If you follow the instructions in message #8, above, you should be able to use the nouveau driver by simply rebooting, provided, of course, the nouveau driver is still installed.

Have you removed the Nvidia driver?
sh ./nvidia-whatever-version.run --uninstall

Last edited by cwizardone; 05-07-2022 at 10:08 AM.
 
Old 05-07-2022, 10:10 AM   #15
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,569

Rep: Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428Reputation: 3428
Quote:
Originally Posted by Procenko View Post
How you do that? I see working package with files, but how? Please explain.
IF you really do not figure out how to modify this SlackBuild and to apply the Arch Linux patches, even I explained in detail in the previous post from where to get the patches and which patches to use, then I strongly recommend you to stay in stock Slackware, with no proprietary drivers, no Multilib, nothing.

Please consider to stay in just the stock Slackware, until you gain more knowledge.

Last edited by LuckyCyborg; 05-07-2022 at 10:36 AM.
 
1 members found this post helpful.
  


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
[SOLVED] current and nvidia-legacy340-kernel Question re 10-nvidia.conf file MDKDIO Slackware 6 12-16-2020 01:56 PM
[SOLVED] SBo: nvidia-legacy340-kernel: nvidia.ko failed to build lopuh Slackware 3 03-03-2019 12:21 PM
[SOLVED] Slackware: need 14.2 nvidia-legacy340-driver because nouveau.modeset=0 SLOW video 02Victor Slackware 9 12-16-2017 11:42 AM

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

All times are GMT -5. The time now is 12:18 AM.

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