Archives For November 30, 1999

Nvidia 340.65

NVIDIA has announced the 340.65 release of its Linux graphics driver (long lived branch version) with latest Kernel (3.18) support and various bug fixes.

Here’s the release highlight for NVIDIA 340.65:

  • Added support for X.Org xserver ABI 19 (xorg-server 1.17).
  • Improved compatibility with recent Linux kernels.
  • Fixed a bug that prevented internal 4K panels on some laptops from being driven at a sufficient bandwidth to support their native resolutions.
  • Fixed a regression that prevented the NVIDIA kernel module from loading in some virtualized environments such as Amazon Web Services.
  • Fixed a regression that caused displays to be detected incorrectly on some notebook systems.
  • Fixed a bug that could cause X to freeze when using Base Mosaic.
  • Fixed a regression that prevented the NVIDIA X driver from recognizing Base Mosaic layouts generated by the nvidia-settings control panel.

NVIDIA Linux Graphics Driver

Install / Upgrade NVIDIA Driver in Ubuntu:

If you’re running with NVIDIA’s proprietary driver in Ubuntu, you can upgrade to this driver release by following below steps:

1. Press Ctrl+Alt+T to open terminal. When it opens, run the command below to add the xorg-edgers fresh X crack PPA repository:

sudo add-apt-repository -y ppa:xorg-edgers/ppa

Type in your user password when it asks.

2. After added the PPA, refresh your system cache via command:

sudo apt-get update

3. Finally install the 340.65 driver:

sudo apt-get install nvidia-340

The repository also provides the NVIDIA 343 driver (short lived branch version) and NVIDIA 346 driver (still in beta). If need, you can replace nvidia-340 in the previous code with nvidia-343 or nvidia-346 to install the driver.

Nvidia 343.36

While Nvidia’s Linux Graphics Driver 346 series is still in beta, the latest 343.36 stable driver has been released this Friday, which brings support for the latest Linux kernels (up through Linux 3.18), various bug fixes (including an Unreal Engine 4 fix), support for disabling indirect GLX, and more.

Release Highlight in Nvidia Graphics Driver 343.36:

  • Added support for X.Org xserver ABI 19 (xorg-server 1.17).
  • Improved compatibility with recent Linux kernels.
  • Fixed a bug that rendered very bright garbage data onto some textures in UnrealEngine 4 applications. This issue is known as the “disco bug” by the UnrealEngine 4 Linux community.
  • Added option UseSysmemPixmapAccel to control the use of GPU acceleration for X drawing operations on pixmaps allocated in system memory.
  • Fixed a regression that prevented the NVIDIA X driver from recognizing Base Mosaic layouts generated by the nvidia-settings control panel.
  • Fixed a bug that could cause VT-switching to fail following a suspend, resume, and driver reload sequence.
  • Fixed a bug that caused incorrect colors to be displayed on X screens running at depth 8 on some GPUs.
  • Fixed a bug that prevented GPUs from being correctly recognized in MetaMode strings when identified by UUID.
  • Implemented support for disabling indirect GLX context creation using the -iglx option available on X.Org server release 1.16 and newer. Note that future X.Org server releases may make the -iglx option the default. To re-enable support for indirect GLX on such servers, use the +iglx option.
  • Added the “AllowIndirectGLXProtocol” X config option. This option can be used to disallow use of GLX protocol. See “Appendix B. X Config Options” in the README for more details.
  • Fixed a crash with UnrealEngine 4 when the application was started with the -opengl4 commandline switch.
  • Fixed an OpenGL issue that could cause glReadPixels() operations to be improperly clipped when resizing composited application windows, potentially leading to momentary X freezes.
  • Fixed a bug that could prevent the GLSL compiler from correctly evaluating some expressions when compiling shaders.
  • Fixed a bug that could cause nvidia-installer to crash while attempting to run nvidia-xconfig on systems where that utility is missing.
  • Fixed a bug that could prevent 32-bit GPU-based applications from running correctly on 64-bit systems when using GPUs with very large memory-mapped I/O regions.
  • Fixed a bug that could cause the CUDA debugger to fail after exiting X on systems with persistence mode enabled.
  • Fixed a bug that could cause silent and intermittent failures when a CUDA application writes to a peer device’s memory with GPUDirect.
  • Updated nvidia-installer to avoid writing to non-zero offsets of sysctl files in /proc/sys/kernel.

How to Install / Upgrade to Nvidia 343.36 Driver in Ubuntu:

To make the installation easy, you can install/upgrade the driver from PPA. But at the moment of writing this tutorial, the PPA does not yet update with the 346.36 binaries.

Check out the package version of “nvidia-graphics-drivers-343” from the PPA page below:

xorg-edgers fresh X crack PPA

Once the PPA updated, run the commands below one by one in terminal to add the PPA and install the 346.36 driver:

sudo add-apt-repository -y ppa:xorg-edgers/ppa

sudo apt-get update

sudo apt-get install nvidia-343

(Optional) To uninstall the driver as well as the PPA, run:

sudo add-apt-repository -r ppa:xorg-edgers/ppa && sudo apt-get remove nvidia-343 && sudo apt-get update

If you don’t want to add the PPA, follow the steps below to install the 346.36 driver via the official package from Nvidia website.

1. Select download the 346.36 driver that matches your OS type:

64-bit Linux | 32-bit Linux | 32-bit Linux ARM

2. IMPORTANT: You have to switch to the black & white text console (press Ctrl+Alt+F1 ~ F6), then log in with current username & password.

3. When you’re in the text console, run the command below to stop the graphics session (The graphics session is still there, and you can press Ctrl+Alt+F7 to switch back).

sudo service lightdm stop

Replace lightdm with gdm or mdm in the code if you’re running with Gnome GDM or Linux Mint’s MDM display manager.

4. Once the graphics session is closed, you are able to run the downloaded package by running the commands below:

cd ~/Downloads/

chmod +x NVIDIA-Linux-*-343.36.run

sudo sh NVIDIA-Linux-*-343.36.run

Above commands will navigate current directory to /Downloads/, then give executable permission to the 346.36 driver package, and finally run the installer.

5. After the last command, follow the onscreen prompt until done. Finally restart your computer.

(Optional) To uninstall the 346.36 driver, get into the text console and run:

sudo sh ~/Downloads/NVIDIA-Linux-*-343.36.run --uninstall

Nvidia 346.16

NVIDIA recently introduced the 346.xx graphics driver series for Linux with the release of the 346.16 beta driver. Xorg-Edgers PPA has made the binary packages available for Ubuntu 14.10 and Ubuntu 14.04

According to the release highlights, the new driver added below new features:

  • Added support for GeForce GTX 970M and GeForce GTX 980M GPUs.
  • Added support for decoding VP8 video streams using the NVCUVID API on GPUs with VP8 hardware decode support.
  • Added the ability to increase the operating voltage on certain GeForce GPUs in the GeForce GTX 400 series and later. Voltage adjustments are done at the user’s own risk.
  • Added accelerated support for r8g8b8a8, r8g8b8x8, b8g8r8a8 and b8g8r8x8 RENDER formats.
  • Added support for the EGL_EXT_device_base, EGL_EXT_platform_device, and EGL_EXT_output_base extensions.
  • Added support in nvidia-settings for GTK+3 UI, an option --use-gtk2 available to force the use of GTK+2 library.
  • Support for the latest Linux Kernel 3.17 / 3.18 series.
  • Performance improvements and various bug fixes.

For more changes and supported products, see the Nvidia page.

How to Install Nvidia 346.16 in Ubuntu:

Besides using the official installer package, you can install the new driver in Ubuntu 14.10, Ubuntu 14.04, or Linux Mint 17 from the xorg-edgers fresh X crack ppa.

1. Press Ctrl+Alt+T on keyboard to open terminal. When it opens, paste the command below and hit run to add the PPA:

sudo add-apt-repository -y ppa:xorg-edgers/ppa

2. Update the package lists and install the new driver:

sudo apt-get update

sudo apt-get install nvidia-346 nvidia-settings

(Optional) To purge the PPA:

sudo apt-get install ppa-purge && sudo ppa-purge ppa:xorg-edgers/ppa

To remove the Nvidia 346 driver:

sudo apt-get remove nvidia-346

Nvidia 340.58 PPA

Nvidia Graphics Driver for Linux has just released version 340.58 with new GPUs support and a few bug fixes.

The latest long lived branch release Nvidia 340.58 was released this Wednesday with below changes:

  • Added support for the following GPUs:
    • GeForce GT820M
    • GeForce GTX 760A
    • GeForce GTX 850A
    • GeForce 810A
    • GeForce 820A
    • GeForce 840A
  • Fixed a bug that could cause VT-switching to fail following a suspend, resume, and driver reload sequence.
  • Fixed a bug that caused incorrect colors to be displayed on X screens running at depth 8 on some GPUs.
  • Fixed a bug that prevented GPUs from being correctly recognized in MetaMode strings when identified by UUID.
  • Implemented support for disabling indirect GLX context creation using the -iglx option available on X.Org server release 1.16 and newer.  Note that future X.Org server releases may make the -iglx option the default. To re-enable support for indirect GLX on such servers, use the +iglx option.
  • Added the “AllowIndirectGLXProtocol” X config option. This option can be used to disallow use of GLX protocol. See “Appendix B. X Config Options” in the README for more details.

How to Install / Upgrade to Nvidia 340.58:

The Xorg-Edgers PPA provides the binary packages of the driver for Ubuntu 14.10, and Ubuntu 14.04.

Press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the commands below one by one:

sudo add-apt-repository -y ppa:xorg-edgers/ppa

sudo apt-get update

sudo apt-get install nvidia-340

Above commands will add the PPA and install the new driver. After that, restart your computer to take effect.

If for some reason, the new driver does not work properly. Open terminal or log into command console (Ctrl+Alt+F2), run below commands to install ppa-purge and purge the PPA:

sudo apt-get install ppa-purge

sudo ppa-purge ppa:xorg-edgers/ppa

Above commands should remove Nvidia Driver 340.58 and revert your graphics driver to original.

Nvidia 340.46 PPA

The latest NVIDIA Linux driver has reached 340.46 with a few bug fixes. Here’s how to easily install it in Ubuntu 14.10 or Ubuntu 14.04 via PPA repository.

What’s new in NVIDIA 340.46:

  • Fixed an OpenGL issue that could cause glReadPixels() operations to be improperly clipped when resizing composited application windows, potentially leading to momentary X freezes.

  • Fixed a bug that could prevent the GLSL compiler from correctly evaluating some expressions when compiling shaders.

  • Fixed a bug that could cause nvidia-installer to crash while attempting to run nvidia-xconfig on systems where that utility is missing.

  • Added option UseSysmemPixmapAccel to control the use of GPU acceleration for X drawing operations on pixmaps allocated in system memory.

Release note and supported GPUs are available in the Nvidia page.

Install Nvidia 340.46 via PPA:

Besides using the official installer, we can easily install the driver from a Launchpad PPA.

To add the PPA & install Nvidia 340.46, press Ctrl+Alt+T to open terminal. When it opens, run the commands below one by one:

sudo add-apt-repository ppa:graphics-drivers/ppa

sudo apt-get update

sudo apt-get install nvidia-340

install-nvidia-from-ppa

When done, restart your computer.

If for some reason the driver does not work properly for your machine, remove it via:

sudo apt-get remove nvidia-340

sudo apt-get autoremove

sudo add-apt-repository -r ppa:graphics-drivers/ppa

Press Ctrl+Alt+F2 to get into console (or boot into recovery mode) if the new driver mess up the graphical session.

Nvidia 343.22 ubuntu 14.04

Nvidia has just announced a new version of graphics driver 343.22 for Linux with new GPUs support and various fixes.

According to the release highlights, Nvidia 343.22 added support for GeForce GTX 970 and GTX 980, removed support for G8x, G9x, and GT2xx GPUs, and motherboard chipsets based on them. Ongoing support for new Linux kernels and X servers, as well as fixes for critical bugs, will be included in 340.* legacy releases through the end of 2019.

The new drive contains various fixes and/or new features:

  • Fixed a bug that prevented the “sync to vblank” setting from being honored for EGL applications.
  • Fixed a bug that could cause some OpenGL programs to encounter out of memory during a mode switch.
  • Fixed a bug that prevented the NVIDIA OpenGL driver from honoring the __GL_SHADER_DISK_CACHE_PATH environment variable.
  • Fixed a bug that caused disabled displays to be implicitly included in the target selection for some queries and assignments on the nvidia-settings command line interface, in the absence of any explicit target selection.
  • Added a new attribute to the NV-CONTROL API to query the current utilization of the video decode engine.
  • Fixed a bug where the Exchange Stereo Eyes setting in nvidia-settings didn’t work in certain stereo configurations.
  • Worked around a Unigine Heaven 3.0 shader bug which could cause corruption when tessellation is enabled by implementing an application profile that uses the “GLIgnoreGLSLExtReqs” setting.  See the documentation for the __GL_IGNORE_GLSL_EXT_REQS environment variable for more details.
  • Fixed a memory leak when destroying EGL surfaces.
  • Added support for multiple simultaneous EGL displays.
  • Fixed a bug that could cause nvidia-installer to unsuccessfully attempt to delete the directory containing precompiled kernel module interfaces, on packages prepared with –add-this-kernel.
  • Updated nvidia-installer to log uninstallation to a separate file from the installation log, and to attempt uninstalling previous driver installations using the installer program from the previous installation, when available.

Install or Upgrade to Nvidia 343.22 in Ubuntu:

NOTE: Ubuntu provides “nvidia-current” driver, available in Software Center, which may interact better with your distribution’s framework, and you may want to use this rather than NVIDIA’s official package.

There are two ways installing this driver in your Ubuntu system, using the official .run installer or a third-party PPA repository.

To install Nvidia 343.22 via official installer:

1. Press Ctrl+Alt+T to open terminal, run command below to download the driver:

For 32-bit system, run:

cd ~/Downloads/ && wget http://us.download.nvidia.com/XFree86/Linux-x86/343.22/NVIDIA-Linux-x86-343.22.run

For 64-bit system, run:

cd ~/Downloads/ && wget http://us.download.nvidia.com/XFree86/Linux-x86_64/343.22/NVIDIA-Linux-x86_64-343.22.run

download-nvidia

2. , run command to remove the previous driver and install latest update-dev package:

sudo apt-get purge nvidia*; sudo apt-get install nvidia-331-updates-dev

When done, restart your computer.

3. When back, press Ctrl+Alt+F1 (or F2~F6) to switch to command console and log in with your user name and password.
There will no visual feedback when typing a password, just type in mind and hit enter.

4. When you’re logged into command console, stop the graphics session by running the command below:

sudo service lightdm stop

For Ubuntu Gnome edition and Linux Mint, you may replace ligthdm with gdm or mdm

5. After the graphics session closed, you can now starts the official Nvidia installer, by running below commands:

chmod +x ~/Downloads/NVIDIA-Linux-*-343.22.run && sudo sh ~/Downloads/NVIDIA-Linux-*-343.22.run

Follow the onscreen prompt and done!

6. (Optional) To uninstall this driver, run below command in console:

sudo sh ~/Downloads/NVIDIA-Linux-*-343.22.run --uninstall

To install the driver from PPA repository (easier way):

First check out the PPA page to see if the packages are ready: xorg-edgers PPA. Check out the package version of “nvidia-graphics-drivers-343”.

Once the driver is made into the PPA, you can run below commands one by one to install it in Ubuntu 14.04 or Ubuntu 14.10:

sudo add-apt-repository ppa:xorg-edgers/ppa

sudo apt-get update

sudo apt-get install nvidia-343

That’s it. Enjoy!

Nvidia 340.32 ubuntu 14.04

Nvidia Team has announced the latest Linux driver 340.32 a few hours ago with new GPUs support, various OpenGL, G-SYNC monitor, and other important bug fixes.

According to the release highlights, the new driver added support for Quadro K420, Quadro K620, Quadro K2200, Quadro K4200, Quadro K5200 GPUs. Also there are various important fixes:

  • Fixed a regression that prevented the internal stereo infrared emitter built into some 3D Vision monitors from working.
  • Fixed a bug that could cause some Java-based OpenGL applications using JOGL to crash on startup on systems with Xinerama enabled.
  • Fixed a bug that could prevent OpenGL Framebuffer Objects (FBOs) from being properly redrawn after a modeswitch.
  • Fixed a memory leak that occurred when starting OpenGL applications.
  • Fixed a bug that prevented the EDID-Like Data (ELD) of audio-capable displays from being updated when hotplugged/unplugged.
  • Fixed a bug that caused Xid errors when using stereo mode 12 (HDMI 3D) on Quadro boards without an onboard stereo DIN connector.
  • Fixed a video corruption issue for VDPAU decoding of VC-1 and WMV video streams utilizing range remapping on Maxwell GPUs.
  • Fixed a “black window” bug in Ubuntu 14.04 when using the Xinerama and Composite extensions.
  • Fixed a bug that caused the screen’s contents to be shifted downward when a G-SYNC monitor is unplugged and replaced by a non-G-SYNC monitor.
  • Fixed a bug that prevented G-SYNC from working when a G-SYNC monitor was unplugged and plugged back in without a modeset.

Install Nvidia 340.32 in Ubuntu:

For Ubuntu 14.04 and Ubuntu 14.10, this driver has been made into the Xorg Edgers PPA. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below one by one:

sudo add-apt-repository ppa:xorg-edgers/ppa

sudo apt-get update

sudo apt-get install nvidia-340

If you would like to install it from the official package. Download the installer from:

Nvidia Driver for Unix

You may check out your OS type via System Settings -> Details and download the right package matches your os type.

  • 64-bit os – Linux x86_64/AMD64/EM64T
  • 32-bit os – Linux x86/IA32

Finally you can install the official .run installer by following this guide (skip step2, and replace the package name in the codes).

Nvidia 340.24 Add Support For G-SYNC Monitors

Last updated: July 12, 2014

Nvidia ubuntu 14.04

Nvidia has just announced the release of driver 340.24 for Linux with numerous improvements and fixes. One of the exciting news is the initial support for G-SYNC monitors.

Nvidia 340.24 was released on July 8th, 2014 with following changes:

  • Fixed a bug that prevented 3D Vision stereo and ultra low motion blur modes from working on G-SYNC capable monitors in some cases.
  • Fixed a bug that caused the “Allow G-SYNC” checkbox to be displayed in nvidia-settings even if the GPUs in the system are not capable of G-SYNC.
  • Fixed a kernel crash when running some applications with IOMMU functionality enabled.
  • Fixed a floating point exception in the OpenGL driver when running “Risk of Rain” under Wine.
  • Made various improvements and corrections to the information reported to GL applications via the KHR_debug and ARB_debug_output extensions.
  • Fixed a bug that caused GLX applications which simultaneously create drawables on multiple X servers to crash when swapping buffers.
  • Updated nvidia-settings to report all valid names for each target when querying target types, e.g. `nvidia-settings -q gpus`.
  • Added support for controlling the availability of Fast Approximate Antialiasing (FXAA) on a per-application basis via the new __GL_ALLOW_FXAA_USAGE environment variable and the corresponding GLAllowFXAAUsage application profile key. See the README for details.
  • Fixed a bug where indirect rendering could become corrupted on system configurations that disallow writing to executable memory.
  • Updated the nvidia-settings Makefiles to allow nvidia-settings to be dynamically linked against the host system’s libjansson. This option can be enabled by setting the NV_USE_BUNDLED_LIBJANSSON Makefile variable to 0.Please note that nvidia-settings requires libjansson version 2.2 or later.
  • Removed the runlevel check from nvidia-installer: the installation problems formerly associated with runlevel 1 no longer apply.
  • Added initial support for G-SYNC monitors.Additional details and system requirements can be found at:http://www.geforce.com/hardware/technology/g-sync
  • Improved support for running the NVIDIA driver in configurations where writing to executable memory is disallowed.Driver optimizations that require writing to executable memory can be forcefully disabled using the new __GL_WRITE_TEXT_SECTION environment variable.See the README for more details.
  • Fixed an X driver bug that caused gamma ramp updates of the green channel at depth 15, on some recent GPUs, to be ignored.
  • Fixed a regression, introduced in the 340.17 public beta release, that caused the NVIDIA X driver to access freed memory when exiting a GLX application that used either of the GLX_NV_video_out or GLX_NV_present_video extensions.
  •  
    Install Nvidia 340.24 in Ubuntu:

    IMPORTANT NOTE: If you’re just looking for a working drive for your Nvidia card in Ubuntu Linux, please search for and install nvidia-current in Ubuntu Software Center.

    Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, do:

    1. Remove the previous installed proprietary driver and install the latest updates-dev package. Then restart your computer

    sudo apt-get purge nvidia*; sudo apt-get install nvidia-331-updates-dev

    2. Download the driver:

    32 bit Linux | 64 bit Linux | 32 bit ARM

    Check the release note for the supported GPUs.

    3. Press Ctrl+Alt+F1 (~ F6) to switch to command console and log in.

    4. Stop the graphic session by running:

    sudo service lightdm stop

    Replace lightdm with gdm or mdm if you’re using Gnome display manager or Linux Mint.

    5. Now give executable permission and run the downloaded package:

    chmod +x ~/Downloads/NVIDIA-Linux-*-340.24.run && sudo sh ~/Downloads/NVIDIA-Linux-*-340.24.run

    Follow the onscreen prompt and you’re done.

    (Optional) If for some reason the new driver does not work properly, remove it via:

    sudo sh ~/Downloads/NVIDIA-Linux-*-340.24.run --uninstall

    For easier way, wait the driver to be built into xorg edger PPA. By then, you can install it via 3 commands:

    sudo add-apt-repository ppa:xorg-edgers/ppa
    
    sudo apt-get update
    
    sudo apt-get install nvidia-340

    Nvidia ubuntu 14.04

    The latest Nvidia proprietary driver for Linux has reached v331.89. According to the changlog, the new release added a new GPU support and fixed a few bugs

    • Added support for the following GPU: GeForce GT 730
    • Fixed a race condition in the NVIDIA kernel module that caused some GPUs to sporadically become unresponsive.
    • Updated the error reporting in the NVIDIA kernel module to include the GPU serial number, when available, in error messages written to the system log.
    • Fixed a bug that caused blank screens when transforming or rotating displays in an SLI Mosaic layout.
    • Fixed a bug that corrupted certain software rendering on 32-bit systems.

    Below is how to install Nvidia 331.89 in Ubuntu 14.04 or Ubuntu 12.04:

    First of first, if you’re just looking for a working driver for your Nvidia graphics card, please search for and install “nvidia-current” (without quotes) in Ubuntu Software Center.

    1. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the commands below:

    sudo apt-get purge nvidia*; sudo apt-get install nvidia-331-updates-dev

    It will remove previous installed proprietary driver and install the latest updates-dev package.

    2. Restart your computer. When you’re back, download the official package:

    32 bit Linux | 64 bit Linux | 32 bit ARM

    Check out if your GPU is in the support list at the release page.

    3. Switch to command console by pressing Ctrl+Alt+F1 (or F2 ~ F6). Then log in with your username and password.

    4. Stop the graphical session:

    sudo service lightdm stop

    For Gnome GDM or Linux Mint MDM, you may replace lightdm with gdm or mdm in the command.

    5. Now give executable permission and run the official package:

    chmod +x ~/Downloads/NVIDIA-Linux-*-331.89.run && sudo sh ~/Downloads/NVIDIA-Linux-*-331.89.run

    Follow the onscreen prompt and you’re done.

    Keep the installer file so that you can remove this driver via below command if for some reason it does not work properly:

    sudo sh ~/Downloads/NVIDIA-Linux-*-331.89.run --uninstall

    Nvidia ubuntu 14.04

    Nvidia 337.25 was released yesterday as the latest short lived branch version for Linux. The new driver brings lots of fixes and improvements and adds support for following GPUs:

    • GeForce GTX TITAN Z
    • GeForce GT 740
    • GeForce 830M
    • GeForce 840M
    • GeForce 845M
    • GeForce GTX 850M

    For a complete list of changes, read the official announcement.

    Install Nvidia Driver 337.25 in Ubuntu:

    Below steps will teach you how to manually install the official .run package in Ubuntu:

    1. Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run commands below one by one to remove previous installed proprietary driver:

    sudo apt-get purge nvidia*
    
    sudo apt-get update
    
    sudo apt-get install nvidia-331-updates-dev

    2. After restarted your computer, download the driver:

    32 bit Linux 64 bit Linux 32 bit ARM

    3. Switch to command console by pressing Ctrl+Alt+F1 (or F2 ~ F6) on keyboard and log in.

    4. Kill the graphical session via:

    sudo service lightdm stop

    For Gnome GDM or Linux Mint MDM, you may replace lightdm with gdm or mdm in the command.

    5. Give permission, start the installer and follow the on screen prompts.

    chmod +x ~/Downloads/NVIDIA-Linux-*-337.25.run && sudo sh ~/Downloads/NVIDIA-Linux-*-337.25.run

    Tips:You may keep the installer file so that you can remove this driver via below command if for some reason it does not work properly:

    sudo sh ~/Downloads/NVIDIA-Linux-*-337.25.run --uninstall