SlackBuilds Repository

14.2 > System > nvidia-legacy390-driver (390.141)

This is the proprietary binary video driver from NVidia for the X.Org
X-server. This package does not include the kernel module - it is a part
of the nvidia-legacy390-kernel package at

Installing the 32-bit compatibility libraries is available: if desired,
COMPAT32="yes" ./nvidia-legacy390-driver.SlackBuild

If you plan to test this buildscript on current/15.0, do:

CURRENT="yes" ./nvidia-legacy390-driver.SlackBuild

This avoids stomping on the libglvnd libraries, plus it forces the
script to use the prebuilt nvidia-installer since it no longer builds
in current. As a consequence, this script may no longer work in a VM.

If you build and install this driver on current WITHOUT using the
CURRENT="yes" flag, it will corrupt both xorg-server AND libglvnd, so
after removing the driver both packages will have to be reinstalled.

This script now gives the option of installing the nvidia-persistenced
daemon. For details see README.nvidia-persistenced.

Several useful utilities are included: nvidia-xsettings, nvidia-smi, and
nvidia-settings. Please refer to the Nvidia documentation and man pages
for details and usage.

For CUDA/OpenCL to work after reboot, and for utilites such as
nvidia-smi, you might need to include the following line in your
/etc/rc.d/rc.local: (this is REQUIRED for nvidia-persistenced to work

# Create missing nvidia device nodes after reboot
/usr/bin/nvidia-modprobe -c 0 -u

Included is a script called nvidia-switch, which is used to switch
between the xorg and nvidia drivers, but it will not edit xorg.conf for
you; you have to do that manually. The nvidia-switch script is
installed to /usr/sbin.

Usage of nvidia-switch:
nvidia-switch --install <--> save the stock xorg files and
install the nvidia files and symlinks.
nvidia-switch --remove <--> remove the nvidia files and symlinks and
restore the stock xorg files.

Since nvidia-legacy390-driver conflicts with some files of xorg, it's a
bit complex to install/uninstall the driver. However, installation of
the nvidia-legacy390-driver package backs up the conflicting files and
puts the nvidia-specific files into place by automatically running
nvidia-switch --install in

Before uninstalling or upgrading this package, it is IMPORTANT that
you execute 'nvidia-switch --remove', which will switch back to the
stock xorg files and remove all links created by nvidia-switch during
installation. If you forget to do this, you might have to do the switch
manually, since 'nvidia-switch --install' may fail, resulting in xorg
not working. Here are the affected files (and their packages):

/usr/lib[64]/ (mesa)
/usr/lib[64]/ (mesa)
/usr/lib[64]/ (mesa)
/usr/lib[64]/ (mesa)
/usr/lib[64]/ (mesa)
/usr/lib[64]/xorg/modules/ (xorg-server)
/usr/lib[64]/xorg/modules/extensions/ (xorg-server)

Simply remove the dead nvidia symlinks and and reinstall the mesa and
xorg-server packages. (In current, if is a dead symlink,
it MUST be removed before reinstalling xorg-server.)

This requires: nvidia-legacy390-kernel

Maintained by: Lenard Spencer
ChangeLog: nvidia-legacy390-driver


Source Downloads (Arch-Independent):
nvidia-installer-390.141.tar.bz2 (ff1c359809225ac9fc3562a16bc302bd)
nvidia-modprobe-390.141.tar.bz2 (baa8df62e2449ec6dd55c3d27cf23490)
nvidia-persistenced-390.141.tar.bz2 (24c4e151626dc920525966d4bd3a2dbd)
nvidia-settings-390.141.tar.bz2 (61be9b85fd9b2198cdbc555a3625d39b)
nvidia-xconfig-390.141.tar.bz2 (94c281d2704d87809176e3084102bfee)

Source Downloads (32bit): (f3e6660ffe5338b17b7e643d0eceb57e)

Source Downloads (64bit): (0c7fc061349bbb2f0d7e26af9f1b082a)

Download SlackBuild:
nvidia-legacy390-driver.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 14.2

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2021 Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds